This repository has been archived on 2026-08-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
infra/stacks/matrix.poneyworld.net/nginx/matrix.conf

21 lines
665 B
Plaintext

server {
listen 80 default_server;
server_name matrix.poneyworld.net;
# Traefik -> nginx -> synapse
location /_matrix {
proxy_pass http://synapse:8008;
# $remote_addr vaut ici l'adresse de Traefik, pas celle du client : l'utiliser
# ÉCRASE l'en-tête posé par Traefik et rend tous les clients identiques aux
# yeux de Synapse. $proxy_add_x_forwarded_for complète la chaîne existante.
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 128m;
}
location /.well-known/matrix/ {
root /var/www/;
default_type application/json;
add_header Access-Control-Allow-Origin *;
}
}