Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

70 строки
2.0 KiB

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