Synapse: Redirect to Element when path not valid.
This commit is contained in:
parent
840fc7a3d8
commit
83dcd0cece
1 changed files with 5 additions and 1 deletions
|
@ -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/;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue