Skip to content

Commit

Permalink
Fix doh.ffmuc.net nginx config
Browse files Browse the repository at this point in the history
dnsdist 1.8 crashes with X-Forwarded-For headers on DoH queries
  • Loading branch information
salt-master committed Jul 19, 2023
1 parent 1113e73 commit ae2bfec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx/domains/doh.ffmuc.net.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ server {
# }
limit_req zone=doh_requests burst=10000;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_buffering off;
proxy_pass http://$doh_backend/dns-query$is_args$args;
proxy_http_version 1.1;

// Add CORS Header to allow access via JavaScript see: https://github.com/freifunkMUC/ffmuc-salt-public/issues/125
# Add CORS Header to allow access via JavaScript see: https://github.com/freifunkMUC/ffmuc-salt-public/issues/125
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST' always;
add_header 'Access-Control-Allow-Headers' '*' always;
Expand All @@ -87,7 +87,7 @@ server {
}
limit_req zone=doh_requests burst=6000;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_buffering off;
#proxy_pass https://doh.ffmuc.net:445/dns-query;
Expand Down

0 comments on commit ae2bfec

Please sign in to comment.