Add nginx server

This commit is contained in:
florian 2022-12-01 20:02:31 +01:00
parent f214d4f4c1
commit c4437e3639
4 changed files with 45 additions and 0 deletions

17
matrix/nginx/matrix.conf Normal file
View file

@ -0,0 +1,17 @@
server {
listen 80 default_server;
server_name matrix.mrdev023.fr;
# Traefik -> nginx -> synapse
location /_matrix {
proxy_pass http://synapse:8008;
proxy_set_header X-Forwarded-For $remote_addr;
client_max_body_size 128m;
}
location /.well-known/matrix/ {
root /var/www/;
default_type application/json;
add_header Access-Control-Allow-Origin *;
}
}