Wildcard Subdomain #4823
caf-3
started this conversation in
Feature Requests
Replies: 3 comments 10 replies
-
I achieved this through custom labels: traefik.enable=true
traefik.http.middlewares.gzip.compress=true
traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
traefik.http.routers.http-0-xxxxxxxxxxxxxxxxxxxx.entryPoints=http
traefik.http.routers.http-0-xxxxxxxxxxxxxxxxxxxx.middlewares=redirect-to-https
traefik.http.routers.http-0-xxxxxxxxxxxxxxxxxxxx.rule=HostRegexp(`.*\.example\.com`)
traefik.http.routers.http-0-xxxxxxxxxxxxxxxxxxxx.service=http-0-xxxxxxxxxxxxxxxxxxxx
traefik.http.routers.http-1-xxxxxxxxxxxxxxxxxxxx.entryPoints=http
traefik.http.routers.http-1-xxxxxxxxxxxxxxxxxxxx.middlewares=redirect-to-https
traefik.http.routers.http-1-xxxxxxxxxxxxxxxxxxxx.rule=Host(`example.com`) && PathPrefix(`/`)
traefik.http.routers.http-1-xxxxxxxxxxxxxxxxxxxx.service=http-1-xxxxxxxxxxxxxxxxxxxx
traefik.http.routers.https-0-xxxxxxxxxxxxxxxxxxxx.entryPoints=https
traefik.http.routers.https-0-xxxxxxxxxxxxxxxxxxxx.middlewares=gzip
traefik.http.routers.https-0-xxxxxxxxxxxxxxxxxxxx.rule=HostRegexp(`.*\.example\.com`)
traefik.http.routers.https-0-xxxxxxxxxxxxxxxxxxxx.service=https-0-xxxxxxxxxxxxxxxxxxxx
traefik.http.routers.https-0-xxxxxxxxxxxxxxxxxxxx.tls.certresolver=letsencrypt
traefik.http.routers.https-0-xxxxxxxxxxxxxxxxxxxx.tls=true
traefik.http.routers.https-1-xxxxxxxxxxxxxxxxxxxx.entryPoints=https
traefik.http.routers.https-1-xxxxxxxxxxxxxxxxxxxx.middlewares=gzip
traefik.http.routers.https-1-xxxxxxxxxxxxxxxxxxxx.rule=Host(`example.com`) && PathPrefix(`/`)
traefik.http.routers.https-1-xxxxxxxxxxxxxxxxxxxx.service=https-1-xxxxxxxxxxxxxxxxxxxx
traefik.http.routers.https-1-xxxxxxxxxxxxxxxxxxxx.tls.certresolver=letsencrypt
traefik.http.routers.https-1-xxxxxxxxxxxxxxxxxxxx.tls=true
traefik.http.services.http-0-xxxxxxxxxxxxxxxxxxxx.loadbalancer.server.port=3000
traefik.http.services.http-1-xxxxxxxxxxxxxxxxxxxx.loadbalancer.server.port=3000
traefik.http.services.https-0-xxxxxxxxxxxxxxxxxxxx.loadbalancer.server.port=3000
traefik.http.services.https-1-xxxxxxxxxxxxxxxxxxxx.loadbalancer.server.port=3000
caddy_0.encode=zstd gzip
caddy_0.handle_path.0_reverse_proxy={{upstreams 3000}}
caddy_0.handle_path=/*
caddy_0.header=-Server
caddy_0.try_files={path} /index.html /index.php
caddy_0=*.example.com
caddy_1.encode=zstd gzip
caddy_1.handle_path.1_reverse_proxy={{upstreams 3000}}
caddy_1.handle_path=/*
caddy_1.header=-Server
caddy_1.try_files={path} /index.html /index.php
caddy_1=example.com
caddy_ingress_network=coolify where xxxxxxxxxxxxxxxxxxxx is the service name of your app |
Beta Was this translation helpful? Give feedback.
7 replies
-
how did you have 4 unique service names ?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I done this by creating a CNAME record to my servers IP then another CNAME record with the name of Then just configure you Coolify services to use the domain you want. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When users sign up for an application hosted on Coolify (e.g., at example.com), automatically create and configure a subdomain for them (username.example.com) without manual intervention.
Desired Behavior
Use Cases
Beta Was this translation helpful? Give feedback.
All reactions