ofite/nginx/nginx.conf
2024-10-10 10:08:36 +03:00

20 lines
351 B
Nginx Configuration File

upstream gunicorn {
server web:8000;
}
server {
listen 80;
server_name _;
location / {
proxy_pass http://gunicorn;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /home/app/web/static/;
}
}