Use endpoint middleware rather than hacky router
This commit is contained in:
parent
a5af5bea6c
commit
8398a2df21
2 changed files with 9 additions and 9 deletions
|
@ -5,12 +5,3 @@ http:
|
||||||
scheme: https
|
scheme: https
|
||||||
compress:
|
compress:
|
||||||
compress: {}
|
compress: {}
|
||||||
|
|
||||||
routers:
|
|
||||||
tls-redirect:
|
|
||||||
service: ping@internal
|
|
||||||
rule: PathPrefix(`/`)
|
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
middlewares:
|
|
||||||
- tls-redirect
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
entryPoints:
|
entryPoints:
|
||||||
web:
|
web:
|
||||||
address: :80
|
address: :80
|
||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
- tls-redirect@file
|
||||||
proxyProtocol:
|
proxyProtocol:
|
||||||
trustedIPs:
|
trustedIPs:
|
||||||
- "{{ wireguard.cidr }}"
|
- "{{ wireguard.cidr }}"
|
||||||
|
@ -8,6 +11,9 @@ entryPoints:
|
||||||
- "{{ nebula.cidr }}"
|
- "{{ nebula.cidr }}"
|
||||||
web-secure:
|
web-secure:
|
||||||
address: :443
|
address: :443
|
||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
- tls-redirect@file
|
||||||
proxyProtocol:
|
proxyProtocol:
|
||||||
trustedIPs:
|
trustedIPs:
|
||||||
- "{{ wireguard.cidr }}"
|
- "{{ wireguard.cidr }}"
|
||||||
|
@ -15,6 +21,9 @@ entryPoints:
|
||||||
- "{{ nebula.cidr }}"
|
- "{{ nebula.cidr }}"
|
||||||
matrix:
|
matrix:
|
||||||
address: :8448
|
address: :8448
|
||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
- tls-redirect@file
|
||||||
proxyProtocol:
|
proxyProtocol:
|
||||||
trustedIPs:
|
trustedIPs:
|
||||||
- "{{ wireguard.cidr }}"
|
- "{{ wireguard.cidr }}"
|
||||||
|
|
Loading…
Reference in a new issue