34 lines
1 KiB
Text
34 lines
1 KiB
Text
|
server {
|
||
|
listen 80;
|
||
|
server_name _;
|
||
|
|
||
|
location /tt-rss {
|
||
|
try_files $uri @tt-rss;
|
||
|
}
|
||
|
location /rss-bridge {
|
||
|
try_files $uri @rss-bridge;
|
||
|
}
|
||
|
|
||
|
location @tt-rss {
|
||
|
rewrite ^/tt-rss/(.*)$ /$1 break;
|
||
|
resolver 127.0.0.11 ipv6=off;
|
||
|
proxy_pass http://tt-rss/$request_uri;
|
||
|
proxy_read_timeout 60s;
|
||
|
proxy_connect_timeout 4s;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
}
|
||
|
|
||
|
location @rss-bridge {
|
||
|
rewrite ^/rss-bridge/(.*)$ /$1 break;
|
||
|
resolver 127.0.0.11 ipv6=off;
|
||
|
proxy_pass http://rss-bridge/$request_uri;
|
||
|
proxy_read_timeout 60s;
|
||
|
proxy_connect_timeout 4s;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
}
|
||
|
}
|