2
0

docs: 📝 Better explain base url config

This commit is contained in:
Baptiste Arnaud
2022-04-10 14:34:46 -05:00
parent a08618d24e
commit a5491dc7a8

View File

@ -14,7 +14,7 @@ When running a Typebot on your machine, the following configuration parameters c
## Builder & Viewer ## Builder & Viewer
These variables are shared between builder and viewer. If you host them in a different environments then it needs to be set in both environments. The following variables are shared between builder and viewer. If you host them in a different environment then it needs to be set in both environments.
### Global ### Global
@ -23,9 +23,9 @@ These variables are shared between builder and viewer. If you host them in a dif
| DATABASE_URL | -- | The database URL, i.e. for external db server `postgres://user:password@ip.or.domain.to.server/database_name` | | DATABASE_URL | -- | The database URL, i.e. for external db server `postgres://user:password@ip.or.domain.to.server/database_name` |
| 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. | | 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. |
| ADMIN_EMAIL | -- | The email that will get a "Pro" plan on user creation | | ADMIN_EMAIL | -- | The email that will get a "Pro" plan on user creation |
| NEXTAUTH_URL | http://localhost:3000 | The builder base URL | | NEXTAUTH_URL | http://localhost:3000 | The builder base URL. Should be the publicly accessible URL (i.e. `https://app.typebot.io`) |
| NEXTAUTH_URL_INTERNAL | -- | The internal builder base URL when `NEXTAUTH_URL` isn't publicly accessible (optionnal) | | NEXTAUTH_URL_INTERNAL | -- | The internal builder base URL. You have to set it only when `NEXTAUTH_URL` isn't publicly accessible |
| NEXT_PUBLIC_VIEWER_URL | http://localhost:3001 | The viewer base URL | | NEXT_PUBLIC_VIEWER_URL | http://localhost:3001 | The viewer base URL. Should be the publicly accessible URL (i.e. `https://typebot.io`) |
### SMTP (optional) ### SMTP (optional)