From b074539ed4d5bdfa0e7e7bff48a28745839f67ec Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 2 Jun 2022 11:19:19 +0200 Subject: [PATCH] Update ingress.conf --- transmission/rootfs/etc/nginx/servers/ingress.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/transmission/rootfs/etc/nginx/servers/ingress.conf b/transmission/rootfs/etc/nginx/servers/ingress.conf index e316ca8d8..2b94099fd 100644 --- a/transmission/rootfs/etc/nginx/servers/ingress.conf +++ b/transmission/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;