mirror of
https://github.com/EdyTheCow/docker-whmcs.git
synced 2026-04-02 02:38:13 +00:00
Traefik fixes
Some checks failed
Build and publish whmcs-php-fpm docker image / Build Docker image and push (push) Has been cancelled
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:
@@ -10,6 +10,7 @@
|
||||
address = ":443"
|
||||
|
||||
[providers.docker]
|
||||
exposedbydefault = false
|
||||
|
||||
[certificatesResolvers.cloudflare.acme]
|
||||
email = "admin@your_domain.com"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user