Restore custom middleware implementation.

This redirect doesn't work correctly, let's revert to our custom one for
now. It does exactly the same thing, anyway
This commit is contained in:
Jake Howard 2020-03-31 14:52:04 +01:00
parent 079e58e67b
commit 335992c9e9
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 9 additions and 5 deletions

View File

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

View File

@ -1,11 +1,6 @@
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: web-secure
scheme: https
proxyProtocol:
trustedIPs:
- "{{ wireguard.cidr }}"