caFICteria-aaS/web
2025-03-06 17:48:58 +01:00
..
caFICteria_aaS Add basic quotes functionality 2024-12-03 00:11:42 +01:00
daily_menu Initial commit 2024-12-02 18:40:31 +01:00
lazaro_quotes Don't leak suggester data 2024-12-05 17:02:56 +01:00
main Improve PWA experience 2025-03-06 17:48:58 +01:00
.dockerignore Initial commit 2024-12-02 18:40:31 +01:00
Dockerfile Initial commit 2024-12-02 18:40:31 +01:00
manage.py Initial commit 2024-12-02 18:40:31 +01:00
nginx.conf Initial commit 2024-12-02 18:40:31 +01:00
README.md Initial commit 2024-12-02 18:40:31 +01:00
requirements.txt Initial commit 2024-12-02 18:40:31 +01:00
supervisord.conf Add basic quotes functionality 2024-12-03 00:11:42 +01:00

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 .