mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-12 00:50:31 +02:00
ingress addition
This commit is contained in:
31
transmission_openvpn/rootfs/etc/nginx/servers/ingress.conf
Normal file
31
transmission_openvpn/rootfs/etc/nginx/servers/ingress.conf
Normal 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 "";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user