Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

66 líneas
1.9 KiB

  1. # This is a sample file demonstrating how to set up reverse-proxy for matrix.example.com
  2. <VirtualHost *:80>
  3. ServerName matrix.example.com
  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.example.com/
  7. </VirtualHost>
  8. # Client-Server API
  9. <VirtualHost *:443>
  10. ServerName matrix.example.com
  11. SSLEngine On
  12. # If you manage SSL certificates by yourself, these paths will differ.
  13. SSLCertificateFile /path/to/matrix.example.com/fullchain.pem
  14. SSLCertificateKeyFile /path/to/matrix.example.com/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.example.com-error.log
  26. CustomLog ${APACHE_LOG_DIR}/matrix.example.com-access.log combined
  27. </VirtualHost>
  28. # Server-Server (federation) API
  29. Listen 8448
  30. <VirtualHost *:8448>
  31. ServerName matrix.example.com
  32. SSLEngine On
  33. # If you manage SSL certificates by yourself, these paths will differ.
  34. SSLCertificateFile /matrix/ssl/config/live/matrix.example.com/fullchain.pem
  35. SSLCertificateKeyFile /matrix/ssl/config/live/matrix.example.com/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.example.com-error.log
  47. CustomLog ${APACHE_LOG_DIR}/matrix.example.com-access.log combined
  48. </VirtualHost>