Change regex

This commit is contained in:
HalianElf 2020-02-14 21:41:51 -05:00 committed by GitHub
parent 0c5520e512
commit 1712bb6572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,21 +28,21 @@ server {
proxy_pass http://$upstream_nzbget:6789;
}
location ~ ^/nzbget(/.*)?/jsonrpc {
location ~ (/nzbget)?(/[^\/:]*:[^\/:]*)?/jsonrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
}
location ~ ^/nzbget(/.*)?/jsonprpc {
location ~ (/nzbget)?(/[^\/:]*:[^\/:]*)?/jsonprpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;
proxy_pass http://$upstream_nzbget:6789;
}
location ~ ^/nzbget(/.*)?/xmlrpc {
location ~ (/nzbget)?(/[^\/:]*:[^\/:]*)?/xmlrpc {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nzbget nzbget;