Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

803 lines
27 KiB

  1. # vim:ft=yaml
  2. # PEM encoded X509 certificate for TLS.
  3. # You can replace the self-signed certificate that synapse
  4. # autogenerates on launch with your own SSL certificate + key pair
  5. # if you like. Any required intermediary certificates can be
  6. # appended after the primary certificate in hierarchical order.
  7. tls_certificate_path: "/data/{{ hostname_matrix }}.tls.crt"
  8. # PEM encoded private key for TLS
  9. tls_private_key_path: "/data/{{ hostname_matrix }}.tls.key"
  10. # PEM dh parameters for ephemeral keys
  11. tls_dh_params_path: "/data/{{ hostname_matrix }}.tls.dh"
  12. # Don't bind to the https port
  13. no_tls: False
  14. # List of allowed TLS fingerprints for this server to publish along
  15. # with the signing keys for this server. Other matrix servers that
  16. # make HTTPS requests to this server will check that the TLS
  17. # certificates returned by this server match one of the fingerprints.
  18. #
  19. # Synapse automatically adds the fingerprint of its own certificate
  20. # to the list. So if federation traffic is handled directly by synapse
  21. # then no modification to the list is required.
  22. #
  23. # If synapse is run behind a load balancer that handles the TLS then it
  24. # will be necessary to add the fingerprints of the certificates used by
  25. # the loadbalancers to this list if they are different to the one
  26. # synapse is using.
  27. #
  28. # Homeservers are permitted to cache the list of TLS fingerprints
  29. # returned in the key responses up to the "valid_until_ts" returned in
  30. # key. It may be necessary to publish the fingerprints of a new
  31. # certificate and wait until the "valid_until_ts" of the previous key
  32. # responses have passed before deploying it.
  33. #
  34. # You can calculate a fingerprint from a given TLS listener via:
  35. # openssl s_client -connect $host:$port < /dev/null 2> /dev/null |
  36. # openssl x509 -outform DER | openssl sha256 -binary | base64 | tr -d '='
  37. # or by checking matrix.org/federationtester/api/report?server_name=$host
  38. #
  39. tls_fingerprints: []
  40. # tls_fingerprints: [{"sha256": "<base64_encoded_sha256_fingerprint>"}]
  41. ## Server ##
  42. # The domain name of the server, with optional explicit port.
  43. # This is used by remote servers to connect to this server,
  44. # e.g. matrix.org, localhost:8080, etc.
  45. # This is also the last part of your UserID.
  46. server_name: "{{ hostname_identity }}"
  47. # When running as a daemon, the file to store the pid in
  48. pid_file: /homeserver.pid
  49. # CPU affinity mask. Setting this restricts the CPUs on which the
  50. # process will be scheduled. It is represented as a bitmask, with the
  51. # lowest order bit corresponding to the first logical CPU and the
  52. # highest order bit corresponding to the last logical CPU. Not all CPUs
  53. # may exist on a given system but a mask may specify more CPUs than are
  54. # present.
  55. #
  56. # For example:
  57. # 0x00000001 is processor #0,
  58. # 0x00000003 is processors #0 and #1,
  59. # 0xFFFFFFFF is all processors (#0 through #31).
  60. #
  61. # Pinning a Python process to a single CPU is desirable, because Python
  62. # is inherently single-threaded due to the GIL, and can suffer a
  63. # 30-40% slowdown due to cache blow-out and thread context switching
  64. # if the scheduler happens to schedule the underlying threads across
  65. # different cores. See
  66. # https://www.mirantis.com/blog/improve-performance-python-programs-restricting-single-cpu/.
  67. #
  68. # This setting requires the affinity package to be installed!
  69. #
  70. # cpu_affinity: 0xFFFFFFFF
  71. # Whether to serve a web client from the HTTP/HTTPS root resource.
  72. web_client: False
  73. # The root directory to server for the above web client.
  74. # If left undefined, synapse will serve the matrix-angular-sdk web client.
  75. # Make sure matrix-angular-sdk is installed with pip if web_client is True
  76. # and web_client_location is undefined
  77. # web_client_location: "/path/to/web/root"
  78. # The public-facing base URL for the client API (not including _matrix/...)
  79. public_baseurl: https://{{ hostname_matrix }}/
  80. # Set the soft limit on the number of file descriptors synapse can use
  81. # Zero is used to indicate synapse should set the soft limit to the
  82. # hard limit.
  83. soft_file_limit: 0
  84. # Set to false to disable presence tracking on this homeserver.
  85. use_presence: {{ matrix_synapse_use_presence|to_json }}
  86. # The GC threshold parameters to pass to `gc.set_threshold`, if defined
  87. # gc_thresholds: [700, 10, 10]
  88. # Set the limit on the returned events in the timeline in the get
  89. # and sync operations. The default value is -1, means no upper limit.
  90. # filter_timeline_limit: 5000
  91. # Whether room invites to users on this server should be blocked
  92. # (except those sent by local server admins). The default is False.
  93. # block_non_admin_invites: True
  94. # Restrict federation to the following whitelist of domains.
  95. # N.B. we recommend also firewalling your federation listener to limit
  96. # inbound federation traffic as early as possible, rather than relying
  97. # purely on this application-layer restriction. If not specified, the
  98. # default is to whitelist everything.
  99. #
  100. # federation_domain_whitelist:
  101. # - lon.example.com
  102. # - nyc.example.com
  103. # - syd.example.com
  104. {% if matrix_synapse_federation_domain_whitelist is not none %}
  105. {# Cannot use `|to_nice_yaml` here, as an empty list does not get serialized properly by it. #}
  106. federation_domain_whitelist: {{ matrix_synapse_federation_domain_whitelist|to_json }}
  107. {% endif %}
  108. # List of ports that Synapse should listen on, their purpose and their
  109. # configuration.
  110. listeners:
  111. {% if matrix_synapse_metrics_enabled %}
  112. - type: metrics
  113. port: {{ matrix_synapse_metrics_port }}
  114. bind_addresses:
  115. - '0.0.0.0'
  116. {% endif %}
  117. {% if matrix_synapse_federation_enabled %}
  118. # Main HTTPS listener
  119. # For when matrix traffic is sent directly to synapse.
  120. -
  121. # The port to listen for HTTPS requests on.
  122. port: 8448
  123. # Local addresses to listen on.
  124. # On Linux and Mac OS, `::` will listen on all IPv4 and IPv6
  125. # addresses by default. For most other OSes, this will only listen
  126. # on IPv6.
  127. bind_addresses: ['::']
  128. # This is a 'http' listener, allows us to specify 'resources'.
  129. type: http
  130. tls: true
  131. # Use the X-Forwarded-For (XFF) header as the client IP and not the
  132. # actual client IP.
  133. x_forwarded: false
  134. # List of HTTP resources to serve on this listener.
  135. resources:
  136. - names: [federation] # Federation APIs
  137. compress: false
  138. # optional list of additional endpoints which can be loaded via
  139. # dynamic modules
  140. # additional_resources:
  141. # "/_matrix/my/custom/endpoint":
  142. # module: my_module.CustomRequestHandler
  143. # config: {}
  144. {% endif %}
  145. # Unsecure HTTP listener,
  146. # For when matrix traffic passes through loadbalancer that unwraps TLS.
  147. - port: 8008
  148. tls: false
  149. bind_addresses: ['::']
  150. type: http
  151. x_forwarded: true
  152. resources:
  153. - names: [client]
  154. compress: false
  155. # Turn on the twisted ssh manhole service on localhost on the given
  156. # port.
  157. # - port: 9000
  158. # bind_addresses: ['::1', '127.0.0.1']
  159. # type: manhole
  160. # Homeserver blocking
  161. #
  162. # How to reach the server admin, used in ResourceLimitError
  163. # admin_contact: 'mailto:admin@server.com'
  164. #
  165. # Global block config
  166. #
  167. # hs_disabled: False
  168. # hs_disabled_message: 'Human readable reason for why the HS is blocked'
  169. # hs_disabled_limit_type: 'error code(str), to help clients decode reason'
  170. #
  171. # Monthly Active User Blocking
  172. #
  173. # Enables monthly active user checking
  174. # limit_usage_by_mau: False
  175. # max_mau_value: 50
  176. # mau_trial_days: 2
  177. #
  178. # Sometimes the server admin will want to ensure certain accounts are
  179. # never blocked by mau checking. These accounts are specified here.
  180. #
  181. # mau_limit_reserved_threepids:
  182. # - medium: 'email'
  183. # address: 'reserved_user@example.com'
  184. # Database configuration
  185. database:
  186. # The database engine name
  187. name: "psycopg2"
  188. args:
  189. user: {{ matrix_synapse_database_user|to_json }}
  190. password: {{ matrix_synapse_database_password|to_json }}
  191. database: "{{ matrix_synapse_database_database }}"
  192. host: "{{ matrix_synapse_database_host }}"
  193. cp_min: 5
  194. cp_max: 10
  195. # Number of events to cache in memory.
  196. event_cache_size: "{{ matrix_synapse_event_cache_size }}"
  197. # A yaml python logging config file
  198. log_config: "/data/{{ hostname_matrix }}.log.config"
  199. ## Ratelimiting ##
  200. # Number of messages a client can send per second
  201. rc_messages_per_second: {{ matrix_synapse_rc_messages_per_second }}
  202. # Number of message a client can send before being throttled
  203. rc_message_burst_count: {{ matrix_synapse_rc_message_burst_count }}
  204. # The federation window size in milliseconds
  205. federation_rc_window_size: 1000
  206. # The number of federation requests from a single server in a window
  207. # before the server will delay processing the request.
  208. federation_rc_sleep_limit: 10
  209. # The duration in milliseconds to delay processing events from
  210. # remote servers by if they go over the sleep limit.
  211. federation_rc_sleep_delay: 500
  212. # The maximum number of concurrent federation requests allowed
  213. # from a single server
  214. federation_rc_reject_limit: 50
  215. # The number of federation requests to concurrently process from a
  216. # single server
  217. federation_rc_concurrent: 3
  218. # Directory where uploaded images and attachments are stored.
  219. media_store_path: "/matrix-media-store-parent/{{ matrix_synapse_media_store_directory_name }}"
  220. # Media storage providers allow media to be stored in different
  221. # locations.
  222. # media_storage_providers:
  223. # - module: file_system
  224. # # Whether to write new local files.
  225. # store_local: false
  226. # # Whether to write new remote media
  227. # store_remote: false
  228. # # Whether to block upload requests waiting for write to this
  229. # # provider to complete
  230. # store_synchronous: false
  231. # config:
  232. # directory: /mnt/some/other/directory
  233. # Directory where in-progress uploads are stored.
  234. uploads_path: "/matrix-run/uploads"
  235. # The largest allowed upload size in bytes
  236. max_upload_size: "{{ matrix_synapse_max_upload_size_mb }}M"
  237. # Maximum number of pixels that will be thumbnailed
  238. max_image_pixels: "32M"
  239. # Whether to generate new thumbnails on the fly to precisely match
  240. # the resolution requested by the client. If true then whenever
  241. # a new resolution is requested by the client the server will
  242. # generate a new thumbnail. If false the server will pick a thumbnail
  243. # from a precalculated list.
  244. dynamic_thumbnails: false
  245. # List of thumbnail to precalculate when an image is uploaded.
  246. thumbnail_sizes:
  247. - width: 32
  248. height: 32
  249. method: crop
  250. - width: 96
  251. height: 96
  252. method: crop
  253. - width: 320
  254. height: 240
  255. method: scale
  256. - width: 640
  257. height: 480
  258. method: scale
  259. - width: 800
  260. height: 600
  261. method: scale
  262. # Is the preview URL API enabled? If enabled, you *must* specify
  263. # an explicit url_preview_ip_range_blacklist of IPs that the spider is
  264. # denied from accessing.
  265. url_preview_enabled: True
  266. # List of IP address CIDR ranges that the URL preview spider is denied
  267. # from accessing. There are no defaults: you must explicitly
  268. # specify a list for URL previewing to work. You should specify any
  269. # internal services in your network that you do not want synapse to try
  270. # to connect to, otherwise anyone in any Matrix room could cause your
  271. # synapse to issue arbitrary GET requests to your internal services,
  272. # causing serious security issues.
  273. #
  274. url_preview_ip_range_blacklist:
  275. - '127.0.0.0/8'
  276. - '10.0.0.0/8'
  277. - '172.16.0.0/12'
  278. - '192.168.0.0/16'
  279. - '100.64.0.0/10'
  280. - '169.254.0.0/16'
  281. - '::1/128'
  282. - 'fe80::/64'
  283. - 'fc00::/7'
  284. #
  285. # List of IP address CIDR ranges that the URL preview spider is allowed
  286. # to access even if they are specified in url_preview_ip_range_blacklist.
  287. # This is useful for specifying exceptions to wide-ranging blacklisted
  288. # target IP ranges - e.g. for enabling URL previews for a specific private
  289. # website only visible in your network.
  290. #
  291. # url_preview_ip_range_whitelist:
  292. # - '192.168.1.1'
  293. # Optional list of URL matches that the URL preview spider is
  294. # denied from accessing. You should use url_preview_ip_range_blacklist
  295. # in preference to this, otherwise someone could define a public DNS
  296. # entry that points to a private IP address and circumvent the blacklist.
  297. # This is more useful if you know there is an entire shape of URL that
  298. # you know that will never want synapse to try to spider.
  299. #
  300. # Each list entry is a dictionary of url component attributes as returned
  301. # by urlparse.urlsplit as applied to the absolute form of the URL. See
  302. # https://docs.python.org/2/library/urlparse.html#urlparse.urlsplit
  303. # The values of the dictionary are treated as an filename match pattern
  304. # applied to that component of URLs, unless they start with a ^ in which
  305. # case they are treated as a regular expression match. If all the
  306. # specified component matches for a given list item succeed, the URL is
  307. # blacklisted.
  308. #
  309. # url_preview_url_blacklist:
  310. # # blacklist any URL with a username in its URI
  311. # - username: '*'
  312. #
  313. # # blacklist all *.google.com URLs
  314. # - netloc: 'google.com'
  315. # - netloc: '*.google.com'
  316. #
  317. # # blacklist all plain HTTP URLs
  318. # - scheme: 'http'
  319. #
  320. # # blacklist http(s)://www.acme.com/foo
  321. # - netloc: 'www.acme.com'
  322. # path: '/foo'
  323. #
  324. # # blacklist any URL with a literal IPv4 address
  325. # - netloc: '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
  326. # The largest allowed URL preview spidering size in bytes
  327. max_spider_size: "10M"
  328. ## Captcha ##
  329. # See docs/CAPTCHA_SETUP for full details of configuring this.
  330. # This Home Server's ReCAPTCHA public key.
  331. recaptcha_public_key: "YOUR_PUBLIC_KEY"
  332. # This Home Server's ReCAPTCHA private key.
  333. recaptcha_private_key: "YOUR_PRIVATE_KEY"
  334. # Enables ReCaptcha checks when registering, preventing signup
  335. # unless a captcha is answered. Requires a valid ReCaptcha
  336. # public/private key.
  337. enable_registration_captcha: False
  338. # A secret key used to bypass the captcha test entirely.
  339. #captcha_bypass_secret: "YOUR_SECRET_HERE"
  340. # The API endpoint to use for verifying m.login.recaptcha responses.
  341. recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify"
  342. ## Turn ##
  343. # The public URIs of the TURN server to give to clients
  344. turn_uris: {{ matrix_synapse_turn_uris|to_json }}
  345. # The shared secret used to compute passwords for the TURN server
  346. turn_shared_secret: {{ matrix_synapse_turn_shared_secret|to_json }}
  347. # The Username and password if the TURN server needs them and
  348. # does not use a token
  349. #turn_username: "TURNSERVER_USERNAME"
  350. #turn_password: "TURNSERVER_PASSWORD"
  351. # How long generated TURN credentials last
  352. turn_user_lifetime: "1h"
  353. # Whether guests should be allowed to use the TURN server.
  354. # This defaults to True, otherwise VoIP will be unreliable for guests.
  355. # However, it does introduce a slight security risk as it allows users to
  356. # connect to arbitrary endpoints without having first signed up for a
  357. # valid account (e.g. by passing a CAPTCHA).
  358. turn_allow_guests: False
  359. ## Registration ##
  360. # Enable registration for new users.
  361. enable_registration: {{ matrix_synapse_enable_registration|to_json }}
  362. # The user must provide all of the below types of 3PID when registering.
  363. #
  364. # registrations_require_3pid:
  365. # - email
  366. # - msisdn
  367. # Mandate that users are only allowed to associate certain formats of
  368. # 3PIDs with accounts on this server.
  369. #
  370. # allowed_local_3pids:
  371. # - medium: email
  372. # pattern: ".*@matrix\.org"
  373. # - medium: email
  374. # pattern: ".*@vector\.im"
  375. # - medium: msisdn
  376. # pattern: "\+44"
  377. # If set, allows registration by anyone who also has the shared
  378. # secret, even if registration is otherwise disabled.
  379. registration_shared_secret: {{ matrix_synapse_registration_shared_secret|to_json }}
  380. # Set the number of bcrypt rounds used to generate password hash.
  381. # Larger numbers increase the work factor needed to generate the hash.
  382. # The default number is 12 (which equates to 2^12 rounds).
  383. # N.B. that increasing this will exponentially increase the time required
  384. # to register or login - e.g. 24 => 2^24 rounds which will take >20 mins.
  385. bcrypt_rounds: 12
  386. # Allows users to register as guests without a password/email/etc, and
  387. # participate in rooms hosted on this server which have been made
  388. # accessible to anonymous users.
  389. allow_guest_access: False
  390. # The list of identity servers trusted to verify third party
  391. # identifiers by this server.
  392. {% if matrix_synapse_trusted_third_party_id_servers|length > 0 %}
  393. trusted_third_party_id_servers:
  394. {{ matrix_synapse_trusted_third_party_id_servers|to_nice_yaml }}
  395. {% endif %}
  396. # Users who register on this homeserver will automatically be joined
  397. # to these rooms
  398. #auto_join_rooms:
  399. # - "#example:example.com"
  400. {% if matrix_synapse_auto_join_rooms|length > 0 %}
  401. auto_join_rooms:
  402. {{ matrix_synapse_auto_join_rooms|to_nice_yaml }}
  403. {% endif %}
  404. # Where auto_join_rooms are specified, setting this flag ensures that the
  405. # the rooms exist by creating them when the first user on the
  406. # homeserver registers.
  407. # Setting to false means that if the rooms are not manually created,
  408. # users cannot be auto-joined since they do not exist.
  409. autocreate_auto_join_rooms: {{ matrix_synapse_autocreate_auto_join_rooms }}
  410. ## Metrics ###
  411. # Enable collection and rendering of performance metrics
  412. enable_metrics: {{ matrix_synapse_metrics_enabled }}
  413. report_stats: {{ matrix_synapse_report_stats|to_json }}
  414. ## API Configuration ##
  415. # A list of event types that will be included in the room_invite_state
  416. room_invite_state_types:
  417. - "m.room.join_rules"
  418. - "m.room.canonical_alias"
  419. - "m.room.avatar"
  420. - "m.room.name"
  421. # A list of application service config file to use
  422. app_service_config_files: {{ matrix_synapse_app_service_config_files }}
  423. macaroon_secret_key: {{ matrix_synapse_macaroon_secret_key|to_json }}
  424. # Used to enable access token expiration.
  425. expire_access_token: False
  426. # a secret which is used to calculate HMACs for form values, to stop
  427. # falsification of values
  428. form_secret: {{ matrix_synapse_form_secret|to_json }}
  429. ## Signing Keys ##
  430. # Path to the signing key to sign messages with
  431. signing_key_path: "/data/{{ hostname_matrix }}.signing.key"
  432. # The keys that the server used to sign messages with but won't use
  433. # to sign new messages. E.g. it has lost its private key
  434. old_signing_keys: {}
  435. # "ed25519:auto":
  436. # # Base64 encoded public key
  437. # key: "The public part of your old signing key."
  438. # # Millisecond POSIX timestamp when the key expired.
  439. # expired_ts: 123456789123
  440. # How long key response published by this server is valid for.
  441. # Used to set the valid_until_ts in /key/v2 APIs.
  442. # Determines how quickly servers will query to check which keys
  443. # are still valid.
  444. key_refresh_interval: "1d" # 1 Day.
  445. # The trusted servers to download signing keys from.
  446. perspectives:
  447. servers:
  448. "matrix.org":
  449. verify_keys:
  450. "ed25519:auto":
  451. key: "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw"
  452. # Enable SAML2 for registration and login. Uses pysaml2
  453. # config_path: Path to the sp_conf.py configuration file
  454. # idp_redirect_url: Identity provider URL which will redirect
  455. # the user back to /login/saml2 with proper info.
  456. # See pysaml2 docs for format of config.
  457. #saml2_config:
  458. # enabled: true
  459. # config_path: "/data/sp_conf.py"
  460. # idp_redirect_url: "http://{{ hostname_matrix }}/idp"
  461. # Enable CAS for registration and login.
  462. #cas_config:
  463. # enabled: true
  464. # server_url: "https://cas-server.com"
  465. # service_url: "https://homeserver.domain.com:8448"
  466. # #required_attributes:
  467. # # name: value
  468. # The JWT needs to contain a globally unique "sub" (subject) claim.
  469. #
  470. # jwt_config:
  471. # enabled: true
  472. # secret: "a secret"
  473. # algorithm: "HS256"
  474. # Enable password for login.
  475. password_config:
  476. enabled: true
  477. # Uncomment and change to a secret random string for extra security.
  478. # DO NOT CHANGE THIS AFTER INITIAL SETUP!
  479. pepper: {{ matrix_synapse_password_config_pepper|to_json }}
  480. # Enable sending emails for notification events
  481. # Defining a custom URL for Riot is only needed if email notifications
  482. # should contain links to a self-hosted installation of Riot; when set
  483. # the "app_name" setting is ignored.
  484. #
  485. # If your SMTP server requires authentication, the optional smtp_user &
  486. # smtp_pass variables should be used
  487. #
  488. {% if matrix_synapse_email_enabled %}
  489. email:
  490. enable_notifs: true
  491. smtp_host: {{ matrix_synapse_email_smtp_host|to_json }}
  492. smtp_port: {{ matrix_synapse_email_smtp_port|to_json }}
  493. require_transport_security: {{ matrix_synapse_email_smtp_require_transport_security|to_json }}
  494. notif_from: {{ matrix_synapse_email_notif_from|to_json }}
  495. app_name: Matrix
  496. notif_template_html: notif_mail.html
  497. notif_template_text: notif_mail.txt
  498. notif_for_new_users: True
  499. riot_base_url: {{ matrix_synapse_email_riot_base_url|to_json }}
  500. {% endif %}
  501. # password_providers:
  502. # - module: "ldap_auth_provider.LdapAuthProvider"
  503. # config:
  504. # enabled: true
  505. # uri: "ldap://ldap.example.com:389"
  506. # start_tls: true
  507. # base: "ou=users,dc=example,dc=com"
  508. # attributes:
  509. # uid: "cn"
  510. # mail: "email"
  511. # name: "givenName"
  512. # #bind_dn:
  513. # #bind_password:
  514. # #filter: "(objectClass=posixAccount)"
  515. {% if matrix_synapse_password_providers_enabled %}
  516. password_providers:
  517. {% if matrix_synapse_ext_password_provider_shared_secret_auth_enabled %}
  518. - module: "shared_secret_authenticator.SharedSecretAuthenticator"
  519. config:
  520. sharedSecret: {{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret|to_json }}
  521. {% endif %}
  522. {% if matrix_synapse_ext_password_provider_rest_auth_enabled %}
  523. - module: "rest_auth_provider.RestAuthProvider"
  524. config:
  525. endpoint: {{ matrix_synapse_ext_password_provider_rest_auth_endpoint|to_json }}
  526. policy:
  527. registration:
  528. username:
  529. enforceLowercase: {{ matrix_synapse_ext_password_provider_rest_auth_registration_enforce_lowercase }}
  530. profile:
  531. name: {{ matrix_synapse_ext_password_provider_rest_auth_registration_profile_name_autofill }}
  532. login:
  533. profile:
  534. name: {{ matrix_synapse_ext_password_provider_rest_auth_login_profile_name_autofill }}
  535. {% endif %}
  536. {% if matrix_synapse_ext_password_provider_ldap_enabled %}
  537. - module: "ldap_auth_provider.LdapAuthProvider"
  538. config:
  539. enabled: true
  540. uri: {{ matrix_synapse_ext_password_provider_ldap_uri|to_json }}
  541. start_tls: {{ matrix_synapse_ext_password_provider_ldap_start_tls|to_json }}
  542. base: {{ matrix_synapse_ext_password_provider_ldap_base|to_json }}
  543. attributes:
  544. uid: {{ matrix_synapse_ext_password_provider_ldap_attributes_uid|to_json }}
  545. mail: {{ matrix_synapse_ext_password_provider_ldap_attributes_mail|to_json }}
  546. name: {{ matrix_synapse_ext_password_provider_ldap_attributes_name|to_json }}
  547. bind_dn: {{ matrix_synapse_ext_password_provider_ldap_bind_dn|to_json }}
  548. bind_password: {{ matrix_synapse_ext_password_provider_ldap_bind_password|to_json }}
  549. filter: {{ matrix_synapse_ext_password_provider_ldap_filter|to_json }}
  550. {% endif %}
  551. {% endif %}
  552. # Clients requesting push notifications can either have the body of
  553. # the message sent in the notification poke along with other details
  554. # like the sender, or just the event ID and room ID (`event_id_only`).
  555. # If clients choose the former, this option controls whether the
  556. # notification request includes the content of the event (other details
  557. # like the sender are still included). For `event_id_only` push, it
  558. # has no effect.
  559. # For modern android devices the notification content will still appear
  560. # because it is loaded by the app. iPhone, however will send a
  561. # notification saying only that a message arrived and who it came from.
  562. #
  563. #push:
  564. # include_content: true
  565. # spam_checker:
  566. # module: "my_custom_project.SuperSpamChecker"
  567. # config:
  568. # example_option: 'things'
  569. # Whether to allow non server admins to create groups on this server
  570. enable_group_creation: false
  571. # If enabled, non server admins can only create groups with local parts
  572. # starting with this prefix
  573. # group_creation_prefix: "unofficial/"
  574. # User Directory configuration
  575. #
  576. # 'search_all_users' defines whether to search all users visible to your HS
  577. # when searching the user directory, rather than limiting to users visible
  578. # in public rooms. Defaults to false. If you set it True, you'll have to run
  579. # UPDATE user_directory_stream_pos SET stream_id = NULL;
  580. # on your database to tell it to rebuild the user_directory search indexes.
  581. #
  582. #user_directory:
  583. # search_all_users: false
  584. # User Consent configuration
  585. #
  586. # for detailed instructions, see
  587. # https://github.com/matrix-org/synapse/blob/master/docs/consent_tracking.md
  588. #
  589. # Parts of this section are required if enabling the 'consent' resource under
  590. # 'listeners', in particular 'template_dir' and 'version'.
  591. #
  592. # 'template_dir' gives the location of the templates for the HTML forms.
  593. # This directory should contain one subdirectory per language (eg, 'en', 'fr'),
  594. # and each language directory should contain the policy document (named as
  595. # '<version>.html') and a success page (success.html).
  596. #
  597. # 'version' specifies the 'current' version of the policy document. It defines
  598. # the version to be served by the consent resource if there is no 'v'
  599. # parameter.
  600. #
  601. # 'server_notice_content', if enabled, will send a user a "Server Notice"
  602. # asking them to consent to the privacy policy. The 'server_notices' section
  603. # must also be configured for this to work. Notices will *not* be sent to
  604. # guest users unless 'send_server_notice_to_guests' is set to true.
  605. #
  606. # 'block_events_error', if set, will block any attempts to send events
  607. # until the user consents to the privacy policy. The value of the setting is
  608. # used as the text of the error.
  609. #
  610. # 'require_at_registration', if enabled, will add a step to the registration
  611. # process, similar to how captcha works. Users will be required to accept the
  612. # policy before their account is created.
  613. #
  614. # 'policy_name' is the display name of the policy users will see when registering
  615. # for an account. Has no effect unless `require_at_registration` is enabled.
  616. # Defaults to "Privacy Policy".
  617. #
  618. # user_consent:
  619. # template_dir: res/templates/privacy
  620. # version: 1.0
  621. # server_notice_content:
  622. # msgtype: m.text
  623. # body: >-
  624. # To continue using this homeserver you must review and agree to the
  625. # terms and conditions at %(consent_uri)s
  626. # send_server_notice_to_guests: True
  627. # block_events_error: >-
  628. # To continue using this homeserver you must review and agree to the
  629. # terms and conditions at %(consent_uri)s
  630. # require_at_registration: False
  631. # policy_name: Privacy Policy
  632. #
  633. # Server Notices room configuration
  634. #
  635. # Uncomment this section to enable a room which can be used to send notices
  636. # from the server to users. It is a special room which cannot be left; notices
  637. # come from a special "notices" user id.
  638. #
  639. # If you uncomment this section, you *must* define the system_mxid_localpart
  640. # setting, which defines the id of the user which will be used to send the
  641. # notices.
  642. #
  643. # It's also possible to override the room name, the display name of the
  644. # "notices" user, and the avatar for the user.
  645. #
  646. # server_notices:
  647. # system_mxid_localpart: notices
  648. # system_mxid_display_name: "Server Notices"
  649. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  650. # room_name: "Server Notices"
  651. # The `alias_creation` option controls who's allowed to create aliases
  652. # on this server.
  653. #
  654. # The format of this option is a list of rules that contain globs that
  655. # match against user_id and the new alias (fully qualified with server
  656. # name). The action in the first rule that matches is taken, which can
  657. # currently either be "allow" or "deny".
  658. #
  659. # If no rules match the request is denied.
  660. alias_creation_rules:
  661. - user_id: "*"
  662. alias: "*"
  663. action: allow