add rewrite

This commit is contained in:
aptalca 2019-08-08 11:40:11 -04:00 committed by GitHub
parent 87272296f0
commit 1e81091ab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
# freshrss does not have a base url setting # freshrss does not have a base url setting
location /freshrss { location /freshrss {
return 301 $scheme://$host/ombi/; return 301 $scheme://$host/freshrss/;
} }
location ^~ /freshrss/ { location ^~ /freshrss/ {
@ -16,6 +16,7 @@ location ^~ /freshrss/ {
include /config/nginx/proxy.conf; include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s; resolver 127.0.0.11 valid=30s;
set $upstream_freshrss freshrss; set $upstream_freshrss freshrss;
rewrite /freshrss(.*) $1 break;
proxy_pass http://$upstream_freshrss:80; proxy_pass http://$upstream_freshrss:80;
proxy_redirect off; proxy_redirect off;