From a9c619614287d73056eb38554269d65643054d7a Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 8 Mar 2024 23:06:50 +0530 Subject: [PATCH] [docs] Add a note about how to get the OTT on self hosted instance --- docs/docs/.vitepress/sidebar.ts | 9 +++++++++ docs/docs/self-hosting/faq/otp.md | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 docs/docs/self-hosting/faq/otp.md diff --git a/docs/docs/.vitepress/sidebar.ts b/docs/docs/.vitepress/sidebar.ts index d6547e810..74615621e 100644 --- a/docs/docs/.vitepress/sidebar.ts +++ b/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: [ diff --git a/docs/docs/self-hosting/faq/otp.md b/docs/docs/self-hosting/faq/otp.md new file mode 100644 index 000000000..8cdbb169e --- /dev/null +++ b/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.