infrastructure/ansible/roles/docker/files/traefik/file-provider.yml

44 lines
917 B
YAML
Raw Normal View History

2020-02-02 21:10:29 +00:00
http:
middlewares:
internal-only:
ipWhiteList:
sourceRange:
2020-03-08 16:41:13 +00:00
- "10.0.0.0/8"
- "172.16.0.0/12"
- "192.168.0.0/16"
2020-02-02 21:10:29 +00:00
hsts:
redirectScheme:
scheme: https
routers:
hsts:
2020-03-25 21:27:15 +00:00
service: ping@internal
rule: PathPrefix(`/`)
2020-02-02 21:10:29 +00:00
entryPoints:
- web
middlewares:
- hsts
ping:
2020-03-25 21:27:15 +00:00
service: ping@internal
rule: Host(`traefik.jakehoward.tech`) && Path(`/ping/`)
2020-02-02 21:10:29 +00:00
middlewares:
- hsts
tls:
certResolver: le
dashboard:
2020-03-25 21:27:15 +00:00
service: dashboard@internal
rule: Host(`traefik.jakehoward.tech`)
2020-02-02 21:10:29 +00:00
middlewares:
- hsts
- internal-only
tls:
certResolver: le
api:
2020-03-25 21:27:15 +00:00
service: api@internal
rule: Host(`traefik.jakehoward.tech`) && PathPrefix(`/api`)
2020-02-02 21:10:29 +00:00
middlewares:
- hsts
- internal-only
tls:
certResolver: le