#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: labels:
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`) - traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`)
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt - 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.scheme=https
#- traefik.http.services.nextcloud.loadbalancer.server.port=443 #- traefik.http.services.nextcloud.loadbalancer.server.port=443
networks: networks:

View File

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