Finish confs
This commit is contained in:
parent
3f92c47e1c
commit
2566f36c51
15 changed files with 148 additions and 30 deletions
17
roles/matrix/files/nginx/matrix.conf
Normal file
17
roles/matrix/files/nginx/matrix.conf
Normal 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 *;
|
||||
}
|
||||
}
|
5
roles/matrix/files/nginx/www/.well-known/matrix/client
Normal file
5
roles/matrix/files/nginx/www/.well-known/matrix/client
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"m.homeserver": {
|
||||
"base_url": "https://matrix.mrdev023.fr"
|
||||
}
|
||||
}
|
3
roles/matrix/files/nginx/www/.well-known/matrix/server
Normal file
3
roles/matrix/files/nginx/www/.well-known/matrix/server
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"m.server": "matrix.mrdev023.fr:443"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue