Traefik fixes
Some checks failed
Build and publish whmcs-php-fpm docker image / Build Docker image and push (push) Has been cancelled

- Fixes broken basic auth after bumping version of Traefik
- Set Traefik exposedbydefault to false so it stops probing containers that don't need Traefik
This commit is contained in:
EdyTheCow
2025-09-29 23:50:00 +02:00
parent 06e05078a2
commit e4a57d1ca8
2 changed files with 3 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
address = ":443"
[providers.docker]
exposedbydefault = false
[certificatesResolvers.cloudflare.acme]
email = "admin@your_domain.com"

View File

@@ -31,6 +31,7 @@ services:
- docker-whmcs-network-internal
- docker-whmcs-network
labels:
- "traefik.enable=true"
- "traefik.docker.network=docker-whmcs-network"
# HTTP
- "traefik.http.routers.whmcs.entrypoints=web"
@@ -45,6 +46,7 @@ services:
- "traefik.http.services.whmcs-https.loadbalancer.server.port=80"
# Basic auth for /admin page
- "traefik.http.routers.whmcs-admin.rule=Host(`${DOMAIN}`) && PathPrefix(`/admin`)"
- "traefik.http.middlewares.basic-auth.basicauth.usersfile=/.htpasswd"
- "traefik.http.routers.whmcs-admin.middlewares=basic-auth"
- "traefik.http.routers.whmcs-admin.tls=true"