A guide to configure wildcard subdomain redirects (with Traefik wildcard certificates) in Coolify.
*.coolify.io
.Hetzner
as a provider.You can also setenv_file
instead ofenvironment
in the example above, but then you need to create a.env
file with theHETZNER_API_KEY
variable on the server.
Change --certificatesresolvers.letsencrypt.acme.dnschallenge.provider=hetzner
to your provider.
Now you have two options to configure your wildcard subdomain for your resources.
https://example.coolify.io
.empty
.traefik.http.routers.<unique_router_name>.tls.certresolver
should be the same as yourcertresolver
name in Traefik proxy configuration, by defaultletsencrypt
.
traefik.http.services.<unique_service_name>.loadbalancer.server.port
should be the same as your application listens on. Port 80 if you use a static deployment.