I use nginx for my DNS over HTTPS and DNS over TLS. Here is my nginx.conf:
user www-data;
worker_processes auto;
pid /run/nginx.pid;
load_module /etc/nginx/modules/ngx_http_js_module.so;
load_module /etc/nginx/modules/ngx_stream_js_module.so;
events {
worker_connections 768;
}
# DNS Strea
After compiling nginx 1.24.0 from the source tarball, using identical
configure arguments, it just works.
$ /sbin/nginx -V
nginx version: nginx/1.24.0
built by gcc 12.2.0 (Debian 12.2.0-14)
built with OpenSSL 3.0.9 30 May 2023
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sb