matrix-docker-ansible-deploy/examples/reverse-proxies/apache/matrix-client-element.conf

36 lines
1.1 KiB
Plaintext
Raw Normal View History

# This is a sample file demonstrating how to set up reverse-proxy for element.example.com.
# If you're not using Element (`matrix_client_element_enabled: false`), you won't need this.
<VirtualHost *:80>
ServerName element.example.com
2024-01-14 16:23:28 +01:00
# You may wish to handle the /.well-known/acme-challenge paths here somehow,
# if you're using ACME (Let's Encrypt) certificates.
Redirect permanent / https://element.example.com/
</VirtualHost>
<VirtualHost *:443>
ServerName element.example.com
SSLEngine On
# If you manage SSL certificates by yourself, these paths will differ.
SSLCertificateFile /matrix/ssl/config/live/element.example.com/fullchain.pem
SSLCertificateKeyFile /matrix/ssl/config/live/element.example.com/privkey.pem
SSLProxyEngine on
2020-01-30 11:56:20 +01:00
SSLProxyProtocol +TLSv1.2 +TLSv1.3
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
ProxyPreserveHost On
ProxyRequests Off
ProxyVia On
2024-01-14 16:23:28 +01:00
ProxyPass / http://127.0.0.1:81/
ProxyPassReverse / http://127.0.0.1:81/
ErrorLog ${APACHE_LOG_DIR}/element.example.com-error.log
CustomLog ${APACHE_LOG_DIR}/element.example.com-access.log combined
</VirtualHost>