mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-02-20 04:59:12 +08:00
Merge pull request #178 from linuxserver/adguard
adguard: bypass auth for api calls
This commit is contained in:
commit
665c13cc4b
@ -36,4 +36,14 @@ server {
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
|
||||
location /control {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app adguard;
|
||||
set $upstream_port 80;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user