diff --git a/nginx-rp/reverse-proxy.conf b/nginx-rp/reverse-proxy.conf index c559135..af1c24f 100644 --- a/nginx-rp/reverse-proxy.conf +++ b/nginx-rp/reverse-proxy.conf @@ -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/; + } }