From 16c4dc7edf1659597fbba4e6540ad38252e127e3 Mon Sep 17 00:00:00 2001 From: beni <67470528+wswv@users.noreply.github.com> Date: Sun, 12 Sep 2021 08:42:02 +0800 Subject: [PATCH] Auto redirect for non-standard port Purpose to add function to auto redirect to non-standard port when server works on non-standard port condition. --- calibre-web.subdomain.conf.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/calibre-web.subdomain.conf.sample b/calibre-web.subdomain.conf.sample index fa2361e..a154d0c 100644 --- a/calibre-web.subdomain.conf.sample +++ b/calibre-web.subdomain.conf.sample @@ -54,5 +54,6 @@ server { set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_set_header X-Scheme $scheme; + proxy_redirect https://$host/ https://$host:selfdefined port number/;#here use your self-defined port number, so it could redirect to other link then still keep self defined port number. } }