allow matrix-media-v1

This commit is contained in:
Arya 2024-01-08 20:52:23 +05:30
parent d5dd7e1e80
commit 218fc3aaf7
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -62,7 +62,7 @@ matrix.projectsegfau.lt {
handle_path / {
redir https://wiki.projectsegfau.lt/Matrix
}
@hasSlashes path_regexp expression \/_matrix\/media\/(v3|r0)\/(download|thumbnail)\/projectsegfau.lt\/([a-zA-Z]{2})([a-zA-Z]{2})([a-zA-z]+)
@hasSlashes path_regexp expression \/_matrix\/media\/(v3|v1|r0)\/(download|thumbnail)\/projectsegfau.lt\/([a-zA-Z]{2})([a-zA-Z]{2})([a-zA-z]+)
rewrite @hasSlashes /mediawork/{re.expression.3}/{re.expression.4}/{re.expression.5}
handle_path /mediawork/* {
root * /mnt/matrix/synapse/storage/media-store/local_content