Support both api-types

This commit is contained in:
Roxedus 2021-05-29 18:21:06 +02:00
parent dff04b544b
commit edb2dd66b2
No known key found for this signature in database
GPG key ID: EBC13557C4D91D7B
2 changed files with 4 additions and 5 deletions

View file

@ -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;
}
}

View file

@ -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;