File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments