1
0

sample_config.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is maintained as an up-to-date snapshot of the default
  2. # homeserver.yaml configuration generated by Synapse. You can find a
  3. # complete accounting of possible configuration options at
  4. # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
  5. #
  6. # It is *not* intended to be copied and used as the basis for a real
  7. # homeserver.yaml. Instead, if you are starting from scratch, please generate
  8. # a fresh config using Synapse by following the instructions in
  9. # https://matrix-org.github.io/synapse/latest/setup/installation.html.
  10. #
  11. ################################################################################
  12. # Configuration file for Synapse.
  13. #
  14. # This is a YAML file: see [1] for a quick introduction. Note in particular
  15. # that *indentation is important*: all the elements of a list or dictionary
  16. # should have the same indentation.
  17. #
  18. # [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
  19. #
  20. # For more information on how to configure Synapse, including a complete accounting of
  21. # each option, go to docs/usage/configuration/config_documentation.md or
  22. # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html
  23. server_name: "SERVERNAME"
  24. pid_file: DATADIR/homeserver.pid
  25. listeners:
  26. - port: 8008
  27. tls: false
  28. type: http
  29. x_forwarded: true
  30. bind_addresses: ['::1', '127.0.0.1']
  31. resources:
  32. - names: [client, federation]
  33. compress: false
  34. database:
  35. name: sqlite3
  36. args:
  37. database: DATADIR/homeserver.db
  38. log_config: "CONFDIR/SERVERNAME.log.config"
  39. media_store_path: DATADIR/media_store
  40. signing_key_path: "CONFDIR/SERVERNAME.signing.key"
  41. trusted_key_servers:
  42. - server_name: "matrix.org"