fixed nextcloud dav redirects, added TCP proxy protocol support to keep original IP
This commit is contained in:
parent
7d1a2ae71b
commit
d7fb41166d
@ -15,10 +15,10 @@ spec:
|
||||
middlewares:
|
||||
- name: nextcloud-headers
|
||||
namespace: default
|
||||
# - name: nextcloud-redirect1
|
||||
# namespace: default
|
||||
# - name: nextcloud-redirect2
|
||||
# namespace: default
|
||||
- name: nextcloud-redirect1
|
||||
namespace: default
|
||||
- name: nextcloud-redirect2
|
||||
namespace: default
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
@ -39,8 +39,8 @@ metadata:
|
||||
spec:
|
||||
redirectRegex:
|
||||
permanent: true
|
||||
regex: https?://([^/]*)/.well-known/(card|cal)dav
|
||||
replacement: https://$${1}/remote.php/dav/
|
||||
regex: https?:\/\/([^\/]*)\/\.well-known\/(card|cal)dav
|
||||
replacement: https://${1}/remote.php/dav/
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
@ -50,6 +50,6 @@ metadata:
|
||||
spec:
|
||||
redirectRegex:
|
||||
permanent: true
|
||||
regex: https?://([^/]*)(/.well-known[^#]*)
|
||||
replacement: https://$${1}/index.php$${2}
|
||||
regex: https?:\/\/([^\/]*)(\/\.well-known[^#]*)
|
||||
replacement: https://${1}/index.php${2}
|
||||
|
||||
|
@ -5,6 +5,10 @@ metadata:
|
||||
namespace: kube-system
|
||||
spec:
|
||||
valuesContent: |-
|
||||
service:
|
||||
enabled: true
|
||||
spec:
|
||||
externalTrafficPolicy: Local
|
||||
ingressRoute:
|
||||
dashboard:
|
||||
matchRule: Host(`admin.home.lan`) && (PathPrefix(`/traefik`) || HeadersRegexp(`Referer`, `.*/traefik/.*`))
|
||||
@ -51,6 +55,10 @@ spec:
|
||||
port: 443
|
||||
expose: true
|
||||
exposedPort: 443
|
||||
proxyProtocol:
|
||||
insecure: true
|
||||
forwardedHeaders:
|
||||
insecure: true
|
||||
tls:
|
||||
enabled: true
|
||||
certResolver: letsencrypt
|
||||
@ -65,6 +73,10 @@ spec:
|
||||
port: 8443
|
||||
expose: true
|
||||
exposedPort: 8443
|
||||
proxyProtocol:
|
||||
insecure: true
|
||||
forwardedHeaders:
|
||||
insecure: true
|
||||
tls:
|
||||
enabled: true
|
||||
options: kube-system-mutual-auth
|
||||
|
Loading…
Reference in New Issue
Block a user