From 800db9e758fe66962733f8aa9447e70f8871a238 Mon Sep 17 00:00:00 2001 From: fox Date: Fri, 11 Dec 2020 12:51:31 +0000 Subject: [PATCH] Update page 'Home' --- Home.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Home.md b/Home.md index 33813b0..9eb6809 100644 --- a/Home.md +++ b/Home.md @@ -61,15 +61,15 @@ HTTP_PORT=127.0.0.1:8280 ##### Nginx: ```nginx - location /tt-rss/ { - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - - proxy_pass http://127.0.0.1:8280/tt-rss/; - break; - } +location /tt-rss/ { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + + proxy_pass http://127.0.0.1:8280/tt-rss/; + break; +} ``` Note: if you run into problems with global PHP-to-FPM handler taking priority over proxied location, define tt-rss location like this so it takes higher priority: @@ -84,9 +84,9 @@ If you want to pass entire nginx virtual host to tt-rss, put `/` in the location ```nginx - location / { - ... - } +location / { + ... +} ``` ##### Apache (this assumes you're using HTTPS):