ingress addition

This commit is contained in:
Alexandre
2022-06-01 21:53:40 +02:00
parent 0eeb196f26
commit 717edcba30
13 changed files with 250 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
server {
listen %%interface%%:%%port%% default_server;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;
client_max_body_size 0;
# Code origin : https://github.com/transmission/transmission/issues/899
location / {
return 301 ./web/; # The slash at the end is important
}
location / {
proxy_pass http://127.0.0.1:9091/transmission/;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $remote_addr;
# Allow frames
proxy_hide_header "Content-Security-Policy";
add_header X-Frame-Options SAMEORIGIN;
add_header Access-Control-Allow-Origin *;
proxy_set_header Accept-Encoding "";
}
}