From 4b798b5596479203e43f8ff54c1b228f85408a0a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 2 Jun 2022 11:19:10 +0200 Subject: [PATCH] Update ingress.conf --- .../rootfs/etc/nginx/servers/ingress.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/transmission_openvpn/rootfs/etc/nginx/servers/ingress.conf b/transmission_openvpn/rootfs/etc/nginx/servers/ingress.conf index fbb0608be..5967bd85d 100644 --- a/transmission_openvpn/rootfs/etc/nginx/servers/ingress.conf +++ b/transmission_openvpn/rootfs/etc/nginx/servers/ingress.conf @@ -4,8 +4,15 @@ server { 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. + proxy_set_header X-Forwarded-Proto $scheme; # Avoids mixed content + } + location / { - proxy_pass http://127.0.0.1:9091/transmission/web/; + proxy_pass http://127.0.0.1:9091/transmission/; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;