zkt26/z1/nginx/nginx.conf
2026-04-01 06:53:48 +02:00

22 lines
495 B
Nginx Configuration File

upstream django {
server app:8000;
}
server {
listen 80;
server_name localhost;
location /static/ {
alias /app/staticfiles/;
}
location / {
proxy_pass http://django;
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;
proxy_redirect off;
}
}