Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (23 loc) · 2.02 KB

env-variables.md

File metadata and controls

31 lines (23 loc) · 2.02 KB

Environment variables

A list of the required and optional environment variables.

Backend

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]'].

Frontend

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