From 5ff9afc2b049dd6828dd8fa3e8468449ad761e93 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Sat, 6 Aug 2022 08:01:01 +0200 Subject: [PATCH] docs: add builder url in viewer config --- apps/docs/docs/self-hosting/configuration/viewer.mdx | 1 + apps/viewer/.env.local.example | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/docs/docs/self-hosting/configuration/viewer.mdx b/apps/docs/docs/self-hosting/configuration/viewer.mdx index 1ca8d0b63..2e126a5d2 100644 --- a/apps/docs/docs/self-hosting/configuration/viewer.mdx +++ b/apps/docs/docs/self-hosting/configuration/viewer.mdx @@ -13,6 +13,7 @@ import { SponsorButton } from '../../../src/js/SponsorButton.jsx' | DATABASE_URL | postgresql://postgres:typebot@db:5432/typebot | The database URL | | ENCRYPTION_SECRET | SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6 | A 256-bit key used to encrypt sensitive data. It is strongly recommended to [generate](https://www.allkeysgenerator.com/Random/Security-Encryption-Key-Generator.aspx) a new one. The secret should be the same between builder and viewer. | | NEXT_PUBLIC_VIEWER_URL | http://localhost:3001 | The viewer base URL. Should be the publicly accessible URL (i.e. `https://bot.domain.com`) | +| NEXTAUTH_URL | http://localhost:3000 | The builder base URL. Should be the publicly accessible URL (i.e. `https://typebot.domain.com`) | ## Emails (Notifications) diff --git a/apps/viewer/.env.local.example b/apps/viewer/.env.local.example index 94b10502e..c1fb0bb99 100644 --- a/apps/viewer/.env.local.example +++ b/apps/viewer/.env.local.example @@ -1,6 +1,7 @@ ENCRYPTION_SECRET=SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6 #256-bits secret (can be generated here: https://www.allkeysgenerator.com/Random/Security-Encryption-Key-Generator.aspx) NEXT_PUBLIC_VIEWER_URL=http://localhost:3001 DATABASE_URL=postgresql://postgres:typebot@localhost:5432/typebot +NEXTAUTH_URL=http://localhost:3000 S3_ACCESS_KEY=minio S3_SECRET_KEY=minio123