From 33ea05f58f29d8be87c0c3474b6351269b0bf13d Mon Sep 17 00:00:00 2001 From: zino Date: Tue, 23 Sep 2025 10:07:31 +0200 Subject: [PATCH] m --- volumes/conf.d/etherpad.zinomedia.de.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/volumes/conf.d/etherpad.zinomedia.de.conf b/volumes/conf.d/etherpad.zinomedia.de.conf index dda7a17..80d2ecd 100644 --- a/volumes/conf.d/etherpad.zinomedia.de.conf +++ b/volumes/conf.d/etherpad.zinomedia.de.conf @@ -17,7 +17,7 @@ server { resolver 127.0.0.11 valid=30s ipv6=off; - location ~ ^/(locales/|locales\.json|admin/|static/|pluginfw/|javascripts/|socket\.io/|ep/|minified/|api/|ro/|error/|jserror|redirect|favicon\.ico|robots\.txt|indexBootstrap-.*\.js)$ { + location ~ ^/(locales/|locales\.json|admin/|static/|pluginfw/|javascripts/|socket\.io/|ep/|minified/|api/|ro/|error/|jserror|favicon\.ico|robots\.txt|indexBootstrap-.*\.js)$ { set $upstream "http://etherpad:9001"; proxy_pass $upstream; proxy_buffering off; @@ -31,6 +31,10 @@ server { proxy_set_header Connection $connection_upgrade; } + location ~ ^/p/(locales/|locales\.json|admin/|static/|pluginfw/|javascripts/|socket\.io/|ep/|minified/|api/|ro/|error/|jserror|favicon\.ico|robots\.txt|indexBootstrap-.*\.js)$ { + return 301 /$1$is_args$args; # /p/static/... -> /static/... + } + location = / { set $upstream "http://etherpad:9001"; proxy_pass $upstream;