Skip to content

Commit fcbdb3b

Browse files
authored
Create dnsdist.subdomain.conf.sample
1 parent abdd349 commit fcbdb3b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

dnsdist.subdomain.conf.sample

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# make sure that your container is named dnsdist
2+
# make sure that your dns has a cname set for dnsdist
3+
4+
server {
5+
listen 443 ssl http2;
6+
listen [::]:443 ssl http2;
7+
8+
server_name dnsdist.*;
9+
10+
include /config/nginx/ssl.conf;
11+
12+
server_tokens off;
13+
14+
location /dns-query {
15+
include /config/nginx/proxy.conf;
16+
include /config/nginx/resolver.conf;
17+
set $upstream_app dnsdist;
18+
set $upstream_port 443;
19+
set $upstream_proto grpc;
20+
grpc_pass grpcs://$upstream_app:$upstream_port;
21+
22+
proxy_set_header Host $host;
23+
proxy_set_header X-Real-IP $remote_addr;
24+
proxy_set_header X-Forwarded-Host $host;
25+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
26+
proxy_set_header X-Forwarded-Proto $scheme;
27+
proxy_set_header X-Forwarded-Protocol $scheme;
28+
proxy_set_header Range $http_range;
29+
proxy_set_header If-Range $http_if_range;
30+
}
31+
}

0 commit comments

Comments
 (0)