π¦ Environmental VariablesΒΆ
The following environmental variables are required to be set in the .env file:
Variable Name |
Description |
Required |
Default Value |
Details |
|---|---|---|---|---|
SECRET_KEY |
A secret key for a particular Django installation. This is used to provide cryptographic signing, and should be set to a unique, unpredictable value. Django will refuse to start if SECRET_KEY is not set.You can use this online tool https://djecrety.ir to generate the key and paste |
YES |
||
ALLOWED_HOSTS |
A list of strings representing the host/domain names that this Django site can serve. This is a security measure to prevent HTTP Host header attacks, which are possible even under many seemingly-safe web server. |
YES |
||
CSRF_TRUSTED_ORIGINS |
A list of trusted origins for unsafe requests |
NO |
||
ADL_DEBUG |
A boolean that turns on/off debug mode. Never deploy a site into production with DEBUG turned on |
NO |
False |
|
WAGTAIL_SITE_NAME |
The human-readable name of your Wagtail installation which welcomes users upon login to the Wagtail admin. |
NO |
ADL |
|
LANGUAGE_CODE |
The language code for the CMS. Available codes are |
NO |
en |
|
ADL_LOG_LEVEL |
The severity of the messages that the adl service logger will handle. Allowed values are: |
NO |
WARN |
|
ADL_GUNICORN_NUM_OF_WORKERS |
Number of Gunicorn workers |
YES |
4 |
|
ADL_GUNICORN_TIMEOUT |
Gunicorn timeout in seconds |
YES |
300 |
|
ADL_CELERY_BEAT_DEBUG_LEVEL |
The severity of the messages that the adl_celery_beat service logger will handle. Allowed values are: |
NO |
INFO |
|
ADL_CELERY_WORKER_LOG_LEVEL |
The severity of the messages that the adl_celery_worker service logger will handle. Allowed values are: |
NO |
INFO |
|
ADL_DB_USER |
ADL Database user |
YES |
||
ADL_DB_PASSWORD |
ADL Database password |
YES |
||
ADL_DB_NAME |
ADL Database name |
YES |
||
ADL_DB_VOLUME |
Mounted docker volume path for persisting database data |
YES |
./docker/db_data |
|
ADL_STATIC_VOLUME |
Mounted docker volume path for persisting django static files |
YES |
./docker/static |
|
ADL_MEDIA_VOLUME |
Mounted docker volume path for persisting django media files |
YES |
./docker/media |
|
ADL_BACKUP_VOLUME |
Mounted docker volume path for persisting db backups and media files |
YES |
./docker/backup |
|
ADL_WEB_PROXY_PORT |
Port Nginx will be available on the host |
YES |
80 |
|
UID |
The id of the user to run adl docker services |
YES |
||
GID |
The id of the group to run adl docker services |
|||
ADL_NETWORK_NAME |
The Docker network name for the containers to communicate. This must be created before running the containers, using the command |
|||
ADL_PLUGIN_GIT_REPOS |
A comma-separated list of git repo URLs for plugins to install at build time. Append |
NO |
If no repo is added, no plugin is installed. A plugin must follow a given structure as described in sections below |
|
ADL_PLUGIN_LIST_FILE |
Path inside the container to a |
NO |
/adl/plugins.toml |
See |
Note: On linux, you can type id in the terminal to get the UID and GID of the current user.