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:
parent
079e58e67b
commit
335992c9e9
2 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
entryPoints:
|
||||
web:
|
||||
address: ":80"
|
||||
http:
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: web-secure
|
||||
scheme: https
|
||||
proxyProtocol:
|
||||
trustedIPs:
|
||||
- "{{ wireguard.cidr }}"
|
||||
|
|
Loading…
Reference in a new issue