DNS over HTTPS (DoH) server on OpenWrt

Could use some hints/suggestions on running DoH server on OpenWrt.

What I need is a simple and very lightweight proxy/forwarder: listen for DoH DNS requests on HTTP(s) and forward them to local Dnsmasq. HTTPS part can be handled by Nginx, but need the DoH service itself.

One possible option is https://github.com/m13253/dns-over-https, but its in Golang, not sure if it is possible to cross-compile it for OpenWRT.

Another one is https://www.nginx.com/blog/using-nginx-as-dot-doh-gateway/, but DoH part requires Nginx JavaScript module, don't think its bundled in OpenWrt.