This commit is contained in:
Steffen Illium 2024-04-26 13:31:32 +02:00
parent ffd57360ae
commit be0ebf9e02
3 changed files with 22 additions and 5 deletions

View File

@ -15,4 +15,5 @@ spec:
- name: nextcloud
port: 80
middlewares:
- name: nextcloud
- name: response
- name: redirect

View File

@ -1,9 +1,21 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: nextcloud
name: redirect
spec:
redirectRegex:
regex: "^https://(.*)/.well-known/(card|cal)dav"
regex: "https://(.*)/.well-known/(card|cal)dav"
replacement: "https://${1}/remote.php/dav/"
permanent: true
permanent: true
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: response
spec:
customResponseHeaders:
### Change this to none to remove the Robots error:
X-Robots-Tag: "noindex, nofollow"
server: ""

View File

@ -11,6 +11,10 @@ spec:
stsIncludeSubdomains: true
stsPreload: true
stsSeconds: 15552000
customFrameOptionsValue: SAMEORIGIN
featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
customFrameOptionsValue: "SAMEORIGIN"
customRequestHeaders:
X-Forwarded-Proto: https
accessControlMaxAge: 300
sslRedirect: true
referrerPolicy: "no-referrer"