Initial commit

This commit is contained in:
root
2026-07-01 17:58:05 +03:00
commit 104ae25f2c
18 changed files with 1585 additions and 0 deletions

23
deploy/nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 80;
server_name volleyball.my.to; # Замените на ваш домен
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /static {
alias /opt/voley/static;
expires 7d;
add_header Cache-Control "public, immutable";
}
# Опционально: SSL через certbot
# listen 443 ssl;
# ssl_certificate /etc/letsencrypt/live/volleyball.my.to/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/volleyball.my.to/privkey.pem;
}