workers-shared-extra.yaml.j2 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {#
  2. This file extends the default 'shared' configuration file (from the 'synapse-workers'
  3. docker image) with Complement-specific tweak.
  4. The base configuration is moved out of the default path to `shared-orig.yaml.j2`
  5. in the Complement Dockerfile and below we include that original file.
  6. #}
  7. ## Server ##
  8. report_stats: False
  9. trusted_key_servers: []
  10. enable_registration: true
  11. enable_registration_without_verification: true
  12. bcrypt_rounds: 4
  13. url_preview_enabled: true
  14. url_preview_ip_range_blacklist: []
  15. ## Registration ##
  16. # Needed by Complement to register admin users
  17. # DO NOT USE in a production configuration! This should be a random secret.
  18. registration_shared_secret: complement
  19. ## Federation ##
  20. # trust certs signed by Complement's CA
  21. federation_custom_ca_list:
  22. - /complement/ca/ca.crt
  23. # unblacklist RFC1918 addresses
  24. federation_ip_range_blacklist: []
  25. # Disable server rate-limiting
  26. rc_federation:
  27. window_size: 1000
  28. sleep_limit: 10
  29. sleep_delay: 500
  30. reject_limit: 99999
  31. concurrent: 3
  32. rc_message:
  33. per_second: 9999
  34. burst_count: 9999
  35. rc_registration:
  36. per_second: 9999
  37. burst_count: 9999
  38. rc_login:
  39. address:
  40. per_second: 9999
  41. burst_count: 9999
  42. account:
  43. per_second: 9999
  44. burst_count: 9999
  45. failed_attempts:
  46. per_second: 9999
  47. burst_count: 9999
  48. rc_admin_redaction:
  49. per_second: 9999
  50. burst_count: 9999
  51. rc_joins:
  52. local:
  53. per_second: 9999
  54. burst_count: 9999
  55. remote:
  56. per_second: 9999
  57. burst_count: 9999
  58. rc_joins_per_room:
  59. per_second: 9999
  60. burst_count: 9999
  61. rc_3pid_validation:
  62. per_second: 1000
  63. burst_count: 1000
  64. rc_invites:
  65. per_room:
  66. per_second: 1000
  67. burst_count: 1000
  68. per_user:
  69. per_second: 1000
  70. burst_count: 1000
  71. federation_rr_transactions_per_room_per_second: 9999
  72. allow_device_name_lookup_over_federation: true
  73. ## Experimental Features ##
  74. experimental_features:
  75. # Enable history backfilling support
  76. msc2716_enabled: true
  77. # server-side support for partial state in /send_join responses
  78. msc3706_enabled: true
  79. {% if not workers_in_use %}
  80. # client-side support for partial state in /send_join responses
  81. faster_joins: true
  82. {% endif %}
  83. # Enable jump to date endpoint
  84. msc3030_enabled: true
  85. # Filtering /messages by relation type.
  86. msc3874_enabled: true
  87. server_notices:
  88. system_mxid_localpart: _server
  89. system_mxid_display_name: "Server Alert"
  90. system_mxid_avatar_url: ""
  91. room_name: "Server Alert"
  92. # Disable sync cache so that initial `/sync` requests are up-to-date.
  93. caches:
  94. sync_response_cache_duration: 0
  95. {% include "shared-orig.yaml.j2" %}