More work on Matrix deployment, configure apache on 8448
This commit is contained in:
parent
50321bd2a2
commit
89c2025dcc
9
roles/matrix/handlers/main.yml
Normal file
9
roles/matrix/handlers/main.yml
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/ansible-playbook
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
- name: restart synapse
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
name: matrix-synapse.service
|
||||
state: restarted
|
||||
become: yes
|
@ -21,6 +21,18 @@
|
||||
- "matrix-synapse-py3"
|
||||
- name: Set up Apache
|
||||
block:
|
||||
- name: Template out config
|
||||
template:
|
||||
src: "apache2-matrix.conf"
|
||||
dest: "/etc/apache2/conf-available/matrix.conf
|
||||
notify: restart apache
|
||||
- name: Enable configs
|
||||
command:
|
||||
cmd: a2enconf "{{ item }}"
|
||||
creates: "/etc/apache2/conf-enabled/{{ item }}.load"
|
||||
loop:
|
||||
- matrix
|
||||
notify: restart apache
|
||||
- name: Enable modules
|
||||
command:
|
||||
cmd: a2enmod "{{ item }}"
|
||||
|
3
roles/matrix/templates/apache2-matrix.conf
Normal file
3
roles/matrix/templates/apache2-matrix.conf
Normal file
@ -0,0 +1,3 @@
|
||||
# Configuration for Matrix over Synapse
|
||||
# vim:ft=apache:
|
||||
Listen 8448
|
3
roles/matrix/templates/shared_secrets.yaml
Normal file
3
roles/matrix/templates/shared_secrets.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
# This file contains shared secrets so you can leave them out of homeserver.yaml
|
||||
registration_shared_secret: {{ matrix_reg_secret.stdout }}
|
||||
turn_shared_secret: {{ matrix_turn_secret.stdout }}
|
Loading…
Reference in New Issue
Block a user