mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-19 21:03:46 -07:00
standardize upstream_app variable
This commit is contained in:
parent
c2ae00ce52
commit
06a1941230
136 changed files with 430 additions and 430 deletions
|
@ -15,16 +15,16 @@ location ^~ /ombi/ {
|
|||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_ombi ombi;
|
||||
proxy_pass http://$upstream_ombi:3579;
|
||||
set $upstream_app ombi;
|
||||
proxy_pass http://$upstream_app:3579;
|
||||
}
|
||||
|
||||
# This allows access to the actual api
|
||||
location ^~ /ombi/api {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_ombi ombi;
|
||||
proxy_pass http://$upstream_ombi:3579;
|
||||
set $upstream_app ombi;
|
||||
proxy_pass http://$upstream_app:3579;
|
||||
}
|
||||
if ($http_referer ~* /ombi) {
|
||||
rewrite ^/api/(.*) /ombi/api/$1? redirect;
|
||||
|
@ -34,8 +34,8 @@ if ($http_referer ~* /ombi) {
|
|||
location ^~ /ombi/swagger {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_ombi ombi;
|
||||
proxy_pass http://$upstream_ombi:3579;
|
||||
set $upstream_app ombi;
|
||||
proxy_pass http://$upstream_app:3579;
|
||||
}
|
||||
if ($http_referer ~* /ombi) {
|
||||
rewrite ^/swagger/(.*) /ombi/swagger/$1? redirect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue