Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

42 řádky
1.2 KiB

  1. # This is a sample file demonstrating how to set up reverse-proxy for element.DOMAIN.
  2. # If you're not using Element (`matrix_client_element_enabled: false`), you won't need this.
  3. <VirtualHost *:80>
  4. ServerName element.DOMAIN
  5. ProxyVia On
  6. # Map /.well-known/acme-challenge to the certbot server
  7. # If you manage SSL certificates by yourself, this will differ.
  8. <Location /.well-known/acme-challenge>
  9. ProxyPreserveHost On
  10. ProxyPass http://127.0.0.1:2402/.well-known/acme-challenge
  11. </Location>
  12. Redirect permanent / https://element.DOMAIN/
  13. </VirtualHost>
  14. <VirtualHost *:443>
  15. ServerName element.DOMAIN
  16. SSLEngine On
  17. # If you manage SSL certificates by yourself, these paths will differ.
  18. SSLCertificateFile /matrix/ssl/config/live/element.DOMAIN/fullchain.pem
  19. SSLCertificateKeyFile /matrix/ssl/config/live/element.DOMAIN/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. ProxyPass / http://127.0.0.1:8765/
  27. ProxyPassReverse / http://127.0.0.1:8765/
  28. ErrorLog ${APACHE_LOG_DIR}/element.DOMAIN-error.log
  29. CustomLog ${APACHE_LOG_DIR}/element.DOMAIN-access.log combined
  30. </VirtualHost>