All of a sudden, traefik isn't reading the toml file I keep in /config
The docker-compose file was working as before and all I did was update to 2.3.0:
traefik:
image: "traefik"
container_name: "traefik"
restart: always
networks:
- traefik_proxy
command:
- "--api=true"
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.watch=true"
- "--providers.docker=true"
- "--providers.file.watch=true"
- "--providers.file.directory=/config/"
- "--global.sendAnonymousUsage=false"
ports:
- "443:443"
- "8080:8080"
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${USERDIR}/Settings/Traefik/traefik.toml:/traefik.toml
- ${USERDIR}/Settings/Traefik/config:/config
- ${USERDIR}/Settings/Traefik/acme.json:/acme.json
- ${USERDIR}/Settings/Traefik/error.log:/error.log
- ${USERDIR}/Settings/Traefik/access.log:/access.log
environment:
- CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
- CLOUDFLARE_API_KEY=${CLOUDFLARE_API_KEY}
labels:
- "traefik.docker.network=traefik_proxy"
- "traefik.enable=false"
- "traefik.http.middlewares.traefik.stripprefix.prefixes=traefik/"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls.options=default"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
and on my config/servers.toml I had this:
[http]
[http.routers]
[http.routers.homeassistant]
entryPoints = ["https"]
rule = "Host(`sub.domain.net`)"
service = "homeassistant"
[http.routers.homeassistant.tls]
certResolver = "default"
[[http.routers.homeassistant.tls.domains]]
main = "domain.net"
sans = ["*.domain.net"]
[http.services]
[http.services.homeassistant]
[[http.services.homeassistant.loadBalancer.servers]]
url = "http://192.168.1.10"
port = 8123
passHostHeader = true
[tcp.services.homeassistant]
[[tcp.services.homeassistant.loadBalancer.servers]]
url = "http://192.168.1.10"
port = 8123
passHostHeader = true
[http.middlewares]
[http.middlewares.homeassistant]
browserXSSFilter = true
contentTypeNosniff = true
forceSTSHeader = true
SSLHost = "domain.net"
SSLRedirect = true
STSIncludeSubdomains = true
STSPreload = true
STSSeconds = 315360000
[http.middlewares.homeassistant.headers]
FrameDeny = true
SSLRedirect = true
# CORS
accessControlAllowMethods = ["GET", "OPTIONS", "PUT", "POST"]
accessControlAllowOrigin = '*'
accessControlAllowHeaders = ['DNT','User-Agent','X-Requested-With','If-Modified-Since','Cache-Control','Content-Type','Range']
accessControlExposeHeaders = ["Content-Length","Content-Range"]
accessControlAllowCredentials = true
accessControlMaxAge = 100
addVaryHeader = true
All my logs say is "Configuration loaded from file: /traefik.toml" but nothing shows up on the dashboard.
I'm blocked ... what else can I do to track down the problem?