Files
oxpanel25/nginx/default.nginx
2025-03-13 22:08:06 +01:00

35 lines
987 B
Nginx Configuration File

server {
gzip off;
location /dl/ {
internal;
alias /transmission/downloads/complete/;
}
location / {
proxy_redirect off;
proxy_set_header Host $http_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_pass http://app:8000/;
}
location /ws/ {
proxy_redirect off;
proxy_set_header Host $http_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_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://app:8000/ws/;
}
location /static {
alias /app/static_collected;
}
}