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

41 строка
1.3 KiB

  1. # SPDX-FileCopyrightText: 2019 - 2024 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. # This is a sample file demonstrating how to set up reverse-proxy for element.example.com.
  6. # If you're not using Element Web (`matrix_client_element_enabled: false`), you won't need this.
  7. <VirtualHost *:80>
  8. ServerName element.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://element.example.com/
  12. </VirtualHost>
  13. <VirtualHost *:443>
  14. ServerName element.example.com
  15. SSLEngine On
  16. # If you manage SSL certificates by yourself, these paths will differ.
  17. SSLCertificateFile /matrix/ssl/config/live/element.example.com/fullchain.pem
  18. SSLCertificateKeyFile /matrix/ssl/config/live/element.example.com/privkey.pem
  19. SSLProxyEngine on
  20. SSLProxyProtocol +TLSv1.2 +TLSv1.3
  21. SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  22. ProxyPreserveHost On
  23. ProxyRequests Off
  24. ProxyVia On
  25. ProxyPass / http://127.0.0.1:81/
  26. ProxyPassReverse / http://127.0.0.1:81/
  27. ErrorLog ${APACHE_LOG_DIR}/element.example.com-error.log
  28. CustomLog ${APACHE_LOG_DIR}/element.example.com-access.log combined
  29. </VirtualHost>