Set X-Frame-Options header for Nextcloud
This commit is contained in:
parent
0fcd79040e
commit
8a9dea2ec8
@ -33,7 +33,7 @@
|
|||||||
traefik.http.routers.nextcloud.rule: "Host(`{{ nextcloud_domain }}`)"
|
traefik.http.routers.nextcloud.rule: "Host(`{{ nextcloud_domain }}`)"
|
||||||
traefik.http.routers.nextcloud.entrypoints: websecure
|
traefik.http.routers.nextcloud.entrypoints: websecure
|
||||||
traefik.http.routers.nextcloud.tls.certresolver: letsencrypt
|
traefik.http.routers.nextcloud.tls.certresolver: letsencrypt
|
||||||
traefik.http.routers.nextcloud.middlewares: "securehttps@file,nextcloud-webdav"
|
traefik.http.routers.nextcloud.middlewares: "securehttps@file,nextcloud@file,nextcloud-webdav"
|
||||||
traefik.http.middlewares.nextcloud-webdav.redirectregex.regex: "https://(.*)/.well-known/(card|cal)dav"
|
traefik.http.middlewares.nextcloud-webdav.redirectregex.regex: "https://(.*)/.well-known/(card|cal)dav"
|
||||||
traefik.http.middlewares.nextcloud-webdav.redirectregex.replacement: "https://${1}/remote.php/dav/"
|
traefik.http.middlewares.nextcloud-webdav.redirectregex.replacement: "https://${1}/remote.php/dav/"
|
||||||
traefik.http.middlewares.nextcloud-webdav.redirectregex.permanent: "true"
|
traefik.http.middlewares.nextcloud-webdav.redirectregex.permanent: "true"
|
||||||
|
@ -5,6 +5,9 @@ tls:
|
|||||||
|
|
||||||
http:
|
http:
|
||||||
middlewares:
|
middlewares:
|
||||||
|
nextcloud:
|
||||||
|
headers:
|
||||||
|
customFrameOptionsValue: SAMEORIGIN
|
||||||
securehttps:
|
securehttps:
|
||||||
headers:
|
headers:
|
||||||
frameDeny: true
|
frameDeny: true
|
||||||
|
Loading…
Reference in New Issue
Block a user