More work on Matrix deployment, configure apache on 8448

This commit is contained in:
Salt 2020-06-22 04:43:05 -05:00
parent 50321bd2a2
commit 89c2025dcc
4 changed files with 27 additions and 0 deletions

View 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

View File

@ -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 }}"

View File

@ -0,0 +1,3 @@
# Configuration for Matrix over Synapse
# vim:ft=apache:
Listen 8448

View 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 }}