From 0eeb196f26d17d71e7158050a19306ca483a945d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 1 Jun 2022 21:47:10 +0200 Subject: [PATCH] Update ingress.conf --- transmission/rootfs/etc/nginx/servers/ingress.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/transmission/rootfs/etc/nginx/servers/ingress.conf b/transmission/rootfs/etc/nginx/servers/ingress.conf index d0dfb61a8..369b19532 100644 --- a/transmission/rootfs/etc/nginx/servers/ingress.conf +++ b/transmission/rootfs/etc/nginx/servers/ingress.conf @@ -7,7 +7,7 @@ server { # Code origin : https://github.com/transmission/transmission/issues/899 location / { - return 301 /web/; # The slash at the end is important + return 301 ./web/; # The slash at the end is important } location / { @@ -20,6 +20,12 @@ server { 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 ""; } }