2023-10-22 14:47:10 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
2023-11-03 13:08:24 +01:00
|
|
|
server_name matrix.ixvd.net;
|
2023-10-22 14:47:10 +02:00
|
|
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_read_timeout 600;
|
|
|
|
|
|
|
|
location = / {
|
|
|
|
return 302 https://cinny.ixvd.net;
|
|
|
|
}
|
|
|
|
|
|
|
|
# matrix
|
|
|
|
location /.well-known/matrix/server {
|
|
|
|
return 200 '{ "m.server": "matrix.ixvd.net:443" }';
|
|
|
|
}
|
|
|
|
|
|
|
|
location /.well-known/matrix/client {
|
|
|
|
add_header Access-Control-Allow-Origin '*';
|
|
|
|
return 200 '{ "m.homeserver": { "base_url": "https://matrix.ixvd.net" } }';
|
|
|
|
}
|
|
|
|
|
|
|
|
location /_matrix {
|
|
|
|
proxy_pass http://conduit:6167;
|
|
|
|
client_max_body_size 0;
|
|
|
|
}
|
2023-11-03 13:08:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name matrix.neo.ixvd.net;
|
|
|
|
|
|
|
|
location / {
|
2023-11-03 13:19:12 +01:00
|
|
|
proxy_pass http://conduit:6167;
|
|
|
|
client_max_body_size 0;
|
2023-11-03 13:08:24 +01:00
|
|
|
}
|
2023-10-22 14:47:10 +02:00
|
|
|
}
|