mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 13:01:35 -07:00
Support both api-types
This commit is contained in:
parent
dff04b544b
commit
edb2dd66b2
2 changed files with 4 additions and 5 deletions
|
@ -35,16 +35,15 @@ server {
|
|||
set $upstream_port 9696;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
|
||||
location ~ (/prowlarr)?/api {
|
||||
location ~ (/prowlarr)?(/[0-9]+)?/api {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app prowlarr;
|
||||
set $upstream_port 9696;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## Version 2021/05/28
|
||||
# first go into prowlarr settings, under "General" set the URL Base to /prowlarr and restart the prowlarr container
|
||||
|
||||
location ^~ /prowlarr {
|
||||
location /prowlarr {
|
||||
# enable the next two lines for http auth
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
@ -22,7 +22,7 @@ location ^~ /prowlarr {
|
|||
|
||||
}
|
||||
|
||||
location ^~ /prowlarr/api {
|
||||
location ~ /prowlarr(/[0-9]+)?/api {
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
set $upstream_app prowlarr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue