final matrix media fix hopefully

This commit is contained in:
Arya 2023-12-28 09:49:57 +05:30
parent 05fd071cce
commit 77599d67e8
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -50,8 +50,8 @@ 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}
@hasSlashes path_regexp expression \/_matrix\/media\/(v3|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
file_server