Matrix Docker Ansible eploy
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.
 
 

66 lines
1.9 KiB

  1. # This is a sample file demonstrating how to set up reverse-proxy for matrix.DOMAIN
  2. <VirtualHost *:80>
  3. ServerName matrix.DOMAIN
  4. # You may wish to handle the /.well-known/acme-challenge paths here somehow,
  5. # if you're using ACME (Let's Encrypt) certificates.
  6. Redirect permanent / https://matrix.DOMAIN/
  7. </VirtualHost>
  8. # Client-Server API
  9. <VirtualHost *:443>
  10. ServerName matrix.DOMAIN
  11. SSLEngine On
  12. # If you manage SSL certificates by yourself, these paths will differ.
  13. SSLCertificateFile /path/to/matrix.DOMAIN/fullchain.pem
  14. SSLCertificateKeyFile /path/to/matrix.DOMAIN/privkey.pem
  15. SSLProxyEngine on
  16. SSLProxyProtocol +TLSv1.2 +TLSv1.3
  17. SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  18. ProxyPreserveHost On
  19. ProxyRequests Off
  20. ProxyVia On
  21. RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
  22. AllowEncodedSlashes NoDecode
  23. ProxyPass / http://127.0.0.1:81 retry=0 nocanon
  24. ProxyPassReverse / http://127.0.0.1:81/
  25. ErrorLog ${APACHE_LOG_DIR}/matrix.DOMAIN-error.log
  26. CustomLog ${APACHE_LOG_DIR}/matrix.DOMAIN-access.log combined
  27. </VirtualHost>
  28. # Server-Server (federation) API
  29. Listen 8448
  30. <VirtualHost *:8448>
  31. ServerName matrix.DOMAIN
  32. SSLEngine On
  33. # If you manage SSL certificates by yourself, these paths will differ.
  34. SSLCertificateFile /matrix/ssl/config/live/matrix.DOMAIN/fullchain.pem
  35. SSLCertificateKeyFile /matrix/ssl/config/live/matrix.DOMAIN/privkey.pem
  36. SSLProxyEngine on
  37. SSLProxyProtocol +TLSv1.2 +TLSv1.3
  38. SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  39. ProxyPreserveHost On
  40. ProxyRequests Off
  41. ProxyVia On
  42. RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
  43. AllowEncodedSlashes NoDecode
  44. ProxyPass / http://127.0.0.1:8449/ retry=0 nocanon
  45. ProxyPassReverse / http://127.0.0.1:8449/
  46. ErrorLog ${APACHE_LOG_DIR}/matrix.DOMAIN-error.log
  47. CustomLog ${APACHE_LOG_DIR}/matrix.DOMAIN-access.log combined
  48. </VirtualHost>