A list of the required and optional environment variables.
Variable Name | Default Value | Required/Optional | Description |
---|---|---|---|
DEBUG | 1 | Optional | Set to 0 to disable DEBUG mode (required in production to disable) |
SECRET_KEY | insecure | Optional | Main secret for Django (required in production) |
BASE_PATH | / | Optional | Base path for the URL |
DB_HOST | Optional | Postgres host | |
DB_NAME | Optional | Name of the database in postgres | |
DB_USER | Optional | Username for postgres | |
DB_PASS | Optional | Password for postgres | |
ALLOWED_HOSTS | [] | Optional | Comma seperated list of allowed hostnames. |
STATIC_DATA_DIR | ./static_files | Optional | Directory to store static files |
When DEBUG
is True and ALLOWED_HOSTS
is empty, the host is validated against ['.localhost', '127.0.0.1', '[::1]']
.
Variable Name | Description |
---|---|
NEXT_API_URL | URL pointing to django backend |
NEXT_INTERNAL_API_URL | Internal next.js api |
NEXT_INTERNAL_API_AUTH_URL | Internal next.js api for auth |
NEXTAUTH_URL | Idk, same thing? |
NEXTAUTH_SECRET | Secret used for next.js auth |