From 7d68c0ebdba706ed44f3d3d25b970ed21a56158a Mon Sep 17 00:00:00 2001 From: Dreytac Date: Thu, 3 Oct 2019 20:30:55 +1000 Subject: [PATCH 1/2] Fix tt-rss subdomain redirection --- tt-rss.subdomain.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tt-rss.subdomain.conf.sample b/tt-rss.subdomain.conf.sample index bc6a66c..8ab6fd9 100644 --- a/tt-rss.subdomain.conf.sample +++ b/tt-rss.subdomain.conf.sample @@ -4,7 +4,7 @@ server { listen 80; server_name tt-rss.*; - return 301 https://$server_name$request_uri; + return 301 https://$host$request_uri; } server { From c0d04a8f14f382ead60c77401c51f084a7a67e94 Mon Sep 17 00:00:00 2001 From: Dreytac Date: Mon, 7 Oct 2019 19:09:53 +1000 Subject: [PATCH 2/2] Remove port 80 redirect. --- tt-rss.subdomain.conf.sample | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tt-rss.subdomain.conf.sample b/tt-rss.subdomain.conf.sample index 8ab6fd9..3f7b358 100644 --- a/tt-rss.subdomain.conf.sample +++ b/tt-rss.subdomain.conf.sample @@ -1,12 +1,6 @@ # make sure that your dns has a cname set for tt-rss and your container name is tt-rss # In tt-rss config.php the SELF_URL_PATH should be set to http://tt-rss.server.com/ NOT https://tt-rss.server.com although it will be accessible on https://tt-rss.server.com -server { - listen 80; - server_name tt-rss.*; - return 301 https://$host$request_uri; -} - server { listen 443 ssl; listen [::]:443 ssl;