Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

72 righe
2.1 KiB

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