mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 13:01:35 -07:00
add rewrite
This commit is contained in:
parent
87272296f0
commit
1e81091ab7
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue