Update and document .env.template with comments

This commit is contained in:
ShootingStar91
2024-07-16 18:25:04 +03:00
parent e2f0117502
commit 711e13d9b9
+14 -3
View File
@@ -1,20 +1,31 @@
DATABASE_URL: "mysql://now_test:mariadb_password@nowdb-db-anon:3306/now_test"
LOG_DATABASE_URL: "mysql://now_test:mariadb_password@nowdb-db-anon:3306/now_log_test"
# Used for password generation: For staging or production, create randomized, actually secret values
SECRET: abcdefg
USER_CREATION_SECRET: abcdefg
NOWDB_BACKEND_PORT: 4000
LOGIN_VALID_MINUTES: 120
BACKEND_MODE: dev
# These are used by the MariaDB-container directly, as well as the backend to connect to it
MARIADB_HOST: nowdb-db-anon
MARIADB_ROOT_PASSWORD: admin
MARIADB_PASSWORD: mariadb_password
MARIADB_PORT: 3306
NOW_DB_NAME: now_anon
LOG_DB_NAME: now_log_anon
# These are the same for dev or anon test mode, and staging. Production is different
NOW_DB_NAME: now_test
LOG_DB_NAME: now_log_test
# Coordinator, change the env if this has to be changed. Refers to com_people.initials column
COORDINATOR: IZ
# This has to be true to allow writing operations: otherwise all write operations
# except for login and changing password are disabled (hidden in frontend, forbidden in backend)
# Notice that even if this is not true, 'dev' running env has write always enabled (see below)
VITE_ENABLE_WRITE: true
# Running env can be "dev", "staging" or "prod".
# dev means local development or CI tests.
VITE_RUNNING_ENV: dev
# ^These are prefixed VITE_ so they can be used in the frontend, but they're used by
# backend as well.