Update traefik to 2.2.0

This removes my custom hack for redirecting users to HTTPS
This commit is contained in:
Jake Howard
2020-03-30 17:59:02 +01:00
parent 7c5968c39a
commit 8fe288549f
3 changed files with 6 additions and 10 deletions

View File

@ -6,9 +6,6 @@ http:
- "10.0.0.0/8"
- "172.16.0.0/12"
- "192.168.0.0/16"
hsts:
redirectScheme:
scheme: https
routers:
hsts:
@ -16,20 +13,15 @@ http:
rule: PathPrefix(`/`)
entryPoints:
- web
middlewares:
- hsts
ping:
service: ping@internal
rule: Host(`traefik.jakehoward.tech`) && Path(`/ping/`)
middlewares:
- hsts
tls:
certResolver: le
dashboard:
service: dashboard@internal
rule: Host(`traefik.jakehoward.tech`)
middlewares:
- hsts
- internal-only
tls:
certResolver: le
@ -37,7 +29,6 @@ http:
service: api@internal
rule: Host(`traefik.jakehoward.tech`) && PathPrefix(`/api`)
middlewares:
- hsts
- internal-only
tls:
certResolver: le