mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Add actual ombi api
This commit is contained in:
parent
f34c522825
commit
0330e1d2a5
2 changed files with 21 additions and 0 deletions
|
@ -28,6 +28,15 @@ server {
|
||||||
proxy_pass http://$upstream_ombi:3579;
|
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 {
|
location ~ (/ombi)?/swagger {
|
||||||
include /config/nginx/proxy.conf;
|
include /config/nginx/proxy.conf;
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
|
|
|
@ -19,6 +19,18 @@ location ^~ /ombi/ {
|
||||||
proxy_pass http://$upstream_ombi:3579;
|
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 {
|
location ^~ /ombi/swagger {
|
||||||
include /config/nginx/proxy.conf;
|
include /config/nginx/proxy.conf;
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue