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

40 строки
1.2 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 element.example.com.
  5. # If you're not using Element Web (`matrix_client_element_enabled: false`), you won't need this.
  6. <VirtualHost *:80>
  7. ServerName element.example.com
  8. # You may wish to handle the /.well-known/acme-challenge paths here somehow,
  9. # if you're using ACME (Let's Encrypt) certificates.
  10. Redirect permanent / https://element.example.com/
  11. </VirtualHost>
  12. <VirtualHost *:443>
  13. ServerName element.example.com
  14. SSLEngine On
  15. # If you manage SSL certificates by yourself, these paths will differ.
  16. SSLCertificateFile /matrix/ssl/config/live/element.example.com/fullchain.pem
  17. SSLCertificateKeyFile /matrix/ssl/config/live/element.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. ProxyPass / http://127.0.0.1:81/
  25. ProxyPassReverse / http://127.0.0.1:81/
  26. ErrorLog ${APACHE_LOG_DIR}/element.example.com-error.log
  27. CustomLog ${APACHE_LOG_DIR}/element.example.com-access.log combined
  28. </VirtualHost>