Reverse proxy: Etebase add admin page + Remove Matrix to Element redirection.

This commit is contained in:
Viyurz 2024-02-25 19:27:24 +01:00
parent fc7e2ec06d
commit bf6b958ed7
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -85,7 +85,7 @@ server {
server_name etebase.{{ domain }};
location ~ ^/(?!admin) {
location / {
proxy_pass http://127.0.0.1:{{ ports['etebase'] }};
}
}
@ -135,17 +135,13 @@ server {
server_name matrix.{{ domain }};
location ~ ^(/_matrix|/_synapse/client) {
location / {
proxy_pass http://127.0.0.1:{{ ports['synapse'] }};
# 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 {{ synapse['max_upload_size'] }};
}
location / {
return 308 https://element.{{ domain }}/;
}
}