Hi, and thankyou for providing an excellent starting point for using dnsproxy in docker! i have a challenge that I am hoping you can help with as I am losing my mind trying to figure it out.
This is simply about automating certificate renewal while running dns-over-https and dns-over-tls. Obviously nginx requires the use of port 443 and dns-over-https requires the use of port 443. So we can't use both in the stack.
So, i found some config that is used for adguardhome:
bind_host: 0.0.0.0
bind_port: 38139
tls:
enabled: true
server_name: yourdomain.name
force_https: false # this lets NPM handle HTTPS
port_https: 0 # this disables AGH's DoH server
allow_unencrypted_doh: true # allows unencrypted comm between NPM and AGH
certificate_path: /cert/fullchain.cer # only used for DoT
private_key_path: /cert/yourdomain.name # only used for DoT
This allows you to disable https and allow nginx to handle it. I can't however find any command line option to do this with dns proxy. I can see that you can change the https port however I don't know how to implent the correct config to make it work.
Am I over complicating this? or is there a straight forward was to intergrate automatic certificate renewal?
Any help would be very much appreciated thankyou