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.

71 lines
1.9 KiB

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