From 4dcd8b2efae62cc8c64b2d62910f498ded07b2d3 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sun, 24 Dec 2023 20:44:44 +0530 Subject: [PATCH] add matrix media_store resolving --- privfrontends/templates/in/apps.Caddyfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/privfrontends/templates/in/apps.Caddyfile b/privfrontends/templates/in/apps.Caddyfile index a074403..ca9f9cf 100644 --- a/privfrontends/templates/in/apps.Caddyfile +++ b/privfrontends/templates/in/apps.Caddyfile @@ -50,6 +50,12 @@ matrix.projectsegfau.lt { handle_path / { redir https://wiki.projectsegfau.lt/Matrix } + @hasSlashes path_regexp expression \/_matrix\/media\/projectsegfau.lt\/([a-zA-Z]{2})([a-zA-Z]{2})([a-zA-z]+) + rewrite @hasSlashes /mediawork/{re.expression.1}/{re.expression.2}/{re.expression.3} + handle_path /mediawork/* { + root * /mnt/matrix/synapse/storage/media-store/local_content + file_server browse + } } # Element