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.

62 lines
1.6 KiB

  1. description: Synapse
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. docker-image: docker.0k.io/synapse:1.0
  4. config-resources:
  5. - /etc/synapse
  6. data-resources:
  7. - /var/lib/synapse
  8. host-resources:
  9. - /etc/localtime:ro
  10. default-options:
  11. ## ensure that this virtualhost is joinable on https, and with a
  12. ## valid cert.
  13. # server_name: XXX
  14. # report_stats: no
  15. # enable_registration: no
  16. # registration_shared_secret: My secret
  17. # allow_guest_access: no
  18. # enable_registration_captcha: yes
  19. # recaptcha_public_key: XXX
  20. # recaptcha_private_key: YYY
  21. # docker-compose:
  22. # ports:
  23. uses:
  24. postgres-database:
  25. constraint: required
  26. auto: summon
  27. solves:
  28. database: "main storage"
  29. # log-rotate:
  30. # constraint: recommended
  31. # auto: pair
  32. # solves:
  33. # disk-leak: "/data/logs"
  34. web-proxy:
  35. constraint: recommended
  36. auto: pair
  37. solves:
  38. proxy: "Public access"
  39. default-options:
  40. ## ``nocanon`` is mandatory
  41. ## see: https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.rst
  42. apache-proxy-pass-options: retry=0 nocanon
  43. apache-core-rules: !var-expand |
  44. SSLProxyEngine on
  45. <Location "/.well-known/matrix" >
  46. ## ../server implementation added with a patch in docker image
  47. ProxyPass "http://${MASTER_BASE_SERVICE_NAME}:8008/.well-known/matrix" retry=0 nocanon
  48. Order deny,allow
  49. Allow from all
  50. </Location>
  51. #<Location "/_matrix" >
  52. # ProxyPass "http://${MASTER_BASE_SERVICE_NAME}:8008/_matrix" retry=0 nocanon
  53. # #Order deny,allow
  54. # #Allow from all
  55. #</Location>