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

View File

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