mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-14 00:53:10 -07: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 changed files with 13 additions and 1 deletions
|
@ -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
|
# make sure that your dns has a cname set for adguard and that your adguard container is named adguard
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
@ -47,4 +47,16 @@ server {
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
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…
Add table
Add a link
Reference in a new issue