Hi everyone,
I can't get træfik to route a static route. I can't find my error. Can someone help me?
I want to route: nas.dockerpi.local → https://10.1.0.10:91/
traefik.yaml
#Traefik.yaml
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
network: "traefik" # Custom docker network
exposedByDefault: false # Only expose explicitly enabled containers
file:
directory: "/etc/traefik/"
watch: true
entryPoints:
unsecure:
address: ":80"
secure:
address: ":443"
api:
dashboard: true
insecure: true
log:
level: DEBUG
staticservers.yaml
# staticservers.yaml
http:
services:
nas-web:
loadBalancer:
servers:
- url: "https://10.1.0.10:91"
scheme: https
routers:
nas-web:
rule: "Host(`nas.dockerpi.local`)"
service: "nas-web"
entryPoints: ["unsecure", "secure"]
From within the container:
- I tried to ping it - works.
- I tried to curl it - works with good response.
In the dashboard I can see the url, the router and the service. But I only get 404 errors when I open the page...
Any help/ideas?