ansible/roles/matrix/templates/apache2-vhost-ssl.conf

33 lines
1020 B
Plaintext
Raw Normal View History

2020-08-02 19:43:08 -05:00
# Configuration for {{ matrix.url }}
# vim:ft=apache:
# Accept connections from non-SNI clients
SSLStrictSNIVHostCheck off
# Need this for SSL proxying, apparently
SSLProxyEngine on
# Website configuration
<VirtualHost *:80>
2020-08-02 19:43:08 -05:00
ServerName {{ matrix.url }}
Redirect permanent / https://{{ matrix.url }}
</VirtualHost>
2020-06-22 05:34:01 -05:00
<VirtualHost *:443 *:8448>
SSLEngine on
2020-08-02 19:43:08 -05:00
SSLCertificateFile /etc/pki/cert/crt/{{ matrix.url }}.crt
SSLCertificateKeyFile /etc/pki/cert/private/{{ matrix.url }}.key
SSLCertificateChainFile /etc/pki/cert/crt/{{ matrix.url }}-fullchain.crt
SSLProtocol {{ ssl_protocol }}
SSLCipherSuite {{ ssl_cipher_suite }}
2020-08-02 19:43:08 -05:00
ServerName {{ matrix.url }}
ServerAlias {{ matrix.server_name }}
DocumentRoot {{ matrix_webroot }}
<Directory "{{ matrix_webroot }}">
Require all granted
AllowOverride All
Options MultiViews FollowSymlinks
</Directory>
2020-06-22 05:34:01 -05:00
AllowEncodedSlashes NoDecode
2020-06-22 06:31:58 -05:00
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix https://127.0.0.1:8008/_matrix
</VirtualHost>