SSE-Fake/nginx.conf

37 lines
840 B
Nginx Configuration File
Raw Permalink Normal View History

2024-05-11 12:48:18 +02:00
events {}
http {
2024-05-11 12:59:09 +02:00
server {
listen 80 default_server;
server_name _;
location / {
proxy_pass http://django:8000;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
2024-05-12 16:46:00 +02:00
proxy_set_header Connection "";
2024-05-11 12:59:09 +02:00
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
2024-05-12 16:46:00 +02:00
proxy_buffering off;
proxy_cache off;
chunked_transfer_encoding off;
2024-05-11 12:59:09 +02:00
}
location /static {
include /etc/nginx/mime.types;
alias /var/www/static;
}
location /media {
alias /var/www/media;
}
location = /favicon.ico { access_log off; log_not_found off; }
}
2024-05-11 12:48:18 +02:00
}