From f8b7ad6cb486928f2269e2af745f1ec700096312 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Tue, 16 Aug 2022 09:46:18 +0200 Subject: [PATCH] added nextcloud-specific configurations in Compose service definition --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 59d0787..623c30a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - MYSQL_DATABASE=${NC_DATABASE_NAME} - MYSQL_USER=${NC_DATABASE_USER} - MYSQL_PASSWORD=${NC_DATABASE_PASS} + - OVERWRITEPROTOCOL=https labels: - traefik.enable=${TRAEFIK_ENABLED} - traefik.docker.network=${TRAEFIK_NETWORK} @@ -27,6 +28,10 @@ services: - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER} # specify a service so a custom port can be used - traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT} + # specify a custom middleware for nextcloud-specific configuration + - traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.permanent=true + - traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.regex="https://(.*)/.well-known/(card|cal)dav" + - traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.replace="https://${1}/remote.php/dav/" networks: - internal - traefik