Root domain not working
Dymion Fritz
I have setup my DNS A records so that *.mydomain.com and mydomain.com both point to my easypanel installation. I now want to expose an application on both www.mydomain.com and on mydomain.com, however, on the root domain the app is never shown and instead I am presented with an SSL error.
Is this a limiting factor of the way Easypanel is setup? I sadly couldn't find any documentation regarding the innerworkings of Traefik with Easypanel, and when I dove into the Traefik configurations Easypanel generated on my VPS I found some weird stuff (a main.yaml containing a JSON configuration for example).
I've setup the domains like this:
Domain 1: Host=www.mydomain.com, path=/, port=80
Domain 2: Host=mydomain.com, path=/, port=80
If I could get any pointers into a solution, I will gladly create a documentation PR :)
A
Andrei Canta
Root domains should work without issues. I assume your issue was the browser caching a self-signed certificate.
Once you add a domain, you don't need to redeploy. Traefik config will be updated instantly. However, if you access the domain before a SSL certificate is provisioned, Traefik will serve a self-signed certificate. After 1-2 minutes, the proper certificate is ready, but your browser still has the old one.
Next release will have an easy way to inspect Traefik's dashboard. That might help in debugging.
Dymion Fritz
Update: it appears that after a redeploy the root domain now seems to work. I would however still like some more information regarding how Easypanel handles the Traefik routing so the documentation can be updated to hopefully help others in the future.