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

@@ -14,6 +14,8 @@ server {
location /static/ {
alias /static/;
expires 1h;
add_header Cache-Control "public";
}
location / {