Coder behind Reverse Proxy and Port Forwarding

Good evening everyone, just a quick question since I'm kinda Stuck: Does Coder Server need any open Ports besides 443 by default? 80 should only be used for Let's Encrypt but since I'm using DNS Challenge it shouldn't matter. Or am I missing something?
To clarify, my current setup is as follows:

Router with Port Forwarding -> Reverse Proxy -> Coder Server

I'm forwarding port 443 currently but I either get certificate errors or bad Gateway. According to my browser the certificate is issued by localhost in case of a certificate error.

Caddy Logs show it has succesfully generated new certificates for the domain and wildcard subdomain.

Bad Gateway usually happens when I try to generate the certificate on my reverse proxy already, while a straight passthrough gives me the cert error. Probably because it's forwarding using http instead?

Hope somebody has an Idea.
Was this page helpful?