mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-02-20 04:59:12 +08:00
Merge pull request #380 from Kristof-Mattei/adguard-add-support-for-dns-query
Adguard add support for dns query
This commit is contained in:
commit
2ccc3b3634
@ -1,4 +1,4 @@
|
||||
## Version 2021/05/18
|
||||
## Version 2021/09/24
|
||||
# make sure that your dns has a cname set for adguard and that your adguard container is named adguard
|
||||
|
||||
server {
|
||||
@ -47,4 +47,16 @@ server {
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
}
|
||||
|
||||
location /dns-query {
|
||||
# to properly use this please set `allow_unencrypted_doh: true` and `force_https: false` in adguard
|
||||
# see https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#configuration-file
|
||||
include /config/nginx/proxy.conf;
|
||||
include /config/nginx/resolver.conf;
|
||||
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