.. | ||
caFICteria_aaS | ||
daily_menu | ||
lazaro_quotes | ||
main | ||
.dockerignore | ||
Dockerfile | ||
manage.py | ||
nginx.conf | ||
README.md | ||
requirements.txt | ||
supervisord.conf |
caFICtería-aaS (web)
This is the Django web that serves the daily menu data and other functionalities.
🔧 Environment Variables
Name | Description |
---|---|
DJANGO_DEBUG (bool) |
Whether to enable Django's debug mode. Leave it false in production. (Default: False) |
DJANGO_ALLOWED_HOSTS |
Space-separated list of host/domain names that Django can serve. Not needed in debug mode (otherwise is needed). (Default: "") |
DJANGO_SECRET_KEY |
The key to securing signed data. Must be randomly generated and kept secure. (Default: "django-insecure-(krka)#p79n81tjf-)dy9f1!k^4*j&+qf5_eurt7)o%8%mr1ce") |
DJANGO_CSRF_TRUSTED_ORIGINS |
Space-separated list of trusted origins for unsafe requests. Not needed in debug mode, and when running on port 80/443. (Default: "") |
MENU_HISTORY_FILE_PATH |
The place where the JSON file with the menu history is stored. (Default: "/tmp/menu_history.json") |
Note🗒️: Booleans are only true when their value is the string "true" (not case sensitive)
Tip💡: You can generate a secret key with openssl rand -hex 32
Tip💡: You can check Django's documentation to better understand these variables
🐳 Building the Docker image
git clone https://git.peprolinbot.com/peprolinbot/caFICteria-aaS.git
cd caFICteria-aaS/web
docker build -t caficteria-web .