This repository has been archived on 2021-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
shipyard/letsencrypt/nginx/proxy-confs/matrix.subdomain.conf
Bruno BELANYI 95e15adc13 services: add Synapse
Synapse is the Matrix server software.

This needs some manual setup, launching `docker-compose exec synapse sh`
followed by `register_new_matrix_user -c /data/homeserver.yaml
https://matrix.belanyi.fr/` inside the container.
2021-01-24 23:10:16 +01:00

40 lines
988 B
Plaintext

# make sure that your dns has a cname set for matrix and that your matrix container is not using a base url
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name matrix.belanyi.fr;
include /config/nginx/ssl.conf;
location /_matrix {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app synapse;
set $upstream_port 8008;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
# 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 10M;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name belanyi.fr;
include /config/nginx/ssl.conf;
location /.well-known/matrix/server {
default_type application/json;
return 200 '{"m.server": "matrix.belanyi.fr:443"}';
}
}