m13253 / dns-over-https

High performance DNS over HTTPS client & server
https://developers.google.com/speed/public-dns/docs/dns-over-https
MIT License
1.96k stars 221 forks source link

Websocket support #121

Closed brotaxt closed 2 years ago

brotaxt commented 2 years ago

Hey, Iam using nginx as a reverse proxy for doh-server. The last few days Ive read many guides and some of them suggest to activate websocket in nginx with your doh-server.

proxy_set_header Upgrade $http_upgrade;

But, does the doh-server component support websocket connections at all?

Ive tried to connect with websocat_linux64 to the doh-server to figure it out, but that doesn't seem to work.

Greetings!

m13253 commented 2 years ago

DoH is a very simple protocol. There is no Websocket in it. Therefore, you don't need to enable Websocket support in Nginx. (But you can do it if you need it for other services to run.)

brotaxt commented 2 years ago

Alright, thank you very much for your confirmation! :)