I am trying to follow the following model but using file instead of docker (this is for an application that's on a separate host, not running within docker):
- "traefik.http.routers.grafana.entrypoints=http"
- "traefik.http.routers.grafana.rule=Host(`grafana.domain.com`)"
- "traefik.http.middlewares.grafana-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.grafana.middlewares=grafana-https-redirect"
- "traefik.http.routers.grafana-secure.entrypoints=https"
- "traefik.http.routers.grafana-secure.rule=Host(`grafana.domain.com`)"
- "traefik.http.routers.grafana-secure.tls=true"
- "traefik.http.routers.grafana-secure.tls.certresolver=dns"
- "traefik.http.routers.grafana-secure.service=grafana"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
So this is what I have thus far:
octoprint:
entryPoints:
http
middlewares:
- https-redirect
service: service-octoprint
rule: Host(`octoprint.domain.com`)
octoprint-secure:
entryPoints:
https
middlewares:
- my-basic-auth
service: service-octoprint
rule: Host(`octoprint.domain.com`)
tls:
certResolver: dns
but looking at the dashboard, both routers have http 80, https 443 and traefik 8080 as their entrypoints. I've tried with entrypoints of web and web-secure, as per the doc but that doesn't seem to work either:
octoprint:
entryPoints:
web:
address: ":80"
middlewares:
- https-redirect
service: service-octoprint
rule: Host(`octoprint.domain.com`)
octoprint-secure:
entryPoints:
web-secure:
address: ":443"
middlewares:
- my-basic-auth
service: service-octoprint
rule: Host(`octoprint.domain.com`)
tls:
certResolver: dns
That doesn't even parse, with a: line 25: found character that cannot start any token"
And this doesn't change the entrypoints either:
octoprint:
entryPoints:
web
middlewares:
- https-redirect
service: service-octoprint
rule: Host(`octoprint.domain.com`)
octoprint-secure:
entryPoints:
web-secure
middlewares:
- my-basic-auth
service: service-octoprint
rule: Host(`octoprint.domain.com`)
tls:
certResolver:
There isn't a lot of documentation on files, I can't find a complete example that's similar to what I am trying to do (other than the docker version I used for my grafana).
Help? These are within http and router, btw.