init
This commit is contained in:
35
nginx/default.nginx
Normal file
35
nginx/default.nginx
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user