Skip to content

Commit f502988

Browse files
Merge pull request #220 from amureki/patch-1
Fix duplicate entries in in traefik wildcard certs guide
2 parents b1c373b + 9193b0a commit f502988

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/knowledge-base/proxy/traefik/wildcard-certs.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,17 @@ It is useful, because Traefik do not need to generate a new certificate for ever
100100

101101
```bash
102102
traefik.enable=true
103-
traefik.http.routers.<unique_router_name>.rule=Host(`example.coolify.io`) && PathPrefix(`/`)
104-
traefik.http.routers.<unique_router_name>.entryPoints=https
105-
traefik.http.routers.<unique_router_name>.middlewares=gzip
106-
traefik.http.routers.<unique_router_name>.service=<unique_service_name>
103+
traefik.http.routers.<unique_router_name_https>.rule=Host(`example.coolify.io`) && PathPrefix(`/`)
104+
traefik.http.routers.<unique_router_name_https>.entryPoints=https
105+
traefik.http.routers.<unique_router_name_https>.middlewares=gzip
106+
traefik.http.routers.<unique_router_name_https>.service=<unique_service_name>
107+
traefik.http.routers.<unique_router_name_https>.tls=true
107108
traefik.http.services.<unique_service_name>.loadbalancer.server.port=80
108-
traefik.http.routers.<unique_router_name>.tls=true
109-
traefik.http.routers.<unique_router_name>.tls.certresolver=letsencrypt
110-
traefik.http.routers.<unique_router_name>.rule=Host(`example.coolify.io`) && PathPrefix(`/`)
111-
traefik.http.routers.<unique_router_name>.entryPoints=http
112-
traefik.http.routers.<unique_router_name>.middlewares=redirect-to-https
109+
traefik.http.routers.<unique_router_name_https>.tls.certresolver=letsencrypt
110+
111+
traefik.http.routers.<unique_router_name_http>.rule=Host(`example.coolify.io`) && PathPrefix(`/`)
112+
traefik.http.routers.<unique_router_name_http>.entryPoints=http
113+
traefik.http.routers.<unique_router_name_http>.middlewares=redirect-to-https
113114
```
114115

115116
### SaaS

0 commit comments

Comments
 (0)