Configuration

The project settings file1 can be modified with user specified values through the use of environment variables. Environment variable values may be passed directly or as the contents of a file. In the latter case, the path of the file should be passed as a variable’s value. Environment variable values may be stored and passed as Docker Secrets.

Default Values

(D): debug mode
(P): production mode

Django

General

Variable Default Description
SECRET_KEY a long string2 Docs
DEBUG False Docs
ALLOWED_HOSTS [] Docs
TIME_ZONE America/New_York Docs

Cache

Variable Default Description
CACHE_LOCATION redis://redis:6379/0 Docs
CACHE_TIMEOUT 0 (D), 300 (P) Docs

Database

Variable Default Description
SQL_HOST mariadb Docs
SQL_PORT 3306 Docs
SQL_DATABASE contestsuite Docs
SQL_USER contestadmin Docs
SQL_PASSWORD seminoles1! Docs
SQL_TIMEZONE America/New_York Docs

Email

Variable Default Description
EMAIL_BACKEND <console (D) smtp (P)>.EmailBackend Docs
EMAIL_HOST None Docs
EMAIL_PORT 587 Docs
EMAIL_HOST_USER None Docs
EMAIL_HOST_PASSWORD None Docs
EMAIL_USE_SSL False Docs
EMAIL_USE_TLS False Docs
DEFAULT_FROM_EMAIL acm@cs.fsu.edu Docs

Celery

Variable Default Description
CELERY_BROKER amqp://rabbitmq:5672 Docs
CELERY_BACKEND redis://redis:6379/1 Docs
CELERY_TIMEZONE America/New_York Docs
CELERY_BEAT_SCHEDULE   Docs

Discord

Variable Default Description
ANNOUNCEMENT_WEBHOOK_URL None URL of Discord announcement channel webhook
BOT_CHANNEL_WEBHOOK_URL None URL of Discord bot command channel webhook
GUILD_ID 0 Discord server’s Guid ID
SCRAPE_BOT_TOKEN None Discord bot token required by the LFG helper bot

Misc

Variable Default Description
DOMJUDGE_URL https://domjudge.cs.fsu.edu/public Full URL of DOMjudge server. Used for homepage server status card.
HASHID_FIELD_SALT a long string3 Docs
GTAG None Google Analytics site tag
  1. Programming-Contest-Suite/src/contestsuite/settings.py 

  2. 86@j2=z!=&1r_hoqboog1#*mb$jx=9mf0uw#hrs@lw&7m34sqz 

  3. 0s97rx*t4%68jell&lw3^)97o*kr*+*2o^(76q)ix+ilc!4ax#