forked from data.coop/ansible
Add necessary nginx configs to get matrix federation to work
This commit is contained in:
parent
1f8b1827ff
commit
fef1951d57
1
roles/docker/files/configs/matrix/vhost-matrix
Normal file
1
roles/docker/files/configs/matrix/vhost-matrix
Normal file
|
@ -0,0 +1 @@
|
|||
listen 8008;
|
14
roles/docker/files/configs/matrix/vhost-root
Normal file
14
roles/docker/files/configs/matrix/vhost-root
Normal file
|
@ -0,0 +1,14 @@
|
|||
location /_matrix {
|
||||
proxy_pass http://0.0.0.0:8008;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
}
|
||||
|
||||
location /.well-known/matrix/server {
|
||||
default_type application/json;
|
||||
return 200 '{"m.server": "matrix.data.coop:443"}';
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
default_type application/json;
|
||||
return 200 '{"m.homeserver": {"base_url": "https://matrix.data.coop"}}';
|
||||
}
|
|
@ -31,6 +31,11 @@
|
|||
src: files/configs/riot/riot.im.conf
|
||||
dest: "{{ riot.volume_folder }}/data/riot.im.conf"
|
||||
|
||||
- name: upload vhost config for root domain
|
||||
template:
|
||||
src: files/configs/matrix/vhost-root
|
||||
dest: "{{ nginx.volume_folder }}/vhost/{{ base_domain }}"
|
||||
|
||||
- name: matrix database container
|
||||
docker_container:
|
||||
name: matrix_db
|
||||
|
|
Loading…
Reference in a new issue