Synapse: Redirect to Element when path not valid.

This commit is contained in:
Viyurz 2024-01-08 16:22:22 +01:00
parent 840fc7a3d8
commit 83dcd0cece

View file

@ -168,13 +168,17 @@ server {
server_name matrix.viyurz.fr;
location / {
location ~ ^(/_matrix|/_synapse/client) {
proxy_pass http://localhost:8008;
# Nginx by default only allows file uploads up to 1M in size
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
client_max_body_size 50M;
}
location / {
return 308 https://element.viyurz.fr/;
}
}