Implement a more robust Config (#60)
* Implement a more robust Config This moves the configuration variables from the `.env` file to a new `bewcloud.config.ts` file. Note that DB connection and secrets are still in the `.env` file. This will allow for more reliable and easier personalized configurations, and was a requirement to start working on adding SSO (#13). For now, `.env`-based config will still be allowed and respected (overriden by `bewcloud.config.ts`), but in the future I'll probably remove it (some major upgrade). * Update deploy script to also copy the new config file
This commit is contained in:
13
.env.sample
13
.env.sample
@@ -1,5 +1,4 @@
|
||||
PORT=8000
|
||||
BASE_URL="http://localhost:8000"
|
||||
|
||||
POSTGRESQL_HOST="postgresql" # docker container name or external hostname/IP
|
||||
POSTGRESQL_USER="postgres"
|
||||
@@ -12,15 +11,3 @@ JWT_SECRET="fake"
|
||||
PASSWORD_SALT="fake"
|
||||
|
||||
BREVO_API_KEY="fake"
|
||||
|
||||
CONFIG_ALLOW_SIGNUPS="false"
|
||||
CONFIG_ENABLED_APPS="news,notes,photos,expenses" # dashboard and files cannot be disabled
|
||||
CONFIG_FILES_ROOT_PATH="data-files"
|
||||
CONFIG_ENABLE_EMAILS="false" # if true, email verification will be required for signups (using Brevo)
|
||||
CONFIG_ENABLE_FOREVER_SIGNUP="true" # if true, all signups become active for 100 years
|
||||
# CONFIG_ALLOWED_COOKIE_DOMAINS="example.com,example.net" # can be set to allow more than the BASE_URL's domain for session cookies
|
||||
# CONFIG_SKIP_COOKIE_DOMAIN_SECURITY="true" # if true, the cookie domain will not be strictly set and checked against. This skipping slightly reduces security, but is usually necessary for reverse proxies like Cloudflare Tunnel.
|
||||
|
||||
# CUSTOM_TITLE=""
|
||||
# CUSTOM_DESCRIPTION=""
|
||||
HELP_EMAIL="help@bewcloud.com" # if empty, "need help" sections will be disabled
|
||||
Reference in New Issue
Block a user