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.

67 lines
1.7 KiB

  1. description: Synapse
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. docker-image: matrixdotorg/synapse:latest
  4. config-resources:
  5. - /etc/synapse
  6. data-resources:
  7. - /data
  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. default-options:
  30. encoding: UTF-8
  31. lc-collate: C
  32. lc-ctype: C
  33. template: template0
  34. # log-rotate:
  35. # constraint: recommended
  36. # auto: pair
  37. # solves:
  38. # disk-leak: "/data/logs"
  39. web-proxy:
  40. constraint: recommended
  41. auto: pair
  42. solves:
  43. proxy: "Public access"
  44. default-options:
  45. ## ``nocanon`` is mandatory
  46. ## see: https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.rst
  47. apache-proxy-pass-options: retry=0 nocanon
  48. apache-core-rules: !var-expand |
  49. SSLProxyEngine on
  50. <Location "/.well-known/matrix" >
  51. ## ../server implementation added with a patch in docker image
  52. ProxyPass "http://${MASTER_BASE_SERVICE_NAME}:8008/.well-known/matrix" retry=0 nocanon
  53. Order deny,allow
  54. Allow from all
  55. </Location>
  56. #<Location "/_matrix" >
  57. # ProxyPass "http://${MASTER_BASE_SERVICE_NAME}:8008/_matrix" retry=0 nocanon
  58. # #Order deny,allow
  59. # #Allow from all
  60. #</Location>