homeserver.yaml.j2 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. enable_registration: false
  2. server_name: "matrix.unbl.ink"
  3. pid_file: /usr/local/etc/matrix-synapse/homeserver.pid
  4. web_client_location: https://matrix.unbl.ink
  5. public_baseurl: https://matrix.unbl.ink
  6. allow_public_rooms_without_auth: true
  7. allow_public_rooms_over_federation: true
  8. listeners:
  9. - port: 8008
  10. tls: false
  11. type: http
  12. x_forwarded: true
  13. bind_addresses: ["::0", "0.0.0.0"]
  14. resources:
  15. - names: [client, federation]
  16. compress: true
  17. admin_contact: "mailto:matrix@unbl.ink"
  18. tls_certificate_path: "/usr/local/etc/matrix-synapse/matrix.unbl.ink.tls.crt"
  19. tls_private_key_path: "/usr/local/etc/matrix-synapse/matrix.unbl.ink.tls.key"
  20. federation_verify_certificates: true
  21. federation_ip_range_blacklist:
  22. - "127.0.0.0/8"
  23. - "10.0.0.0/8"
  24. - "172.16.0.0/12"
  25. - "192.168.0.0/16"
  26. - "100.64.0.0/10"
  27. - "169.254.0.0/16"
  28. - "::1/128"
  29. - "fe80::/64"
  30. - "fc00::/7"
  31. database:
  32. name: psycopg2
  33. args:
  34. user: synapse
  35. password: {{synapse_db_pass}}
  36. database: synapse
  37. host: db.local
  38. cp_min: 5
  39. cp_max: 10
  40. log_config: "/usr/local/etc/matrix-synapse/matrix.unbl.ink.log.config"
  41. media_store_path: "/usr/local/etc/matrix-synapse/media_store"
  42. # Optional account validity configuration. This allows for accounts to be denied
  43. # any request after a given period.
  44. #
  45. # Once this feature is enabled, Synapse will look for registered users without an
  46. # expiration date at startup and will add one to every account it found using the
  47. # current settings at that time.
  48. # This means that, if a validity period is set, and Synapse is restarted (it will
  49. # then derive an expiration date from the current validity period), and some time
  50. # after that the validity period changes and Synapse is restarted, the users'
  51. # expiration dates won't be updated unless their account is manually renewed. This
  52. # date will be randomly selected within a range [now + period - d ; now + period],
  53. # where d is equal to 10% of the validity period.
  54. #
  55. account_validity:
  56. # The account validity feature is disabled by default. Uncomment the
  57. # following line to enable it.
  58. #
  59. #enabled: true
  60. # The period after which an account is valid after its registration. When
  61. # renewing the account, its validity period will be extended by this amount
  62. # of time. This parameter is required when using the account validity
  63. # feature.
  64. #
  65. #period: 6w
  66. # The amount of time before an account's expiry date at which Synapse will
  67. # send an email to the account's email address with a renewal link. By
  68. # default, no such emails are sent.
  69. #
  70. # If you enable this setting, you will also need to fill out the 'email' and
  71. # 'public_baseurl' configuration sections.
  72. #
  73. #renew_at: 1w
  74. # The subject of the email sent out with the renewal link. '%(app)s' can be
  75. # used as a placeholder for the 'app_name' parameter from the 'email'
  76. # section.
  77. #
  78. # Note that the placeholder must be written '%(app)s', including the
  79. # trailing 's'.
  80. #
  81. # If this is not set, a default value is used.
  82. #
  83. #renew_email_subject: "Renew your %(app)s account"
  84. # Directory in which Synapse will try to find templates for the HTML files to
  85. # serve to the user when trying to renew an account. If not set, default
  86. # templates from within the Synapse package will be used.
  87. #
  88. #template_dir: "res/templates"
  89. # File within 'template_dir' giving the HTML to be displayed to the user after
  90. # they successfully renewed their account. If not set, default text is used.
  91. #
  92. #account_renewed_html_path: "account_renewed.html"
  93. # File within 'template_dir' giving the HTML to be displayed when the user
  94. # tries to renew an account with an invalid renewal token. If not set,
  95. # default text is used.
  96. #
  97. #invalid_token_html_path: "invalid_token.html"
  98. # Time that a user's session remains valid for, after they log in.
  99. #
  100. # Note that this is not currently compatible with guest logins.
  101. #
  102. # Note also that this is calculated at login time: changes are not applied
  103. # retrospectively to users who have already logged in.
  104. #
  105. # By default, this is infinite.
  106. #
  107. #session_lifetime: 24h
  108. # The user must provide all of the below types of 3PID when registering.
  109. #
  110. #registrations_require_3pid:
  111. # - email
  112. # - msisdn
  113. # Explicitly disable asking for MSISDNs from the registration
  114. # flow (overrides registrations_require_3pid if MSISDNs are set as required)
  115. #
  116. #disable_msisdn_registration: true
  117. # Mandate that users are only allowed to associate certain formats of
  118. # 3PIDs with accounts on this server.
  119. #
  120. #allowed_local_3pids:
  121. # - medium: email
  122. # pattern: '.*@matrix\.org'
  123. # - medium: email
  124. # pattern: '.*@vector\.im'
  125. # - medium: msisdn
  126. # pattern: '\+44'
  127. # Enable 3PIDs lookup requests to identity servers from this server.
  128. #
  129. #enable_3pid_lookup: true
  130. # If set, allows registration of standard or admin accounts by anyone who
  131. # has the shared secret, even if registration is otherwise disabled.
  132. #
  133. registration_shared_secret: "{{synapse_reg_shared_secret}}"
  134. metrics_flags:
  135. known_servers: true
  136. report_stats: true
  137. macaroon_secret_key: "jWX:,spiN2jEU7LGFjw-fl,PISj@YwIi&*d_QsqV~_Z4PkOpC6"
  138. form_secret: "gZ:PaH&tj~2*HYa_5_-aI3uPEyEUQJ#2ZPSkzK7TCmi1ANBgPX"
  139. signing_key_path: "/usr/local/etc/matrix-synapse/matrix.unbl.ink.signing.key"
  140. trusted_key_servers:
  141. - server_name: "matrix.org"
  142. suppress_key_server_warning: true
  143. email:
  144. smtp_host: "box.unbl.ink"
  145. smtp_port: 587
  146. smtp_user: "services@unbl.ink"
  147. smtp_pass: "{{services_unblink_email_pass}}"
  148. require_transport_security: true
  149. notif_from: "Your Friendly %(app)s homeserver <serivces@unbl.ink>"
  150. enable_notifs: true
  151. client_base_url: "http://chat.unbl.ink/"
  152. redis:
  153. enabled: true
  154. host: localhost
  155. port: 6379
  156. # vim:ft=yaml