Hello,
I am encountering a 404 error when trying to resolve any external service with Traefik (pihole,synology,blue iris, etc) however my local dockers are able to resolve successfully. I am able to resolve these external services successfully when calling the URL directly. I have set the logs to DEBUG but I am not able to find any type of error messages, and the dashboard appears to show everything running successfully as well. I am at a loss on where to continue my troubleshooting for this issue, do you have any suggestions? Below you can find my configuration:
docker-compose.yml
version: '3'
services:
traefik:
image: traefik:v2.3
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- proxy
ports:
- 80:80
- 443:443
environment:
- CF_API_EMAIL=******
- CF_API_KEY=*****
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/traefik.yml:/traefik.yml:ro
- ./data/acme.json:/acme.json
- ./data/config.yml:/config.yml:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.rule=Host(`monitor.example.com`)"
- "traefik.http.middlewares.traefik-auth.basicauth.users=admin:****"
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
- "traefik.http.routers.traefik-secure.entrypoints=https"
- "traefik.http.routers.traefik-secure.rule=Host(`monitor.example`)"
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
- "traefik.http.routers.traefik-secure.tls=true"
- "traefik.http.routers.traefik-secure.tls.certresolver=cloudflare"
- "traefik.http.routers.traefik-secure.tls.domains[0].main=example.com"
- "traefik.http.routers.traefik-secure.tls.domains[0].sans=*.example.com"
- "traefik.http.routers.traefik-secure.service=api@internal"
networks:
proxy:
external: true
traefik.yml
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
https:
address: ":443"
log:
level: error
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: /config.yml
certificatesResolvers:
cloudflare:
acme:
email: ******
storage: acme.json
dnsChallenge:
provider: cloudflare
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
config.yml
http:
routers:
weather:
entryPoints:
- "https"
rule: "Host(`example.com`)"
middlewares:
- default-headers
tls: {}
service: weather
synology:
entryPoints:
- "https"
rule: "Host(`nas.example.com`)"
middlewares:
- default-headers
tls: {}
service: synology
services:
weather:
loadBalancer:
servers:
- url: "http://192.168.0.8:80"
passHostHeader: false
synology:
loadBalancer:
servers:
- url: "https://192.168.0.3:5001"
passHostHeader: false
middlewares:
https-redirect:
redirectScheme:
scheme: https
default-headers:
headers:
frameDeny: true
sslRedirect: true
browserXssFilter: true
contentTypeNosniff: true
forceSTSHeader: true
stsIncludeSubdomains: true
stsPreload: true
default-whitelist:
ipWhiteList:
sourceRange:
- "10.0.0.0/24"
- "192.168.0.0/24"
- "172.0.0.0/8"
secured:
chain:
middlewares:
- default-whitelist
- default-headers
Thanks in advance!