1
0
Fork 0
myserver-configuration/roles/matrix/files/nginx/matrix.conf
2023-05-20 17:23:11 +02:00

17 lines
400 B
Text

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 *;
}
}