Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

122 rindas
3.5 KiB

  1. no_tls: True
  2. tls_fingerprints: []
  3. pid_file: "/var/run/matrix-synapse.pid"
  4. soft_file_limit: 0
  5. use_presence: true
  6. public_baseurl: {{ matrix.url }}
  7. listeners:
  8. - port: 8008
  9. bind_addresses:
  10. - '0.0.0.0'
  11. type: http
  12. tls: false
  13. x_forwarded: true
  14. resources:
  15. - names:
  16. - client
  17. compress: true
  18. - names: [federation]
  19. compress: false
  20. admin_contact: 'mailto:{{ matrix.admin_contact }}'
  21. restrict_public_rooms_to_local_users: False
  22. filter_timeline_limit: 5000
  23. block_non_admin_invites: False
  24. hs_disabled: False
  25. hs_disabled_message: 'Human readable reason for why the HS is blocked'
  26. hs_disabled_limit_type: 'error code(str), to help clients decode reason'
  27. limit_usage_by_mau: {{ matrix.limit_usage_by_mau }}
  28. max_mau_value: {{ matrix.max_mau_value }}
  29. mau_trial_days: {{ matrix.mau_trial_days }}
  30. enable_search: {{ matrix.enable_search }}
  31. database:
  32. name: psycopg2
  33. args:
  34. user: {{ matrix.db_user }}
  35. password: {{ matrix.db_password }}
  36. database: {{ matrix.db_name }}
  37. host: {{ matrix.db_host }}
  38. cp_min: {{ matrix.cp_min }}
  39. cp_max: {{ matrix.cp_max }}
  40. event_cache_size: {{ matrix.event_cache_size }}
  41. log_config: "/etc/matrix-synapse/log.yaml"
  42. rc_messages_per_second: {{ matrix.rc_messages_per_second }}
  43. rc_message_burst_count: {{ matrix.rc_message_burst_count }}
  44. federation_rc_window_size: {{ matrix.federation_rc_window_size }}
  45. federation_rc_sleep_limit: {{ matrix.federation_rc_sleep_limit }}
  46. federation_rc_sleep_delay: {{ matrix.federation_rc_sleep_delay }}
  47. federation_rc_reject_limit: {{ matrix.federation_rc_reject_limit }}
  48. federation_rc_concurrent: {{ matrix.federation_rc_concurrent }}
  49. media_store_path: "/var/lib/matrix-synapse/media"
  50. uploads_path: "/var/lib/matrix-synapse/uploads"
  51. max_upload_size: {{ matrix.max_upload_size }}
  52. max_image_pixels: {{ matrix.max_image_pixels }}
  53. macaroon_secret_key: <PRIVATE STRING>
  54. dynamic_thumbnails: false
  55. thumbnail_sizes:
  56. - width: 32
  57. height: 32
  58. method: crop
  59. - width: 96
  60. height: 96
  61. method: crop
  62. - width: 320
  63. height: 240
  64. method: scale
  65. - width: 640
  66. height: 480
  67. method: scale
  68. - width: 800
  69. height: 600
  70. method: scale
  71. url_preview_enabled: True
  72. url_preview_ip_range_blacklist:
  73. - '10.0.0.0/8'
  74. - '192.168.1.0/24'
  75. max_spider_size: {{ matrix.max_spider_size }}
  76. recaptcha_public_key: "YOUR_PUBLIC_KEY"
  77. recaptcha_private_key: "YOUR_PRIVATE_KEY"
  78. enable_registration_captcha: False
  79. turn_uris: ["turn:{{ matrix.turn_server_name }}:3478?transport=udp", "turn:{{ matrix.turn_server_name }}:3478?transport=tcp"]
  80. turn_shared_secret: {{ coturn.static_auth_secret }}
  81. turn_user_lifetime: "1h"
  82. turn_allow_guests: True
  83. enable_registration: {{ matrix.enable_registration }}
  84. bcrypt_rounds: 12
  85. allow_guest_access: {{ matrix.allow_guest_access }}
  86. trusted_third_party_id_servers:
  87. - matrix.org
  88. - vector.im
  89. autocreate_auto_join_rooms: true
  90. enable_metrics: False
  91. room_invite_state_types:
  92. - "m.room.join_rules"
  93. - "m.room.canonical_alias"
  94. - "m.room.avatar"
  95. - "m.room.name"
  96. #app_service_config_files: ["/etc/matrix-synapse/conf.d/matrixircbridge.yaml"]
  97. track_appservice_user_ips: False
  98. expire_access_token: False
  99. signing_key_path: "/etc/matrix-synapse/homeserver.signing.key"
  100. perspectives:
  101. servers:
  102. "matrix.org":
  103. verify_keys:
  104. "ed25519:auto":
  105. key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
  106. password_config:
  107. enabled: true
  108. #pepper: ""
  109. enable_group_creation: true
  110. alias_creation_rules:
  111. - user_id: "*"
  112. alias: "*"
  113. action: allow
  114. push:
  115. include_content: true
  116. user_directory:
  117. enabled: true
  118. search_all_users: true
  119. enable_room_list_search: true