initial commit
Some checks failed
Deployment CI/CD / validate (push) Has been cancelled
Deployment CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-19 20:57:09 +03:30
commit b4c6b3c012
13 changed files with 649 additions and 0 deletions

26
nginx-static.conf Normal file
View File

@@ -0,0 +1,26 @@
server {
listen 80;
server_name _;
# Django collected static files
location /static/ {
alias /var/www/static/;
access_log off;
expires 30d;
add_header Cache-Control "public";
}
# Django media (user uploads)
location /media/ {
alias /var/www/media/;
access_log off;
expires 7d;
add_header Cache-Control "public";
}
# No dotfiles
location ~ /\. {
deny all;
}
}