You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
4 years ago
|
# This is a sample file demonstrating how to set up reverse-proxy for element.DOMAIN.
|
||
|
# If you're not using Element (`matrix_client_element_enabled: false`), you won't need this.
|
||
6 years ago
|
|
||
|
<VirtualHost *:80>
|
||
4 years ago
|
ServerName element.DOMAIN
|
||
6 years ago
|
|
||
6 years ago
|
ProxyVia On
|
||
|
|
||
6 years ago
|
# Map /.well-known/acme-challenge to the certbot server
|
||
|
# If you manage SSL certificates by yourself, this will differ.
|
||
|
<Location /.well-known/acme-challenge>
|
||
|
ProxyPreserveHost On
|
||
6 years ago
|
ProxyPass http://127.0.0.1:2402/.well-known/acme-challenge
|
||
6 years ago
|
</Location>
|
||
|
|
||
4 years ago
|
Redirect permanent / https://element.DOMAIN/
|
||
6 years ago
|
</VirtualHost>
|
||
|
|
||
|
<VirtualHost *:443>
|
||
4 years ago
|
ServerName element.DOMAIN
|
||
6 years ago
|
|
||
|
SSLEngine On
|
||
|
|
||
|
# If you manage SSL certificates by yourself, these paths will differ.
|
||
4 years ago
|
SSLCertificateFile /matrix/ssl/config/live/element.DOMAIN/fullchain.pem
|
||
|
SSLCertificateKeyFile /matrix/ssl/config/live/element.DOMAIN/privkey.pem
|
||
6 years ago
|
|
||
|
SSLProxyEngine on
|
||
5 years ago
|
SSLProxyProtocol +TLSv1.2 +TLSv1.3
|
||
6 years ago
|
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
|
||
|
|
||
|
ProxyPreserveHost On
|
||
|
ProxyRequests Off
|
||
|
ProxyVia On
|
||
|
|
||
6 years ago
|
ProxyPass / http://127.0.0.1:8765/
|
||
|
ProxyPassReverse / http://127.0.0.1:8765/
|
||
6 years ago
|
|
||
4 years ago
|
ErrorLog ${APACHE_LOG_DIR}/element.DOMAIN-error.log
|
||
|
CustomLog ${APACHE_LOG_DIR}/element.DOMAIN-access.log combined
|
||
6 years ago
|
</VirtualHost>
|