mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-02-04 00:24:29 +08:00
commit
071d541a74
@ -28,6 +28,15 @@ server {
|
||||
proxy_pass http://$upstream_ombi: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;
|
||||
}
|
||||
|
||||
# This allows access to the documentation for the api
|
||||
location ~ (/ombi)?/swagger {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
|
||||
@ -19,6 +19,18 @@ location ^~ /ombi/ {
|
||||
proxy_pass http://$upstream_ombi: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;
|
||||
}
|
||||
if ($http_referer ~* /ombi) {
|
||||
rewrite ^/api/(.*) /ombi/api/$1? redirect;
|
||||
}
|
||||
|
||||
# This allows access to the documentation for the api
|
||||
location ^~ /ombi/swagger {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user