Guest User

Untitled

a guest
Jun 15th, 2025
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  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://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html
  12. #
  13. # This is set in /etc/matrix-synapse/conf.d/server_name.yaml for Debian installations.
  14. #server_name: "nthpyro.dev"
  15. pid_file: "/var/run/matrix-synapse.pid"
  16.  
  17. listeners:
  18. - port: 8008
  19. tls: false
  20. type: http
  21. x_forwarded: true
  22. bind_addresses: ['::1', '127.0.0.1']
  23. resources:
  24. - names: [client, federation]
  25. compress: false
  26.  
  27.  
  28. database:
  29. name: psycopg2
  30. txn_limit: 10000
  31. args:
  32. user: synapse_user
  33. password: redacted
  34. database: synapse
  35. host: localhost
  36. port: 5432
  37. cp_min: 5
  38. cp_max: 10
  39. log_config: "/etc/matrix-synapse/log.yaml"
  40. media_store_path: /var/lib/matrix-synapse/media
  41. signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
  42. registration_shared_secret: "redacted"
  43. trusted_key_servers:
  44. - server_name: "matrix.org"
  45.  
  46. enable_federation: true
  47. admin_contact: 'mailto:[email protected]'
  48. max_upload_size: 30M
  49. media_retention:
  50. local_media_lifetime: 180d
  51. remote_media_lifetime: 7d
  52. max_avatar_size: 5M
  53.  
  54. enable_registration: false
  55. enable_registration_without_verification: true
  56.  
  57. room_list_publication_rules:
  58. - user_id: "@redacted:nthpyro.dev"
  59. action: "allow"
  60.  
  61. - "action": "deny"
  62.  
  63. admin_users:
  64. - "@redacted:nthpyro.dev"
  65.  
  66. auto_join_rooms:
  67. - "#!redacted:nthpyro.dev"
  68. - "#!redacted:nthpyro.dev"
  69.  
  70. retention:
  71. enabled: true
  72. default_policy:
  73. min_lifetime: 1d
  74. max_lifetime: 1y
  75. allowed_lifetime_min: 1d
  76. allowed_lifetime_max: 1y
  77. purge_jobs:
  78. - longest_max_lifetime: 3d
  79. interval: 12h
  80. - shortest_max_lifetime: 3d
  81. interval: 1d
Advertisement
Add Comment
Please, Sign In to add comment