websites/proxy-matrix: Add Synapse rev proxy setup
The *websites/proxy-matrix* role configures the Internet-facing reverse proxy to handle the *hatch.chat* domain. Most Matrix communication happens over the default HTTPS port, and as such will be directed through the reverse proxy.jenkins-master
parent
2df1605421
commit
5a114eecf0
|
@ -0,0 +1 @@
|
||||||
|
../lego/hatch.chat.crt
|
|
@ -0,0 +1 @@
|
||||||
|
../lego/hatch.chat.key
|
|
@ -0,0 +1,6 @@
|
||||||
|
- name: ensure apache is configured to proxy for matrix
|
||||||
|
template:
|
||||||
|
src: matrix.httpd.conf.j2
|
||||||
|
dest: /etc/httpd/conf.d/matrix.conf
|
||||||
|
mode: '0644'
|
||||||
|
notify: reload httpd
|
|
@ -0,0 +1,13 @@
|
||||||
|
<VirtualHost *:443>
|
||||||
|
ServerName hatch.chat
|
||||||
|
|
||||||
|
Include conf.d/ssl.include
|
||||||
|
SSLCertificateFile /etc/pki/tls/certs/hatch.chat.cer
|
||||||
|
SSLCertificateKeyFile /etc/pki/tls/private/hatch.chat.key
|
||||||
|
|
||||||
|
SSLProxyEngine On
|
||||||
|
ProxyRequests Off
|
||||||
|
AllowEncodedSlashes NoDecode
|
||||||
|
ProxyPass / https://matrix0.pyrocufflink.blue/ nocanon
|
||||||
|
ProxyPassReverse / https://matrix0.pyrocufflink.blue/
|
||||||
|
</VirtualHost>
|
10
websites.yml
10
websites.yml
|
@ -35,6 +35,16 @@
|
||||||
tags:
|
tags:
|
||||||
- websites/proxy
|
- websites/proxy
|
||||||
- websites/proxy-openvpn
|
- websites/proxy-openvpn
|
||||||
|
- role: cert
|
||||||
|
cert_src: websites/hatch.chat.cer
|
||||||
|
cert_dest: /etc/pki/tls/certs/hatch.chat.cer
|
||||||
|
cert_key_src: websites/hatch.chat.key
|
||||||
|
cert_key_dest: /etc/pki/tls/private/hatch.chat.key
|
||||||
|
tags: websites/hatch.chat
|
||||||
|
- role: websites/proxy-matrix
|
||||||
|
tags:
|
||||||
|
- websites/proxy
|
||||||
|
- websites/hatch.chat
|
||||||
tasks:
|
tasks:
|
||||||
- name: ensure httpd service is running
|
- name: ensure httpd service is running
|
||||||
service:
|
service:
|
||||||
|
|
Loading…
Reference in New Issue