#67 Split middleware into two, add both

This commit is contained in:
Joey Hafner 2022-11-21 14:58:33 -08:00
parent 85b3b0b856
commit 8fd04b0258
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ services:
labels:
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`)
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt
- traefik.http.routers.nextcloud.middlewares=nextcloud@file
- traefik.http.routers.nextcloud.middlewares=nextcloud-headers@file,nextcloud-redirect@file
#- traefik.http.services.nextcloud.loadbalancer.server.scheme=https
#- traefik.http.services.nextcloud.loadbalancer.server.port=443
networks:

View File

@ -52,7 +52,7 @@ http:
trustForwardHeader: true
authResponseHeaders:
- X-Forwarded-User
nextcloud:
nextcloud-headers:
headers:
accessControlMaxAge: 100
sslRedirect: true
@ -71,6 +71,7 @@ http:
customResponseHeaders:
X-Robots-Tag: "none"
server: ""
nextcloud-redirect:
redirectRegex:
permanent: true
regex: "https://(.*)/.well-known/(card|cal)dav"