Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 line
872 B

  1. https://matrix.DOMAIN {
  2. # If you use your own certificates, your path may differ
  3. # If you wish to use Caddy's built-in Let's Encrypt support, you can also supply an email address here
  4. tls /matrix/ssl/config/live/matrix.DOMAIN/fullchain.pem /matrix/ssl/config/live/matrix.DOMAIN/privkey.pem
  5. root /matrix/static-files
  6. header / {
  7. Access-Control-Allow-Origin *
  8. Strict-Transport-Security "mag=age=31536000;"
  9. X-Frame-Options "DENY"
  10. X-XSS-Protection "1; mode=block"
  11. }
  12. # Identity server traffic
  13. proxy /_matrix/identity matrix-ma1sd:8090 {
  14. transparent
  15. }
  16. proxy /_matrix/client/r0/user_directory/search matrix-ma1sd:8090 {
  17. transparent
  18. }
  19. # Synapse Client<>Server API
  20. proxy /_matrix matrix-synapse:8008 {
  21. transparent
  22. except /_matrix/identity/ /_matrix/client/r0/user_directory/search
  23. }
  24. proxy /_synapse/client matrix-synapse:8008 {
  25. transparent
  26. }
  27. }