Enable static file caching with WhiteNoise and nginx. Switch to Gunicorn for deployment

This commit is contained in:
Eduardo Silva
2025-12-28 11:45:40 -03:00
parent 2488df8e44
commit 003326e964
4 changed files with 14 additions and 3 deletions

View File

@@ -16,4 +16,4 @@ fi
# Django startup
python manage.py migrate --noinput
python manage.py collectstatic --noinput
exec python manage.py runserver 0.0.0.0:8000
exec gunicorn wireguard_webadmin.wsgi:application --bind 0.0.0.0:8000 --workers 2 --threads 2 --timeout 60 --log-level info --capture-output --access-logfile - --error-logfile -