2019-03-18 19:17:37 +00:00
|
|
|
# This is a sample file demonstrating how to set up reverse-proxy for riot.DOMAIN.
|
2019-02-01 14:51:18 +00:00
|
|
|
# If you're not using Riot (`matrix_riot_web_enabled: false`), you won't need this.
|
|
|
|
|
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName riot.DOMAIN
|
|
|
|
|
2019-03-18 18:45:17 +00:00
|
|
|
ProxyVia On
|
|
|
|
|
2019-02-01 14:51:18 +00:00
|
|
|
# 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
|
2019-02-05 09:11:28 +00:00
|
|
|
ProxyPass http://127.0.0.1:2402/.well-known/acme-challenge
|
2019-02-01 14:51:18 +00:00
|
|
|
</Location>
|
|
|
|
|
|
|
|
Redirect permanent / https://riot.DOMAIN/
|
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<VirtualHost *:443>
|
|
|
|
ServerName riot.DOMAIN
|
|
|
|
|
|
|
|
SSLEngine On
|
|
|
|
|
|
|
|
# If you manage SSL certificates by yourself, these paths will differ.
|
|
|
|
SSLCertificateFile /matrix/ssl/config/live/riot.DOMAIN/fullchain.pem
|
|
|
|
SSLCertificateKeyFile /matrix/ssl/config/live/riot.DOMAIN/privkey.pem
|
|
|
|
|
|
|
|
SSLProxyEngine on
|
2020-01-30 10:56:20 +00:00
|
|
|
SSLProxyProtocol +TLSv1.2 +TLSv1.3
|
2019-02-01 14:51:18 +00:00
|
|
|
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
|
|
|
|
|
|
|
|
ProxyPreserveHost On
|
|
|
|
ProxyRequests Off
|
|
|
|
ProxyVia On
|
|
|
|
|
2019-02-05 09:11:28 +00:00
|
|
|
ProxyPass / http://127.0.0.1:8765/
|
|
|
|
ProxyPassReverse / http://127.0.0.1:8765/
|
2019-02-01 14:51:18 +00:00
|
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/riot.DOMAIN-error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/riot.DOMAIN-access.log combined
|
|
|
|
</VirtualHost>
|