nginx-rp fix padding + add collabora

This commit is contained in:
Viyurz 2023-12-06 12:59:07 +00:00
parent 242e584101
commit b768b2a095
2 changed files with 24 additions and 7 deletions

View file

@ -150,6 +150,23 @@ server {
# Collabora
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name collabora.viyurz.fr;
location / {
proxy_pass http://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 36000s;
}
}
# Homepage
server {
listen 443 ssl http2;
@ -184,7 +201,7 @@ server {
return 200 '{ "m.homeserver": { "base_url": "https://matrix.viyurz.fr" } }';
}
location / {
location / {
return 308 https://www.viyurz.fr$request_uri;
}
}