From 7820a40f011d07f79c919c45d29ef462cfd4314e Mon Sep 17 00:00:00 2001 From: Stavros Date: Wed, 9 Sep 2026 19:02:53 +0300 Subject: [PATCH] fix: remove duplicate error page --- root/defaults/nginx/tinyauth-location.conf.sample | 3 --- root/defaults/nginx/tinyauth-server.conf.sample | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/root/defaults/nginx/tinyauth-location.conf.sample b/root/defaults/nginx/tinyauth-location.conf.sample index 0bf7e99..e7196b8 100644 --- a/root/defaults/nginx/tinyauth-location.conf.sample +++ b/root/defaults/nginx/tinyauth-location.conf.sample @@ -6,9 +6,6 @@ auth_request /tinyauth; auth_request_set $redirection_url $upstream_http_x_tinyauth_location; error_page 401 403 =302 $redirection_url; - -## If the subreqest returns 200 pass to the backend, if the subrequest returns 401 redirect to the URL tinyauth returns in the X-Tinyauth-Location header -error_page 401 = @tinyauth_login; ## Translate the user information response headers from the auth subrequest into variables auth_request_set $email $upstream_http_remote_email; diff --git a/root/defaults/nginx/tinyauth-server.conf.sample b/root/defaults/nginx/tinyauth-server.conf.sample index a8118ce..62f1f50 100644 --- a/root/defaults/nginx/tinyauth-server.conf.sample +++ b/root/defaults/nginx/tinyauth-server.conf.sample @@ -16,9 +16,6 @@ location /tinyauth { # Headers needed for authentication proxy_set_header X-Original-URL $scheme://$http_host$request_uri; - proxy_set_header X-Real-IP $remote_addr; - - # Not needed by Tinyauth right now but may be needed in the future - proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Original-Method $request_method; + proxy_set_header X-Real-IP $remote_addr; }