From 2f1f0d3149094ff8a93fb30de47a7e58551ca3c6 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 9 Dec 2025 12:47:40 +0100 Subject: [PATCH] fix: WOPI/Collabora incompatibility with traefik v3.6.4 (#174) --- config/traefik/docker-entrypoint-override.sh | 4 ++++ traefik/opencloud.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/traefik/docker-entrypoint-override.sh b/config/traefik/docker-entrypoint-override.sh index 6b2e49e..17044a1 100644 --- a/config/traefik/docker-entrypoint-override.sh +++ b/config/traefik/docker-entrypoint-override.sh @@ -23,6 +23,10 @@ add_arg "--entryPoints.https.address=:${TRAEFIK_PORT_HTTPS:-443}" add_arg "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h" add_arg "--entryPoints.https.transport.respondingTimeouts.writeTimeout=12h" add_arg "--entryPoints.https.transport.respondingTimeouts.idleTimeout=3m" +# allow encoded characters required for WOPI/Collabora +add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedSlash=true" +add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedQuestionMark=true" +add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedPercent=true" # docker provider (get configuration from container labels) add_arg "--providers.docker.endpoint=unix:///var/run/docker.sock" add_arg "--providers.docker.exposedByDefault=false" diff --git a/traefik/opencloud.yml b/traefik/opencloud.yml index 2f39ae0..fc5a571 100644 --- a/traefik/opencloud.yml +++ b/traefik/opencloud.yml @@ -9,7 +9,7 @@ services: - "traefik.http.services.opencloud.loadbalancer.server.port=9200" - "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}" traefik: - image: traefik:v3 + image: traefik:v3.6.4 # release notes: https://github.com/traefik/traefik/releases user: ${TRAEFIK_CONTAINER_UID_GID:-0:0} networks: