bundles/matrix-synapse: auto-configure nginx vhost
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-07-17 12:38:04 +02:00
parent 574b3a833a
commit 32c0ad3bd6
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 84 additions and 72 deletions

View file

@ -1,24 +0,0 @@
location /.well-known/matrix/ {
types { } default_type "application/json";
alias /etc/matrix-synapse/wellknown/;
add_header Access-Control-Allow-Origin *;
}
location /_matrix {
proxy_pass http://[::1]:20080;
proxy_set_header Host "sophies-kitchen.eu";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /_matrix/media {
client_max_body_size 500M;
proxy_read_timeout 600s;
proxy_set_header Host "sophies-kitchen.eu";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:20090;
}