mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented draft for top domain as matrix identifier name
This commit is contained in:
@@ -8,7 +8,18 @@
|
||||
domain: "{{synapse_domain}}"
|
||||
http_port: "{{synapse_http_port}}"
|
||||
|
||||
- name: configure {{synapse_domain}}.conf
|
||||
- name: create {{well_known_directory}}
|
||||
file:
|
||||
path: "{{well_known_directory}}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: create {{well_known_directory}}server
|
||||
template:
|
||||
src: "well-known.j2"
|
||||
dest: "{{well_known_directory}}server"
|
||||
|
||||
- name: create {{synapse_domain}}.conf
|
||||
template:
|
||||
src: "templates/nginx.conf.j2"
|
||||
dest: "{{nginx_servers_directory}}{{synapse_domain}}.conf"
|
||||
@@ -16,12 +27,6 @@
|
||||
domain: "{{synapse_domain}}"
|
||||
http_port: "{{synapse_http_port}}"
|
||||
notify: restart nginx
|
||||
|
||||
#- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||
# include_tasks: nginx-docker-proxy-domain.yml
|
||||
# vars:
|
||||
# domain: "{{synapse_domain}}"
|
||||
# http_port: "{{synapse_http_port}}"
|
||||
|
||||
- name: "include tasks nginx-docker-proxy-domain.yml for element"
|
||||
include_tasks: nginx-docker-proxy-domain.yml
|
||||
@@ -32,9 +37,9 @@
|
||||
- name: include create-and-seed-database.yml for multiple bridges
|
||||
include_tasks: create-and-seed-database.yml
|
||||
vars:
|
||||
database_password: "{{ item.database_password }}"
|
||||
database_username: "{{ item.database_username }}"
|
||||
database_name: "{{ item.database_name }}"
|
||||
database_password: "{{ item.database_password }}"
|
||||
database_username: "{{ item.database_username }}"
|
||||
database_name: "{{ item.database_name }}"
|
||||
loop: "{{ bridges }}"
|
||||
|
||||
# The following taks are necessary because a clean setup is necessary
|
||||
|
@@ -1,4 +1,4 @@
|
||||
server_name: "{{domain_matrix_synapse}}"
|
||||
server_name: "{{top_domain}}"
|
||||
pid_file: /data/homeserver.pid
|
||||
listeners:
|
||||
- port: 8008
|
||||
|
3
roles/docker-matrix-compose/templates/well-known.j2
Normal file
3
roles/docker-matrix-compose/templates/well-known.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"m.server": "{{synapse_domain}}:443"
|
||||
}
|
@@ -3,6 +3,7 @@ docker_compose_project_name: "matrix"
|
||||
database_password: "{{matrix_database_password}}"
|
||||
database_type: "postgres"
|
||||
registration_file_folder: "/data/registration/"
|
||||
well_known_directory: "{{nginx_well_known_root}}/matrix/"
|
||||
|
||||
bridges:
|
||||
- database_password: "{{ mautrix_whatsapp_bridge_database_password }}"
|
||||
|
Reference in New Issue
Block a user