Snippet content copied to clipboard.
Are you sure to delete this snippet? No, don't delete
  1. # Configuration file for Synapse.
  2. #
  3. # This is a YAML file: see [1] for a quick introduction. Note in particular
  4. # that *indentation is important*: all the elements of a list or dictionary
  5. # should have the same indentation.
  6. #
  7. # [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
  8. #
  9. # For more information on how to configure Synapse, including a complete accounting of
  10. # each option, go to docs/usage/configuration/config_documentation.md or
  11. # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
  12. server_name: "FRONT_END_URL"
  13. public_baseurl: https://BACK_END_URL
  14. pid_file: /data/homeserver.pid
  15. serve_server_wellknown: true
  16. listeners:
  17. - port: 8008
  18. tls: false
  19. type: http
  20. x_forwarded: true
  21. resources:
  22. - names: [client, federation]
  23. compress: false
  24. database:
  25. name: psycopg2
  26. txn_limit: 10000
  27. args:
  28. user: synapse
  29. password: DATABASE_PASSWORD_PLEASE_CHANGE
  30. database: synapse
  31. host: db
  32. port: 5432
  33. cp_min: 5
  34. cp_max: 10
  35. redis:
  36. enabled: true
  37. host: redis
  38. port: 6379
  39. log_config: LOG_CONFIG_DONT_CHANGE
  40. media_store_path: /data/media_store
  41. registration_shared_secret: REGISTRATION_SHARED_SECRET_DONT_CHANGE
  42. report_stats: true
  43. macaroon_secret_key: MACAROON_SECRET_KEY_DONT_CHANGE
  44. form_secret: FORM_SECRET_DONT_CHANGE
  45. signing_key_path: SIGNING_KEY_PATH_DONT_CHANGE
  46. trusted_key_servers:
  47. - server_name: "matrix.org"
  48. enable_registration: true
  49. recaptcha_public_key: "RECAPTCHA_V2_PUBLIC_KEY"
  50. recaptcha_private_key: "RECAPTCHA_V2_PRIVATE_KEY"
  51. enable_registration_captcha: true
  52. # vim:ft=yaml

Edit this Snippet