浏览代码

[docs] Add a note about how to get the OTT on self hosted instance (#771)

Documentation only change.
Manav Rathi 1 年之前
父节点
当前提交
c14f2ddbd7
共有 2 个文件被更改,包括 28 次插入0 次删除
  1. 9 0
      docs/docs/.vitepress/sidebar.ts
  2. 19 0
      docs/docs/self-hosting/faq/otp.md

+ 9 - 0
docs/docs/.vitepress/sidebar.ts

@@ -89,6 +89,15 @@ export const sidebar = [
                     },
                 ],
             },
+            {
+                text: "FAQ",
+                items: [
+                    {
+                        text: "Verification code",
+                        link: "/self-hosting/faq/otp",
+                    },
+                ],
+            },
             {
                 text: "Troubleshooting",
                 items: [

+ 19 - 0
docs/docs/self-hosting/faq/otp.md

@@ -0,0 +1,19 @@
+---
+title: Verification code
+description: Getting the OTP for a self host Ente
+---
+
+# Verification code
+
+The self-hosted Ente by default does not send out emails, so you can pick the
+verification code by:
+
+* Getting it from the server logs, or
+
+* Reading it from the DB (otts table)
+
+You can also set pre-defined hardcoded OTTs for certain users when running
+locally by creating a `museum.yaml` and adding the `internal.hardcoded-ott`
+configuration setting to it. See
+[local.yaml](https://github.com/ente-io/ente/blob/main/server/configurations/local.yaml)
+in the server source code for details about how to define this.