I have Home Assistant installed in docker using Coolify. Coolify lets me have a secure https public URL for my HA and other things I deploy by using a wuildcard DNS, Trafik proxy and Let's Encrypt certificates for SSL.
I have zigbee2mqtt installed and working in docker also using Coolify. It all works except the public URL part. I'm having trouble getting the front end to work on the public URL that Coolify creates.
I can access it on my LAN via the IP and port, but when I try to go to the public URL it gives me a 502 error.
I have a static IP. Coolify and it's Traefik proxy is configured to automatically issue Lets Encrypt certs for URLs that Coolify creates (using a wildcard DNS) and this is all working just fine for everything else I'm hosting.
The frontend section of my config is as follows:
frontend:
port: 8080
auth_token: <omited-for-security>
url: https://z2mqtt.<mydomain.com> # omitted the domain, but this has my real domain.
I feel like I've missed something obvious but can't see it. I tried posting this on the z2m discord but the docker channel there seems dead.