mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-07 13:31:32 -07:00
Merge pull request #178 from linuxserver/adguard
adguard: bypass auth for api calls
This commit is contained in:
commit
665c13cc4b
1 changed files with 10 additions and 0 deletions
|
@ -36,4 +36,14 @@ server {
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
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…
Add table
Add a link
Reference in a new issue