Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

1930 linhas
68 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. # Configuration file for Synapse.
  3. #
  4. # This is a YAML file: see [1] for a quick introduction. Note in particular
  5. # that *indentation is important*: all the elements of a list or dictionary
  6. # should have the same indentation.
  7. #
  8. # [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
  9. ## Server ##
  10. # The domain name of the server, with optional explicit port.
  11. # This is used by remote servers to connect to this server,
  12. # e.g. matrix.org, localhost:8080, etc.
  13. # This is also the last part of your UserID.
  14. #
  15. server_name: "{{ matrix_domain }}"
  16. # When running as a daemon, the file to store the pid in
  17. #
  18. pid_file: /homeserver.pid
  19. # The absolute URL to the web client which /_matrix/client will redirect
  20. # to if 'webclient' is configured under the 'listeners' configuration.
  21. #
  22. # This option can be also set to the filesystem path to the web client
  23. # which will be served at /_matrix/client/ if 'webclient' is configured
  24. # under the 'listeners' configuration, however this is a security risk:
  25. # https://github.com/matrix-org/synapse#security-note
  26. #
  27. #web_client_location: https://riot.example.com/
  28. # The public-facing base URL that clients use to access this HS
  29. # (not including _matrix/...). This is the same URL a user would
  30. # enter into the 'custom HS URL' field on their client. If you
  31. # use synapse with a reverse proxy, this should be the URL to reach
  32. # synapse via the proxy.
  33. #
  34. public_baseurl: https://{{ matrix_server_fqn_matrix }}/
  35. # Set the soft limit on the number of file descriptors synapse can use
  36. # Zero is used to indicate synapse should set the soft limit to the
  37. # hard limit.
  38. #
  39. #soft_file_limit: 0
  40. # Set to false to disable presence tracking on this homeserver.
  41. #
  42. use_presence: {{ matrix_synapse_use_presence|to_json }}
  43. # Whether to require authentication to retrieve profile data (avatars,
  44. # display names) of other users through the client API. Defaults to
  45. # 'false'. Note that profile data is also available via the federation
  46. # API, so this setting is of limited value if federation is enabled on
  47. # the server.
  48. #
  49. #require_auth_for_profile_requests: true
  50. # Uncomment to require a user to share a room with another user in order
  51. # to retrieve their profile information. Only checked on Client-Server
  52. # requests. Profile requests from other servers should be checked by the
  53. # requesting server. Defaults to 'false'.
  54. #
  55. #limit_profile_requests_to_users_who_share_rooms: true
  56. # If set to 'true', removes the need for authentication to access the server's
  57. # public rooms directory through the client API, meaning that anyone can
  58. # query the room directory. Defaults to 'false'.
  59. #
  60. allow_public_rooms_without_auth: {{ matrix_synapse_allow_public_rooms_without_auth|to_json }}
  61. # If set to 'true', allows any other homeserver to fetch the server's public
  62. # rooms directory via federation. Defaults to 'false'.
  63. #
  64. allow_public_rooms_over_federation: {{ matrix_synapse_allow_public_rooms_over_federation|to_json }}
  65. # The default room version for newly created rooms.
  66. #
  67. # Known room versions are listed here:
  68. # https://matrix.org/docs/spec/#complete-list-of-room-versions
  69. #
  70. # For example, for room version 1, default_room_version should be set
  71. # to "1".
  72. #
  73. default_room_version: {{ matrix_synapse_default_room_version|to_json }}
  74. # The GC threshold parameters to pass to `gc.set_threshold`, if defined
  75. #
  76. #gc_thresholds: [700, 10, 10]
  77. # Set the limit on the returned events in the timeline in the get
  78. # and sync operations. The default value is -1, means no upper limit.
  79. #
  80. #filter_timeline_limit: 5000
  81. # Whether room invites to users on this server should be blocked
  82. # (except those sent by local server admins). The default is False.
  83. #
  84. #block_non_admin_invites: True
  85. # Room searching
  86. #
  87. # If disabled, new messages will not be indexed for searching and users
  88. # will receive errors when searching for messages. Defaults to enabled.
  89. #
  90. #enable_search: false
  91. # Restrict federation to the following whitelist of domains.
  92. # N.B. we recommend also firewalling your federation listener to limit
  93. # inbound federation traffic as early as possible, rather than relying
  94. # purely on this application-layer restriction. If not specified, the
  95. # default is to whitelist everything.
  96. #
  97. #federation_domain_whitelist:
  98. # - lon.example.com
  99. # - nyc.example.com
  100. # - syd.example.com
  101. {% if matrix_synapse_federation_domain_whitelist is not none %}
  102. {# Cannot use `|to_nice_yaml` here, as an empty list does not get serialized properly by it. #}
  103. federation_domain_whitelist: {{ matrix_synapse_federation_domain_whitelist|to_json }}
  104. {% endif %}
  105. # Prevent federation requests from being sent to the following
  106. # blacklist IP address CIDR ranges. If this option is not specified, or
  107. # specified with an empty list, no ip range blacklist will be enforced.
  108. #
  109. # As of Synapse v1.4.0 this option also affects any outbound requests to identity
  110. # servers provided by user input.
  111. #
  112. # (0.0.0.0 and :: are always blacklisted, whether or not they are explicitly
  113. # listed here, since they correspond to unroutable addresses.)
  114. #
  115. federation_ip_range_blacklist:
  116. - '127.0.0.0/8'
  117. - '10.0.0.0/8'
  118. - '172.16.0.0/12'
  119. - '192.168.0.0/16'
  120. - '100.64.0.0/10'
  121. - '169.254.0.0/16'
  122. - '::1/128'
  123. - 'fe80::/64'
  124. - 'fc00::/7'
  125. # List of ports that Synapse should listen on, their purpose and their
  126. # configuration.
  127. #
  128. # Options for each listener include:
  129. #
  130. # port: the TCP port to bind to
  131. #
  132. # bind_addresses: a list of local addresses to listen on. The default is
  133. # 'all local interfaces'.
  134. #
  135. # type: the type of listener. Normally 'http', but other valid options are:
  136. # 'manhole' (see docs/manhole.md),
  137. # 'metrics' (see docs/metrics-howto.md),
  138. # 'replication' (see docs/workers.md).
  139. #
  140. # tls: set to true to enable TLS for this listener. Will use the TLS
  141. # key/cert specified in tls_private_key_path / tls_certificate_path.
  142. #
  143. # x_forwarded: Only valid for an 'http' listener. Set to true to use the
  144. # X-Forwarded-For header as the client IP. Useful when Synapse is
  145. # behind a reverse-proxy.
  146. #
  147. # resources: Only valid for an 'http' listener. A list of resources to host
  148. # on this port. Options for each resource are:
  149. #
  150. # names: a list of names of HTTP resources. See below for a list of
  151. # valid resource names.
  152. #
  153. # compress: set to true to enable HTTP comression for this resource.
  154. #
  155. # additional_resources: Only valid for an 'http' listener. A map of
  156. # additional endpoints which should be loaded via dynamic modules.
  157. #
  158. # Valid resource names are:
  159. #
  160. # client: the client-server API (/_matrix/client), and the synapse admin
  161. # API (/_synapse/admin). Also implies 'media' and 'static'.
  162. #
  163. # consent: user consent forms (/_matrix/consent). See
  164. # docs/consent_tracking.md.
  165. #
  166. # federation: the server-server API (/_matrix/federation). Also implies
  167. # 'media', 'keys', 'openid'
  168. #
  169. # keys: the key discovery API (/_matrix/keys).
  170. #
  171. # media: the media API (/_matrix/media).
  172. #
  173. # metrics: the metrics interface. See docs/metrics-howto.md.
  174. #
  175. # openid: OpenID authentication.
  176. #
  177. # replication: the HTTP replication API (/_synapse/replication). See
  178. # docs/workers.md.
  179. #
  180. # static: static resources under synapse/static (/_matrix/static). (Mostly
  181. # useful for 'fallback authentication'.)
  182. #
  183. # webclient: A web client. Requires web_client_location to be set.
  184. #
  185. listeners:
  186. {% if matrix_synapse_metrics_enabled %}
  187. - type: metrics
  188. port: {{ matrix_synapse_metrics_port }}
  189. bind_addresses:
  190. - '0.0.0.0'
  191. {% endif %}
  192. {% if matrix_synapse_federation_enabled and matrix_synapse_tls_federation_listener_enabled %}
  193. # TLS-enabled listener: for when matrix traffic is sent directly to synapse.
  194. - port: 8448
  195. tls: true
  196. bind_addresses: ['::']
  197. type: http
  198. x_forwarded: false
  199. resources:
  200. - names: [federation]
  201. compress: false
  202. {% endif %}
  203. # Unsecure HTTP listener (Client API): for when matrix traffic passes through a reverse proxy
  204. # that unwraps TLS.
  205. - port: 8008
  206. tls: false
  207. bind_addresses: ['::']
  208. type: http
  209. x_forwarded: true
  210. resources:
  211. - names: {{ matrix_synapse_http_listener_resource_names|to_json }}
  212. compress: false
  213. {% if matrix_synapse_federation_enabled %}
  214. # Unsecure HTTP listener (Federation API): for when matrix traffic passes through a reverse proxy
  215. # that unwraps TLS.
  216. - port: 8048
  217. tls: false
  218. bind_addresses: ['::']
  219. type: http
  220. x_forwarded: true
  221. resources:
  222. - names: [federation]
  223. compress: false
  224. {% endif %}
  225. {% if matrix_synapse_manhole_enabled %}
  226. # Turn on the twisted ssh manhole service on localhost on the given
  227. # port.
  228. - port: 9000
  229. bind_addresses: ['0.0.0.0']
  230. type: manhole
  231. {% endif %}
  232. # Forward extremities can build up in a room due to networking delays between
  233. # homeservers. Once this happens in a large room, calculation of the state of
  234. # that room can become quite expensive. To mitigate this, once the number of
  235. # forward extremities reaches a given threshold, Synapse will send an
  236. # org.matrix.dummy_event event, which will reduce the forward extremities
  237. # in the room.
  238. #
  239. # This setting defines the threshold (i.e. number of forward extremities in the
  240. # room) at which dummy events are sent. The default value is 10.
  241. #
  242. #dummy_events_threshold: 5
  243. ## Homeserver blocking ##
  244. # How to reach the server admin, used in ResourceLimitError
  245. #
  246. #admin_contact: 'mailto:admin@server.com'
  247. # Global blocking
  248. #
  249. #hs_disabled: False
  250. #hs_disabled_message: 'Human readable reason for why the HS is blocked'
  251. #hs_disabled_limit_type: 'error code(str), to help clients decode reason'
  252. # Monthly Active User Blocking
  253. #
  254. # Used in cases where the admin or server owner wants to limit to the
  255. # number of monthly active users.
  256. #
  257. # 'limit_usage_by_mau' disables/enables monthly active user blocking. When
  258. # anabled and a limit is reached the server returns a 'ResourceLimitError'
  259. # with error type Codes.RESOURCE_LIMIT_EXCEEDED
  260. #
  261. # 'max_mau_value' is the hard limit of monthly active users above which
  262. # the server will start blocking user actions.
  263. #
  264. # 'mau_trial_days' is a means to add a grace period for active users. It
  265. # means that users must be active for this number of days before they
  266. # can be considered active and guards against the case where lots of users
  267. # sign up in a short space of time never to return after their initial
  268. # session.
  269. #
  270. #limit_usage_by_mau: False
  271. #max_mau_value: 50
  272. #mau_trial_days: 2
  273. # If enabled, the metrics for the number of monthly active users will
  274. # be populated, however no one will be limited. If limit_usage_by_mau
  275. # is true, this is implied to be true.
  276. #
  277. #mau_stats_only: False
  278. # Sometimes the server admin will want to ensure certain accounts are
  279. # never blocked by mau checking. These accounts are specified here.
  280. #
  281. #mau_limit_reserved_threepids:
  282. # - medium: 'email'
  283. # address: 'reserved_user@example.com'
  284. # Used by phonehome stats to group together related servers.
  285. #server_context: context
  286. # Resource-constrained homeserver Settings
  287. #
  288. # If limit_remote_rooms.enabled is True, the room complexity will be
  289. # checked before a user joins a new remote room. If it is above
  290. # limit_remote_rooms.complexity, it will disallow joining or
  291. # instantly leave.
  292. #
  293. # limit_remote_rooms.complexity_error can be set to customise the text
  294. # displayed to the user when a room above the complexity threshold has
  295. # its join cancelled.
  296. #
  297. # Uncomment the below lines to enable:
  298. #limit_remote_rooms:
  299. # enabled: True
  300. # complexity: 1.0
  301. # complexity_error: "This room is too complex."
  302. # Whether to require a user to be in the room to add an alias to it.
  303. # Defaults to 'true'.
  304. #
  305. #require_membership_for_aliases: false
  306. # Whether to allow per-room membership profiles through the send of membership
  307. # events with profile information that differ from the target's global profile.
  308. # Defaults to 'true'.
  309. #
  310. #allow_per_room_profiles: false
  311. # How long to keep redacted events in unredacted form in the database. After
  312. # this period redacted events get replaced with their redacted form in the DB.
  313. #
  314. # Defaults to `7d`. Set to `null` to disable.
  315. #
  316. #redaction_retention_period: 28d
  317. redaction_retention_period: {{ matrix_synapse_redaction_retention_period }}
  318. # How long to track users' last seen time and IPs in the database.
  319. #
  320. # Defaults to `28d`. Set to `null` to disable clearing out of old rows.
  321. #
  322. #user_ips_max_age: 14d
  323. user_ips_max_age: {{ matrix_synapse_user_ips_max_age }}
  324. # Message retention policy at the server level.
  325. #
  326. # Room admins and mods can define a retention period for their rooms using the
  327. # 'm.room.retention' state event, and server admins can cap this period by setting
  328. # the 'allowed_lifetime_min' and 'allowed_lifetime_max' config options.
  329. #
  330. # If this feature is enabled, Synapse will regularly look for and purge events
  331. # which are older than the room's maximum retention period. Synapse will also
  332. # filter events received over federation so that events that should have been
  333. # purged are ignored and not stored again.
  334. #
  335. retention:
  336. # The message retention policies feature is disabled by default. Uncomment the
  337. # following line to enable it.
  338. #
  339. #enabled: true
  340. # Default retention policy. If set, Synapse will apply it to rooms that lack the
  341. # 'm.room.retention' state event. Currently, the value of 'min_lifetime' doesn't
  342. # matter much because Synapse doesn't take it into account yet.
  343. #
  344. #default_policy:
  345. # min_lifetime: 1d
  346. # max_lifetime: 1y
  347. # Retention policy limits. If set, a user won't be able to send a
  348. # 'm.room.retention' event which features a 'min_lifetime' or a 'max_lifetime'
  349. # that's not within this range. This is especially useful in closed federations,
  350. # in which server admins can make sure every federating server applies the same
  351. # rules.
  352. #
  353. #allowed_lifetime_min: 1d
  354. #allowed_lifetime_max: 1y
  355. # Server admins can define the settings of the background jobs purging the
  356. # events which lifetime has expired under the 'purge_jobs' section.
  357. #
  358. # If no configuration is provided, a single job will be set up to delete expired
  359. # events in every room daily.
  360. #
  361. # Each job's configuration defines which range of message lifetimes the job
  362. # takes care of. For example, if 'shortest_max_lifetime' is '2d' and
  363. # 'longest_max_lifetime' is '3d', the job will handle purging expired events in
  364. # rooms whose state defines a 'max_lifetime' that's both higher than 2 days, and
  365. # lower than or equal to 3 days. Both the minimum and the maximum value of a
  366. # range are optional, e.g. a job with no 'shortest_max_lifetime' and a
  367. # 'longest_max_lifetime' of '3d' will handle every room with a retention policy
  368. # which 'max_lifetime' is lower than or equal to three days.
  369. #
  370. # The rationale for this per-job configuration is that some rooms might have a
  371. # retention policy with a low 'max_lifetime', where history needs to be purged
  372. # of outdated messages on a more frequent basis than for the rest of the rooms
  373. # (e.g. every 12h), but not want that purge to be performed by a job that's
  374. # iterating over every room it knows, which could be heavy on the server.
  375. #
  376. #purge_jobs:
  377. # - shortest_max_lifetime: 1d
  378. # longest_max_lifetime: 3d
  379. # interval: 12h
  380. # - shortest_max_lifetime: 3d
  381. # longest_max_lifetime: 1y
  382. # interval: 1d
  383. # Inhibits the /requestToken endpoints from returning an error that might leak
  384. # information about whether an e-mail address is in use or not on this
  385. # homeserver.
  386. # Note that for some endpoints the error situation is the e-mail already being
  387. # used, and for others the error is entering the e-mail being unused.
  388. # If this option is enabled, instead of returning an error, these endpoints will
  389. # act as if no error happened and return a fake session ID ('sid') to clients.
  390. #
  391. #request_token_inhibit_3pid_errors: true
  392. ## TLS ##
  393. # PEM-encoded X509 certificate for TLS.
  394. # This certificate, as of Synapse 1.0, will need to be a valid and verifiable
  395. # certificate, signed by a recognised Certificate Authority.
  396. #
  397. # See 'ACME support' below to enable auto-provisioning this certificate via
  398. # Let's Encrypt.
  399. #
  400. # If supplying your own, be sure to use a `.pem` file that includes the
  401. # full certificate chain including any intermediate certificates (for
  402. # instance, if using certbot, use `fullchain.pem` as your certificate,
  403. # not `cert.pem`).
  404. #
  405. tls_certificate_path: {{ matrix_synapse_tls_certificate_path|to_json }}
  406. # PEM-encoded private key for TLS
  407. #
  408. tls_private_key_path: {{ matrix_synapse_tls_private_key_path|to_json }}
  409. # Whether to verify TLS server certificates for outbound federation requests.
  410. #
  411. # Defaults to `true`. To disable certificate verification, uncomment the
  412. # following line.
  413. #
  414. #federation_verify_certificates: false
  415. # The minimum TLS version that will be used for outbound federation requests.
  416. #
  417. # Defaults to `1`. Configurable to `1`, `1.1`, `1.2`, or `1.3`. Note
  418. # that setting this value higher than `1.2` will prevent federation to most
  419. # of the public Matrix network: only configure it to `1.3` if you have an
  420. # entirely private federation setup and you can ensure TLS 1.3 support.
  421. #
  422. #federation_client_minimum_tls_version: 1.2
  423. # Skip federation certificate verification on the following whitelist
  424. # of domains.
  425. #
  426. # This setting should only be used in very specific cases, such as
  427. # federation over Tor hidden services and similar. For private networks
  428. # of homeservers, you likely want to use a private CA instead.
  429. #
  430. # Only effective if federation_verify_certicates is `true`.
  431. #
  432. #federation_certificate_verification_whitelist:
  433. # - lon.example.com
  434. # - *.domain.com
  435. # - *.onion
  436. # List of custom certificate authorities for federation traffic.
  437. #
  438. # This setting should only normally be used within a private network of
  439. # homeservers.
  440. #
  441. # Note that this list will replace those that are provided by your
  442. # operating environment. Certificates must be in PEM format.
  443. #
  444. #federation_custom_ca_list:
  445. # - myCA1.pem
  446. # - myCA2.pem
  447. # - myCA3.pem
  448. # ACME support: This will configure Synapse to request a valid TLS certificate
  449. # for your configured `server_name` via Let's Encrypt.
  450. #
  451. # Note that ACME v1 is now deprecated, and Synapse currently doesn't support
  452. # ACME v2. This means that this feature currently won't work with installs set
  453. # up after November 2019. For more info, and alternative solutions, see
  454. # https://github.com/matrix-org/synapse/blob/master/docs/ACME.md#deprecation-of-acme-v1
  455. #
  456. # Note that provisioning a certificate in this way requires port 80 to be
  457. # routed to Synapse so that it can complete the http-01 ACME challenge.
  458. # By default, if you enable ACME support, Synapse will attempt to listen on
  459. # port 80 for incoming http-01 challenges - however, this will likely fail
  460. # with 'Permission denied' or a similar error.
  461. #
  462. # There are a couple of potential solutions to this:
  463. #
  464. # * If you already have an Apache, Nginx, or similar listening on port 80,
  465. # you can configure Synapse to use an alternate port, and have your web
  466. # server forward the requests. For example, assuming you set 'port: 8009'
  467. # below, on Apache, you would write:
  468. #
  469. # ProxyPass /.well-known/acme-challenge http://localhost:8009/.well-known/acme-challenge
  470. #
  471. # * Alternatively, you can use something like `authbind` to give Synapse
  472. # permission to listen on port 80.
  473. #
  474. acme:
  475. # ACME support is disabled by default. Uncomment the following line
  476. # (and tls_certificate_path and tls_private_key_path above) to enable it.
  477. #
  478. #enabled: true
  479. # Endpoint to use to request certificates. If you only want to test,
  480. # use Let's Encrypt's staging url:
  481. # https://acme-staging.api.letsencrypt.org/directory
  482. #
  483. #url: https://acme-v01.api.letsencrypt.org/directory
  484. # Port number to listen on for the HTTP-01 challenge. Change this if
  485. # you are forwarding connections through Apache/Nginx/etc.
  486. #
  487. #port: 80
  488. # Local addresses to listen on for incoming connections.
  489. # Again, you may want to change this if you are forwarding connections
  490. # through Apache/Nginx/etc.
  491. #
  492. #bind_addresses: ['::', '0.0.0.0']
  493. # How many days remaining on a certificate before it is renewed.
  494. #
  495. #reprovision_threshold: 30
  496. # The domain that the certificate should be for. Normally this
  497. # should be the same as your Matrix domain (i.e., 'server_name'), but,
  498. # by putting a file at 'https://<server_name>/.well-known/matrix/server',
  499. # you can delegate incoming traffic to another server. If you do that,
  500. # you should give the target of the delegation here.
  501. #
  502. # For example: if your 'server_name' is 'example.com', but
  503. # 'https://example.com/.well-known/matrix/server' delegates to
  504. # 'matrix.example.com', you should put 'matrix.example.com' here.
  505. #
  506. # If not set, defaults to your 'server_name'.
  507. #
  508. #domain: matrix.example.com
  509. # file to use for the account key. This will be generated if it doesn't
  510. # exist.
  511. #
  512. # If unspecified, we will use CONFDIR/client.key.
  513. #
  514. #account_key_file: /data/acme_account.key
  515. # List of allowed TLS fingerprints for this server to publish along
  516. # with the signing keys for this server. Other matrix servers that
  517. # make HTTPS requests to this server will check that the TLS
  518. # certificates returned by this server match one of the fingerprints.
  519. #
  520. # Synapse automatically adds the fingerprint of its own certificate
  521. # to the list. So if federation traffic is handled directly by synapse
  522. # then no modification to the list is required.
  523. #
  524. # If synapse is run behind a load balancer that handles the TLS then it
  525. # will be necessary to add the fingerprints of the certificates used by
  526. # the loadbalancers to this list if they are different to the one
  527. # synapse is using.
  528. #
  529. # Homeservers are permitted to cache the list of TLS fingerprints
  530. # returned in the key responses up to the "valid_until_ts" returned in
  531. # key. It may be necessary to publish the fingerprints of a new
  532. # certificate and wait until the "valid_until_ts" of the previous key
  533. # responses have passed before deploying it.
  534. #
  535. # You can calculate a fingerprint from a given TLS listener via:
  536. # openssl s_client -connect $host:$port < /dev/null 2> /dev/null |
  537. # openssl x509 -outform DER | openssl sha256 -binary | base64 | tr -d '='
  538. # or by checking matrix.org/federationtester/api/report?server_name=$host
  539. #
  540. #tls_fingerprints: [{"sha256": "<base64_encoded_sha256_fingerprint>"}]
  541. ## Database ##
  542. database:
  543. # The database engine name
  544. name: "psycopg2"
  545. args:
  546. user: {{ matrix_synapse_database_user|string|to_json }}
  547. password: {{ matrix_synapse_database_password|string|to_json }}
  548. database: "{{ matrix_synapse_database_database }}"
  549. host: "{{ matrix_synapse_database_host }}"
  550. cp_min: 5
  551. cp_max: 10
  552. # Number of events to cache in memory.
  553. #
  554. event_cache_size: "{{ matrix_synapse_event_cache_size }}"
  555. ## Logging ##
  556. # A yaml python logging config file as described by
  557. # https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema
  558. #
  559. log_config: "/data/{{ matrix_server_fqn_matrix }}.log.config"
  560. ## Ratelimiting ##
  561. # Ratelimiting settings for client actions (registration, login, messaging).
  562. #
  563. # Each ratelimiting configuration is made of two parameters:
  564. # - per_second: number of requests a client can send per second.
  565. # - burst_count: number of requests a client can send before being throttled.
  566. #
  567. # Synapse currently uses the following configurations:
  568. # - one for messages that ratelimits sending based on the account the client
  569. # is using
  570. # - one for registration that ratelimits registration requests based on the
  571. # client's IP address.
  572. # - one for login that ratelimits login requests based on the client's IP
  573. # address.
  574. # - one for login that ratelimits login requests based on the account the
  575. # client is attempting to log into.
  576. # - one for login that ratelimits login requests based on the account the
  577. # client is attempting to log into, based on the amount of failed login
  578. # attempts for this account.
  579. # - one for ratelimiting redactions by room admins. If this is not explicitly
  580. # set then it uses the same ratelimiting as per rc_message. This is useful
  581. # to allow room admins to deal with abuse quickly.
  582. #
  583. # The defaults are as shown below.
  584. #
  585. #rc_message:
  586. # per_second: 0.2
  587. # burst_count: 10
  588. rc_message: {{ matrix_synapse_rc_message|to_json }}
  589. #
  590. #rc_registration:
  591. # per_second: 0.17
  592. # burst_count: 3
  593. rc_registration: {{ matrix_synapse_rc_registration|to_json }}
  594. #
  595. #rc_login:
  596. # address:
  597. # per_second: 0.17
  598. # burst_count: 3
  599. # account:
  600. # per_second: 0.17
  601. # burst_count: 3
  602. # failed_attempts:
  603. # per_second: 0.17
  604. # burst_count: 3
  605. rc_login: {{ matrix_synapse_rc_login|to_json }}
  606. #
  607. #rc_admin_redaction:
  608. # per_second: 1
  609. # burst_count: 50
  610. # Ratelimiting settings for incoming federation
  611. #
  612. # The rc_federation configuration is made up of the following settings:
  613. # - window_size: window size in milliseconds
  614. # - sleep_limit: number of federation requests from a single server in
  615. # a window before the server will delay processing the request.
  616. # - sleep_delay: duration in milliseconds to delay processing events
  617. # from remote servers by if they go over the sleep limit.
  618. # - reject_limit: maximum number of concurrent federation requests
  619. # allowed from a single server
  620. # - concurrent: number of federation requests to concurrently process
  621. # from a single server
  622. #
  623. # The defaults are as shown below.
  624. #
  625. #rc_federation:
  626. # window_size: 1000
  627. # sleep_limit: 10
  628. # sleep_delay: 500
  629. # reject_limit: 50
  630. # concurrent: 3
  631. rc_federation: {{ matrix_synapse_rc_federation|to_json }}
  632. # Target outgoing federation transaction frequency for sending read-receipts,
  633. # per-room.
  634. #
  635. # If we end up trying to send out more read-receipts, they will get buffered up
  636. # into fewer transactions.
  637. #
  638. #federation_rr_transactions_per_room_per_second: 50
  639. federation_rr_transactions_per_room_per_second: {{ matrix_synapse_federation_rr_transactions_per_room_per_second }}
  640. ## Media Store ##
  641. # Enable the media store service in the Synapse master. Uncomment the
  642. # following if you are using a separate media store worker.
  643. #
  644. #enable_media_repo: false
  645. # Directory where uploaded images and attachments are stored.
  646. #
  647. media_store_path: "/matrix-media-store-parent/{{ matrix_synapse_media_store_directory_name }}"
  648. # Media storage providers allow media to be stored in different
  649. # locations.
  650. #
  651. #media_storage_providers:
  652. # - module: file_system
  653. # # Whether to store newly uploaded local files
  654. # store_local: false
  655. # # Whether to store newly downloaded remote files
  656. # store_remote: false
  657. # # Whether to wait for successful storage for local uploads
  658. # store_synchronous: false
  659. # config:
  660. # directory: /mnt/some/other/directory
  661. # The largest allowed upload size in bytes
  662. #
  663. max_upload_size: "{{ matrix_synapse_max_upload_size_mb }}M"
  664. # Maximum number of pixels that will be thumbnailed
  665. #
  666. #max_image_pixels: 32M
  667. # Whether to generate new thumbnails on the fly to precisely match
  668. # the resolution requested by the client. If true then whenever
  669. # a new resolution is requested by the client the server will
  670. # generate a new thumbnail. If false the server will pick a thumbnail
  671. # from a precalculated list.
  672. #
  673. #dynamic_thumbnails: false
  674. # List of thumbnails to precalculate when an image is uploaded.
  675. #
  676. #thumbnail_sizes:
  677. # - width: 32
  678. # height: 32
  679. # method: crop
  680. # - width: 96
  681. # height: 96
  682. # method: crop
  683. # - width: 320
  684. # height: 240
  685. # method: scale
  686. # - width: 640
  687. # height: 480
  688. # method: scale
  689. # - width: 800
  690. # height: 600
  691. # method: scale
  692. # Is the preview URL API enabled?
  693. #
  694. # 'false' by default: uncomment the following to enable it (and specify a
  695. # url_preview_ip_range_blacklist blacklist).
  696. #
  697. url_preview_enabled: {{ matrix_synapse_url_preview_enabled|to_json }}
  698. # List of IP address CIDR ranges that the URL preview spider is denied
  699. # from accessing. There are no defaults: you must explicitly
  700. # specify a list for URL previewing to work. You should specify any
  701. # internal services in your network that you do not want synapse to try
  702. # to connect to, otherwise anyone in any Matrix room could cause your
  703. # synapse to issue arbitrary GET requests to your internal services,
  704. # causing serious security issues.
  705. #
  706. # (0.0.0.0 and :: are always blacklisted, whether or not they are explicitly
  707. # listed here, since they correspond to unroutable addresses.)
  708. #
  709. # This must be specified if url_preview_enabled is set. It is recommended that
  710. # you uncomment the following list as a starting point.
  711. #
  712. url_preview_ip_range_blacklist:
  713. - '127.0.0.0/8'
  714. - '10.0.0.0/8'
  715. - '172.16.0.0/12'
  716. - '192.168.0.0/16'
  717. - '100.64.0.0/10'
  718. - '169.254.0.0/16'
  719. - '::1/128'
  720. - 'fe80::/64'
  721. - 'fc00::/7'
  722. # List of IP address CIDR ranges that the URL preview spider is allowed
  723. # to access even if they are specified in url_preview_ip_range_blacklist.
  724. # This is useful for specifying exceptions to wide-ranging blacklisted
  725. # target IP ranges - e.g. for enabling URL previews for a specific private
  726. # website only visible in your network.
  727. #
  728. #url_preview_ip_range_whitelist:
  729. # - '192.168.1.1'
  730. # Optional list of URL matches that the URL preview spider is
  731. # denied from accessing. You should use url_preview_ip_range_blacklist
  732. # in preference to this, otherwise someone could define a public DNS
  733. # entry that points to a private IP address and circumvent the blacklist.
  734. # This is more useful if you know there is an entire shape of URL that
  735. # you know that will never want synapse to try to spider.
  736. #
  737. # Each list entry is a dictionary of url component attributes as returned
  738. # by urlparse.urlsplit as applied to the absolute form of the URL. See
  739. # https://docs.python.org/2/library/urlparse.html#urlparse.urlsplit
  740. # The values of the dictionary are treated as an filename match pattern
  741. # applied to that component of URLs, unless they start with a ^ in which
  742. # case they are treated as a regular expression match. If all the
  743. # specified component matches for a given list item succeed, the URL is
  744. # blacklisted.
  745. #
  746. #url_preview_url_blacklist:
  747. # # blacklist any URL with a username in its URI
  748. # - username: '*'
  749. #
  750. # # blacklist all *.google.com URLs
  751. # - netloc: 'google.com'
  752. # - netloc: '*.google.com'
  753. #
  754. # # blacklist all plain HTTP URLs
  755. # - scheme: 'http'
  756. #
  757. # # blacklist http(s)://www.acme.com/foo
  758. # - netloc: 'www.acme.com'
  759. # path: '/foo'
  760. #
  761. # # blacklist any URL with a literal IPv4 address
  762. # - netloc: '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
  763. # The largest allowed URL preview spidering size in bytes
  764. #
  765. max_spider_size: 10M
  766. # A list of values for the Accept-Language HTTP header used when
  767. # downloading webpages during URL preview generation. This allows
  768. # Synapse to specify the preferred languages that URL previews should
  769. # be in when communicating with remote servers.
  770. #
  771. # Each value is a IETF language tag; a 2-3 letter identifier for a
  772. # language, optionally followed by subtags separated by '-', specifying
  773. # a country or region variant.
  774. #
  775. # Multiple values can be provided, and a weight can be added to each by
  776. # using quality value syntax (;q=). '*' translates to any language.
  777. #
  778. # Defaults to "en".
  779. #
  780. # Example:
  781. #
  782. # url_preview_accept_language:
  783. # - en-UK
  784. # - en-US;q=0.9
  785. # - fr;q=0.8
  786. # - *;q=0.7
  787. #
  788. url_preview_accept_language:
  789. # - en
  790. ## Captcha ##
  791. # See docs/CAPTCHA_SETUP for full details of configuring this.
  792. # This homeserver's ReCAPTCHA public key.
  793. #
  794. #recaptcha_public_key: "YOUR_PUBLIC_KEY"
  795. # This homeserver's ReCAPTCHA private key.
  796. #
  797. #recaptcha_private_key: "YOUR_PRIVATE_KEY"
  798. # Enables ReCaptcha checks when registering, preventing signup
  799. # unless a captcha is answered. Requires a valid ReCaptcha
  800. # public/private key.
  801. #
  802. #enable_registration_captcha: false
  803. # The API endpoint to use for verifying m.login.recaptcha responses.
  804. #
  805. #recaptcha_siteverify_api: "https://www.recaptcha.net/recaptcha/api/siteverify"
  806. ## TURN ##
  807. # The public URIs of the TURN server to give to clients
  808. #
  809. turn_uris: {{ matrix_synapse_turn_uris|to_json }}
  810. # The shared secret used to compute passwords for the TURN server
  811. #
  812. turn_shared_secret: {{ matrix_synapse_turn_shared_secret|string|to_json }}
  813. # The Username and password if the TURN server needs them and
  814. # does not use a token
  815. #
  816. #turn_username: "TURNSERVER_USERNAME"
  817. #turn_password: "TURNSERVER_PASSWORD"
  818. # How long generated TURN credentials last
  819. #
  820. #turn_user_lifetime: 1h
  821. # Whether guests should be allowed to use the TURN server.
  822. # This defaults to True, otherwise VoIP will be unreliable for guests.
  823. # However, it does introduce a slight security risk as it allows users to
  824. # connect to arbitrary endpoints without having first signed up for a
  825. # valid account (e.g. by passing a CAPTCHA).
  826. #
  827. turn_allow_guests: {{ matrix_synapse_turn_allow_guests|to_json }}
  828. ## Registration ##
  829. #
  830. # Registration can be rate-limited using the parameters in the "Ratelimiting"
  831. # section of this file.
  832. # Enable registration for new users.
  833. #
  834. enable_registration: {{ matrix_synapse_enable_registration|to_json }}
  835. # Optional account validity configuration. This allows for accounts to be denied
  836. # any request after a given period.
  837. #
  838. # Once this feature is enabled, Synapse will look for registered users without an
  839. # expiration date at startup and will add one to every account it found using the
  840. # current settings at that time.
  841. # This means that, if a validity period is set, and Synapse is restarted (it will
  842. # then derive an expiration date from the current validity period), and some time
  843. # after that the validity period changes and Synapse is restarted, the users'
  844. # expiration dates won't be updated unless their account is manually renewed. This
  845. # date will be randomly selected within a range [now + period - d ; now + period],
  846. # where d is equal to 10% of the validity period.
  847. #
  848. account_validity:
  849. # The account validity feature is disabled by default. Uncomment the
  850. # following line to enable it.
  851. #
  852. #enabled: true
  853. # The period after which an account is valid after its registration. When
  854. # renewing the account, its validity period will be extended by this amount
  855. # of time. This parameter is required when using the account validity
  856. # feature.
  857. #
  858. #period: 6w
  859. # The amount of time before an account's expiry date at which Synapse will
  860. # send an email to the account's email address with a renewal link. By
  861. # default, no such emails are sent.
  862. #
  863. # If you enable this setting, you will also need to fill out the 'email' and
  864. # 'public_baseurl' configuration sections.
  865. #
  866. #renew_at: 1w
  867. # The subject of the email sent out with the renewal link. '%(app)s' can be
  868. # used as a placeholder for the 'app_name' parameter from the 'email'
  869. # section.
  870. #
  871. # Note that the placeholder must be written '%(app)s', including the
  872. # trailing 's'.
  873. #
  874. # If this is not set, a default value is used.
  875. #
  876. #renew_email_subject: "Renew your %(app)s account"
  877. # Directory in which Synapse will try to find templates for the HTML files to
  878. # serve to the user when trying to renew an account. If not set, default
  879. # templates from within the Synapse package will be used.
  880. #
  881. #template_dir: "res/templates"
  882. # File within 'template_dir' giving the HTML to be displayed to the user after
  883. # they successfully renewed their account. If not set, default text is used.
  884. #
  885. #account_renewed_html_path: "account_renewed.html"
  886. # File within 'template_dir' giving the HTML to be displayed when the user
  887. # tries to renew an account with an invalid renewal token. If not set,
  888. # default text is used.
  889. #
  890. #invalid_token_html_path: "invalid_token.html"
  891. # The user must provide all of the below types of 3PID when registering.
  892. #
  893. #registrations_require_3pid:
  894. # - email
  895. # - msisdn
  896. {% if matrix_synapse_registrations_require_3pid|length > 0 %}
  897. registrations_require_3pid: {{ matrix_synapse_registrations_require_3pid|to_json }}
  898. {% endif %}
  899. # Explicitly disable asking for MSISDNs from the registration
  900. # flow (overrides registrations_require_3pid if MSISDNs are set as required)
  901. #
  902. #disable_msisdn_registration: true
  903. # Mandate that users are only allowed to associate certain formats of
  904. # 3PIDs with accounts on this server.
  905. #
  906. #allowed_local_3pids:
  907. # - medium: email
  908. # pattern: '.*@matrix\.org'
  909. # - medium: email
  910. # pattern: '.*@vector\.im'
  911. # - medium: msisdn
  912. # pattern: '\+44'
  913. {% if matrix_synapse_allowed_local_3pids|length > 0 %}
  914. allowed_local_3pids: {{ matrix_synapse_allowed_local_3pids|to_json }}
  915. {% endif %}
  916. # Enable 3PIDs lookup requests to identity servers from this server.
  917. #
  918. #enable_3pid_lookup: true
  919. # If set, allows registration of standard or admin accounts by anyone who
  920. # has the shared secret, even if registration is otherwise disabled.
  921. #
  922. registration_shared_secret: {{ matrix_synapse_registration_shared_secret|string|to_json }}
  923. # Set the number of bcrypt rounds used to generate password hash.
  924. # Larger numbers increase the work factor needed to generate the hash.
  925. # The default number is 12 (which equates to 2^12 rounds).
  926. # N.B. that increasing this will exponentially increase the time required
  927. # to register or login - e.g. 24 => 2^24 rounds which will take >20 mins.
  928. #
  929. #bcrypt_rounds: 12
  930. # Allows users to register as guests without a password/email/etc, and
  931. # participate in rooms hosted on this server which have been made
  932. # accessible to anonymous users.
  933. #
  934. allow_guest_access: {{ matrix_synapse_allow_guest_access|to_json }}
  935. # The identity server which we suggest that clients should use when users log
  936. # in on this server.
  937. #
  938. # (By default, no suggestion is made, so it is left up to the client.
  939. # This setting is ignored unless public_baseurl is also set.)
  940. #
  941. #default_identity_server: https://matrix.org
  942. # The list of identity servers trusted to verify third party
  943. # identifiers by this server.
  944. #
  945. # Also defines the ID server which will be called when an account is
  946. # deactivated (one will be picked arbitrarily).
  947. #
  948. # Note: This option is deprecated. Since v0.99.4, Synapse has tracked which identity
  949. # server a 3PID has been bound to. For 3PIDs bound before then, Synapse runs a
  950. # background migration script, informing itself that the identity server all of its
  951. # 3PIDs have been bound to is likely one of the below.
  952. #
  953. # As of Synapse v1.4.0, all other functionality of this option has been deprecated, and
  954. # it is now solely used for the purposes of the background migration script, and can be
  955. # removed once it has run.
  956. {% if matrix_synapse_trusted_third_party_id_servers|length > 0 %}
  957. trusted_third_party_id_servers:
  958. {{ matrix_synapse_trusted_third_party_id_servers|to_nice_yaml }}
  959. {% endif %}
  960. # Handle threepid (email/phone etc) registration and password resets through a set of
  961. # *trusted* identity servers. Note that this allows the configured identity server to
  962. # reset passwords for accounts!
  963. #
  964. # Be aware that if `email` is not set, and SMTP options have not been
  965. # configured in the email config block, registration and user password resets via
  966. # email will be globally disabled.
  967. #
  968. # Additionally, if `msisdn` is not set, registration and password resets via msisdn
  969. # will be disabled regardless. This is due to Synapse currently not supporting any
  970. # method of sending SMS messages on its own.
  971. #
  972. # To enable using an identity server for operations regarding a particular third-party
  973. # identifier type, set the value to the URL of that identity server as shown in the
  974. # examples below.
  975. #
  976. # Servers handling the these requests must answer the `/requestToken` endpoints defined
  977. # by the Matrix Identity Service API specification:
  978. # https://matrix.org/docs/spec/identity_service/latest
  979. #
  980. # If a delegate is specified, the config option public_baseurl must also be filled out.
  981. #
  982. account_threepid_delegates:
  983. email: {{ matrix_synapse_account_threepid_delegates_email|to_json }}
  984. msisdn: {{ matrix_synapse_account_threepid_delegates_msisdn|to_json }}
  985. # Whether users are allowed to change their displayname after it has
  986. # been initially set. Useful when provisioning users based on the
  987. # contents of a third-party directory.
  988. #
  989. # Does not apply to server administrators. Defaults to 'true'
  990. #
  991. #enable_set_displayname: false
  992. # Whether users are allowed to change their avatar after it has been
  993. # initially set. Useful when provisioning users based on the contents
  994. # of a third-party directory.
  995. #
  996. # Does not apply to server administrators. Defaults to 'true'
  997. #
  998. #enable_set_avatar_url: false
  999. # Whether users can change the 3PIDs associated with their accounts
  1000. # (email address and msisdn).
  1001. #
  1002. # Defaults to 'true'
  1003. #
  1004. #enable_3pid_changes: false
  1005. # Users who register on this homeserver will automatically be joined
  1006. # to these rooms
  1007. #
  1008. #auto_join_rooms:
  1009. # - "#example:example.com"
  1010. {% if matrix_synapse_auto_join_rooms|length > 0 %}
  1011. auto_join_rooms:
  1012. {{ matrix_synapse_auto_join_rooms|to_nice_yaml }}
  1013. {% endif %}
  1014. # Where auto_join_rooms are specified, setting this flag ensures that the
  1015. # the rooms exist by creating them when the first user on the
  1016. # homeserver registers.
  1017. # Setting to false means that if the rooms are not manually created,
  1018. # users cannot be auto-joined since they do not exist.
  1019. #
  1020. autocreate_auto_join_rooms: {{ matrix_synapse_autocreate_auto_join_rooms|to_json }}
  1021. ## Metrics ###
  1022. # Enable collection and rendering of performance metrics
  1023. #
  1024. enable_metrics: {{ matrix_synapse_metrics_enabled|to_json }}
  1025. # Enable sentry integration
  1026. # NOTE: While attempts are made to ensure that the logs don't contain
  1027. # any sensitive information, this cannot be guaranteed. By enabling
  1028. # this option the sentry server may therefore receive sensitive
  1029. # information, and it in turn may then diseminate sensitive information
  1030. # through insecure notification channels if so configured.
  1031. #
  1032. {% if matrix_synapse_sentry_dsn != "" %}
  1033. sentry:
  1034. dsn: {{ matrix_synapse_sentry_dsn|to_json }}
  1035. {% endif %}
  1036. # Flags to enable Prometheus metrics which are not suitable to be
  1037. # enabled by default, either for performance reasons or limited use.
  1038. #
  1039. metrics_flags:
  1040. # Publish synapse_federation_known_servers, a gauge of the number of
  1041. # servers this homeserver knows about, including itself. May cause
  1042. # performance problems on large homeservers.
  1043. #
  1044. #known_servers: true
  1045. # Whether or not to report anonymized homeserver usage statistics.
  1046. report_stats: {{ matrix_synapse_report_stats|to_json }}
  1047. # The endpoint to report the anonymized homeserver usage statistics to.
  1048. # Defaults to https://matrix.org/report-usage-stats/push
  1049. #
  1050. #report_stats_endpoint: https://example.com/report-usage-stats/push
  1051. ## API Configuration ##
  1052. # A list of event types that will be included in the room_invite_state
  1053. #
  1054. #room_invite_state_types:
  1055. # - "m.room.join_rules"
  1056. # - "m.room.canonical_alias"
  1057. # - "m.room.avatar"
  1058. # - "m.room.encryption"
  1059. # - "m.room.name"
  1060. # A list of application service config files to use
  1061. #
  1062. app_service_config_files: {{ matrix_synapse_app_service_config_files|to_json }}
  1063. # Uncomment to enable tracking of application service IP addresses. Implicitly
  1064. # enables MAU tracking for application service users.
  1065. #
  1066. #track_appservice_user_ips: True
  1067. # a secret which is used to sign access tokens. If none is specified,
  1068. # the registration_shared_secret is used, if one is given; otherwise,
  1069. # a secret key is derived from the signing key.
  1070. #
  1071. macaroon_secret_key: {{ matrix_synapse_macaroon_secret_key|string|to_json }}
  1072. # a secret which is used to calculate HMACs for form values, to stop
  1073. # falsification of values. Must be specified for the User Consent
  1074. # forms to work.
  1075. #
  1076. form_secret: {{ matrix_synapse_form_secret|string|to_json }}
  1077. ## Signing Keys ##
  1078. # Path to the signing key to sign messages with
  1079. #
  1080. signing_key_path: "/data/{{ matrix_server_fqn_matrix }}.signing.key"
  1081. # The keys that the server used to sign messages with but won't use
  1082. # to sign new messages.
  1083. #
  1084. old_signing_keys:
  1085. # For each key, `key` should be the base64-encoded public key, and
  1086. # `expired_ts`should be the time (in milliseconds since the unix epoch) that
  1087. # it was last used.
  1088. #
  1089. # It is possible to build an entry from an old signing.key file using the
  1090. # `export_signing_key` script which is provided with synapse.
  1091. #
  1092. # For example:
  1093. #
  1094. #"ed25519:id": { key: "base64string", expired_ts: 123456789123 }
  1095. # How long key response published by this server is valid for.
  1096. # Used to set the valid_until_ts in /key/v2 APIs.
  1097. # Determines how quickly servers will query to check which keys
  1098. # are still valid.
  1099. #
  1100. #key_refresh_interval: 1d
  1101. # The trusted servers to download signing keys from.
  1102. #
  1103. # When we need to fetch a signing key, each server is tried in parallel.
  1104. #
  1105. # Normally, the connection to the key server is validated via TLS certificates.
  1106. # Additional security can be provided by configuring a `verify key`, which
  1107. # will make synapse check that the response is signed by that key.
  1108. #
  1109. # This setting supercedes an older setting named `perspectives`. The old format
  1110. # is still supported for backwards-compatibility, but it is deprecated.
  1111. #
  1112. # 'trusted_key_servers' defaults to matrix.org, but using it will generate a
  1113. # warning on start-up. To suppress this warning, set
  1114. # 'suppress_key_server_warning' to true.
  1115. #
  1116. # Options for each entry in the list include:
  1117. #
  1118. # server_name: the name of the server. required.
  1119. #
  1120. # verify_keys: an optional map from key id to base64-encoded public key.
  1121. # If specified, we will check that the response is signed by at least
  1122. # one of the given keys.
  1123. #
  1124. # accept_keys_insecurely: a boolean. Normally, if `verify_keys` is unset,
  1125. # and federation_verify_certificates is not `true`, synapse will refuse
  1126. # to start, because this would allow anyone who can spoof DNS responses
  1127. # to masquerade as the trusted key server. If you know what you are doing
  1128. # and are sure that your network environment provides a secure connection
  1129. # to the key server, you can set this to `true` to override this
  1130. # behaviour.
  1131. #
  1132. # An example configuration might look like:
  1133. #
  1134. #trusted_key_servers:
  1135. # - server_name: "my_trusted_server.example.com"
  1136. # verify_keys:
  1137. # "ed25519:auto": "abcdefghijklmnopqrstuvwxyzabcdefghijklmopqr"
  1138. # - server_name: "my_other_trusted_server.example.com"
  1139. #
  1140. trusted_key_servers: {{ matrix_synapse_trusted_key_servers|to_json }}
  1141. # Uncomment the following to disable the warning that is emitted when the
  1142. # trusted_key_servers include 'matrix.org'. See above.
  1143. #
  1144. #suppress_key_server_warning: true
  1145. # The signing keys to use when acting as a trusted key server. If not specified
  1146. # defaults to the server signing key.
  1147. #
  1148. # Can contain multiple keys, one per line.
  1149. #
  1150. #key_server_signing_keys_path: "key_server_signing_keys.key"
  1151. # Enable SAML2 for registration and login. Uses pysaml2.
  1152. #
  1153. # At least one of `sp_config` or `config_path` must be set in this section to
  1154. # enable SAML login.
  1155. #
  1156. # (You will probably also want to set the following options to `false` to
  1157. # disable the regular login/registration flows:
  1158. # * enable_registration
  1159. # * password_config.enabled
  1160. #
  1161. # Once SAML support is enabled, a metadata file will be exposed at
  1162. # https://<server>:<port>/_matrix/saml2/metadata.xml, which you may be able to
  1163. # use to configure your SAML IdP with. Alternatively, you can manually configure
  1164. # the IdP to use an ACS location of
  1165. # https://<server>:<port>/_matrix/saml2/authn_response.
  1166. #
  1167. saml2_config:
  1168. # `sp_config` is the configuration for the pysaml2 Service Provider.
  1169. # See pysaml2 docs for format of config.
  1170. #
  1171. # Default values will be used for the 'entityid' and 'service' settings,
  1172. # so it is not normally necessary to specify them unless you need to
  1173. # override them.
  1174. #
  1175. #sp_config:
  1176. # # point this to the IdP's metadata. You can use either a local file or
  1177. # # (preferably) a URL.
  1178. # metadata:
  1179. # #local: ["saml2/idp.xml"]
  1180. # remote:
  1181. # - url: https://our_idp/metadata.xml
  1182. #
  1183. # # By default, the user has to go to our login page first. If you'd like
  1184. # # to allow IdP-initiated login, set 'allow_unsolicited: true' in a
  1185. # # 'service.sp' section:
  1186. # #
  1187. # #service:
  1188. # # sp:
  1189. # # allow_unsolicited: true
  1190. #
  1191. # # The examples below are just used to generate our metadata xml, and you
  1192. # # may well not need them, depending on your setup. Alternatively you
  1193. # # may need a whole lot more detail - see the pysaml2 docs!
  1194. #
  1195. # description: ["My awesome SP", "en"]
  1196. # name: ["Test SP", "en"]
  1197. #
  1198. # organization:
  1199. # name: Example com
  1200. # display_name:
  1201. # - ["Example co", "en"]
  1202. # url: "http://example.com"
  1203. #
  1204. # contact_person:
  1205. # - given_name: Bob
  1206. # sur_name: "the Sysadmin"
  1207. # email_address": ["admin@example.com"]
  1208. # contact_type": technical
  1209. # Instead of putting the config inline as above, you can specify a
  1210. # separate pysaml2 configuration file:
  1211. #
  1212. #config_path: "/data/sp_conf.py"
  1213. # The lifetime of a SAML session. This defines how long a user has to
  1214. # complete the authentication process, if allow_unsolicited is unset.
  1215. # The default is 5 minutes.
  1216. #
  1217. #saml_session_lifetime: 5m
  1218. # An external module can be provided here as a custom solution to
  1219. # mapping attributes returned from a saml provider onto a matrix user.
  1220. #
  1221. user_mapping_provider:
  1222. # The custom module's class. Uncomment to use a custom module.
  1223. #
  1224. #module: mapping_provider.SamlMappingProvider
  1225. # Custom configuration values for the module. Below options are
  1226. # intended for the built-in provider, they should be changed if
  1227. # using a custom module. This section will be passed as a Python
  1228. # dictionary to the module's `parse_config` method.
  1229. #
  1230. config:
  1231. # The SAML attribute (after mapping via the attribute maps) to use
  1232. # to derive the Matrix ID from. 'uid' by default.
  1233. #
  1234. # Note: This used to be configured by the
  1235. # saml2_config.mxid_source_attribute option. If that is still
  1236. # defined, its value will be used instead.
  1237. #
  1238. #mxid_source_attribute: displayName
  1239. # The mapping system to use for mapping the saml attribute onto a
  1240. # matrix ID.
  1241. #
  1242. # Options include:
  1243. # * 'hexencode' (which maps unpermitted characters to '=xx')
  1244. # * 'dotreplace' (which replaces unpermitted characters with
  1245. # '.').
  1246. # The default is 'hexencode'.
  1247. #
  1248. # Note: This used to be configured by the
  1249. # saml2_config.mxid_mapping option. If that is still defined, its
  1250. # value will be used instead.
  1251. #
  1252. #mxid_mapping: dotreplace
  1253. # In previous versions of synapse, the mapping from SAML attribute to
  1254. # MXID was always calculated dynamically rather than stored in a
  1255. # table. For backwards- compatibility, we will look for user_ids
  1256. # matching such a pattern before creating a new account.
  1257. #
  1258. # This setting controls the SAML attribute which will be used for this
  1259. # backwards-compatibility lookup. Typically it should be 'uid', but if
  1260. # the attribute maps are changed, it may be necessary to change it.
  1261. #
  1262. # The default is 'uid'.
  1263. #
  1264. #grandfathered_mxid_source_attribute: upn
  1265. # Directory in which Synapse will try to find the template files below.
  1266. # If not set, default templates from within the Synapse package will be used.
  1267. #
  1268. # DO NOT UNCOMMENT THIS SETTING unless you want to customise the templates.
  1269. # If you *do* uncomment it, you will need to make sure that all the templates
  1270. # below are in the directory.
  1271. #
  1272. # Synapse will look for the following templates in this directory:
  1273. #
  1274. # * HTML page to display to users if something goes wrong during the
  1275. # authentication process: 'saml_error.html'.
  1276. #
  1277. # This template doesn't currently need any variable to render.
  1278. #
  1279. # You can see the default templates at:
  1280. # https://github.com/matrix-org/synapse/tree/master/synapse/res/templates
  1281. #
  1282. #template_dir: "res/templates"
  1283. # Enable CAS for registration and login.
  1284. #
  1285. #cas_config:
  1286. # enabled: true
  1287. # server_url: "https://cas-server.com"
  1288. # service_url: "https://homeserver.domain.com:8448"
  1289. # #required_attributes:
  1290. # # name: value
  1291. # The JWT needs to contain a globally unique "sub" (subject) claim.
  1292. #
  1293. #jwt_config:
  1294. # enabled: true
  1295. # secret: "a secret"
  1296. # algorithm: "HS256"
  1297. password_config:
  1298. # Uncomment to disable password login
  1299. #
  1300. #enabled: false
  1301. # Uncomment to disable authentication against the local password
  1302. # database. This is ignored if `enabled` is false, and is only useful
  1303. # if you have other password_providers.
  1304. #
  1305. localdb_enabled: {{ matrix_synapse_password_config_localdb_enabled|to_json }}
  1306. # Uncomment and change to a secret random string for extra security.
  1307. # DO NOT CHANGE THIS AFTER INITIAL SETUP!
  1308. #
  1309. pepper: {{ matrix_synapse_password_config_pepper|string|to_json }}
  1310. {% if matrix_synapse_email_enabled %}
  1311. # Configuration for sending emails from Synapse.
  1312. #
  1313. email:
  1314. # The hostname of the outgoing SMTP server to use. Defaults to 'localhost'.
  1315. #
  1316. #smtp_host: mail.server
  1317. smtp_host: {{ matrix_synapse_email_smtp_host|string|to_json }}
  1318. # The port on the mail server for outgoing SMTP. Defaults to 25.
  1319. #
  1320. #smtp_port: 587
  1321. smtp_port: {{ matrix_synapse_email_smtp_port|to_json }}
  1322. # Username/password for authentication to the SMTP server. By default, no
  1323. # authentication is attempted.
  1324. #
  1325. # smtp_user: "exampleusername"
  1326. # smtp_pass: "examplepassword"
  1327. # Uncomment the following to require TLS transport security for SMTP.
  1328. # By default, Synapse will connect over plain text, and will then switch to
  1329. # TLS via STARTTLS *if the SMTP server supports it*. If this option is set,
  1330. # Synapse will refuse to connect unless the server supports STARTTLS.
  1331. #
  1332. #require_transport_security: true
  1333. require_transport_security: {{ matrix_synapse_email_smtp_require_transport_security|to_json }}
  1334. # Enable sending emails for messages that the user has missed
  1335. #
  1336. #enable_notifs: false
  1337. enable_notifs: true
  1338. # notif_from defines the "From" address to use when sending emails.
  1339. # It must be set if email sending is enabled.
  1340. #
  1341. # The placeholder '%(app)s' will be replaced by the application name,
  1342. # which is normally 'app_name' (below), but may be overridden by the
  1343. # Matrix client application.
  1344. #
  1345. # Note that the placeholder must be written '%(app)s', including the
  1346. # trailing 's'.
  1347. #
  1348. #notif_from: "Your Friendly %(app)s homeserver <noreply@example.com>"
  1349. notif_from: {{ matrix_synapse_email_notif_from|string|to_json }}
  1350. # app_name defines the default value for '%(app)s' in notif_from. It
  1351. # defaults to 'Matrix'.
  1352. #
  1353. #app_name: my_branded_matrix_server
  1354. app_name: Matrix
  1355. # Uncomment the following to disable automatic subscription to email
  1356. # notifications for new users. Enabled by default.
  1357. #
  1358. #notif_for_new_users: false
  1359. notif_for_new_users: True
  1360. # Custom URL for client links within the email notifications. By default
  1361. # links will be based on "https://matrix.to".
  1362. #
  1363. # (This setting used to be called riot_base_url; the old name is still
  1364. # supported for backwards-compatibility but is now deprecated.)
  1365. #
  1366. #client_base_url: "http://localhost/riot"
  1367. client_base_url: {{ matrix_synapse_email_client_base_url|string|to_json }}
  1368. # Configure the time that a validation email will expire after sending.
  1369. # Defaults to 1h.
  1370. #
  1371. #validation_token_lifetime: 15m
  1372. # Directory in which Synapse will try to find the template files below.
  1373. # If not set, default templates from within the Synapse package will be used.
  1374. #
  1375. # DO NOT UNCOMMENT THIS SETTING unless you want to customise the templates.
  1376. # If you *do* uncomment it, you will need to make sure that all the templates
  1377. # below are in the directory.
  1378. #
  1379. # Synapse will look for the following templates in this directory:
  1380. #
  1381. # * The contents of email notifications of missed events: 'notif_mail.html' and
  1382. # 'notif_mail.txt'.
  1383. #
  1384. # * The contents of account expiry notice emails: 'notice_expiry.html' and
  1385. # 'notice_expiry.txt'.
  1386. #
  1387. # * The contents of password reset emails sent by the homeserver:
  1388. # 'password_reset.html' and 'password_reset.txt'
  1389. #
  1390. # * HTML pages for success and failure that a user will see when they follow
  1391. # the link in the password reset email: 'password_reset_success.html' and
  1392. # 'password_reset_failure.html'
  1393. #
  1394. # * The contents of address verification emails sent during registration:
  1395. # 'registration.html' and 'registration.txt'
  1396. #
  1397. # * HTML pages for success and failure that a user will see when they follow
  1398. # the link in an address verification email sent during registration:
  1399. # 'registration_success.html' and 'registration_failure.html'
  1400. #
  1401. # * The contents of address verification emails sent when an address is added
  1402. # to a Matrix account: 'add_threepid.html' and 'add_threepid.txt'
  1403. #
  1404. # * HTML pages for success and failure that a user will see when they follow
  1405. # the link in an address verification email sent when an address is added
  1406. # to a Matrix account: 'add_threepid_success.html' and
  1407. # 'add_threepid_failure.html'
  1408. #
  1409. # You can see the default templates at:
  1410. # https://github.com/matrix-org/synapse/tree/master/synapse/res/templates
  1411. #
  1412. #template_dir: "res/templates"
  1413. {% endif %}
  1414. # Password providers allow homeserver administrators to integrate
  1415. # their Synapse installation with existing authentication methods
  1416. # ex. LDAP, external tokens, etc.
  1417. #
  1418. # For more information and known implementations, please see
  1419. # https://github.com/matrix-org/synapse/blob/master/docs/password_auth_providers.md
  1420. #
  1421. # Note: instances wishing to use SAML or CAS authentication should
  1422. # instead use the `saml2_config` or `cas_config` options,
  1423. # respectively.
  1424. #
  1425. # password_providers:
  1426. # # Example config for an LDAP auth provider
  1427. # - module: "ldap_auth_provider.LdapAuthProvider"
  1428. # config:
  1429. # enabled: true
  1430. # uri: "ldap://ldap.example.com:389"
  1431. # start_tls: true
  1432. # base: "ou=users,dc=example,dc=com"
  1433. # attributes:
  1434. # uid: "cn"
  1435. # mail: "email"
  1436. # name: "givenName"
  1437. # #bind_dn:
  1438. # #bind_password:
  1439. # #filter: "(objectClass=posixAccount)"
  1440. {% if matrix_synapse_password_providers_enabled %}
  1441. password_providers:
  1442. {% if matrix_synapse_ext_password_provider_shared_secret_auth_enabled %}
  1443. - module: "shared_secret_authenticator.SharedSecretAuthenticator"
  1444. config:
  1445. sharedSecret: {{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret|string|to_json }}
  1446. {% endif %}
  1447. {% if matrix_synapse_ext_password_provider_rest_auth_enabled %}
  1448. - module: "rest_auth_provider.RestAuthProvider"
  1449. config:
  1450. endpoint: {{ matrix_synapse_ext_password_provider_rest_auth_endpoint|string|to_json }}
  1451. policy:
  1452. registration:
  1453. username:
  1454. enforceLowercase: {{ matrix_synapse_ext_password_provider_rest_auth_registration_enforce_lowercase }}
  1455. profile:
  1456. name: {{ matrix_synapse_ext_password_provider_rest_auth_registration_profile_name_autofill }}
  1457. login:
  1458. profile:
  1459. name: {{ matrix_synapse_ext_password_provider_rest_auth_login_profile_name_autofill }}
  1460. {% endif %}
  1461. {% if matrix_synapse_ext_password_provider_ldap_enabled %}
  1462. - module: "ldap_auth_provider.LdapAuthProvider"
  1463. config:
  1464. enabled: true
  1465. uri: {{ matrix_synapse_ext_password_provider_ldap_uri|string|to_json }}
  1466. start_tls: {{ matrix_synapse_ext_password_provider_ldap_start_tls|to_json }}
  1467. base: {{ matrix_synapse_ext_password_provider_ldap_base|string|to_json }}
  1468. attributes:
  1469. uid: {{ matrix_synapse_ext_password_provider_ldap_attributes_uid|string|to_json }}
  1470. mail: {{ matrix_synapse_ext_password_provider_ldap_attributes_mail|string|to_json }}
  1471. name: {{ matrix_synapse_ext_password_provider_ldap_attributes_name|string|to_json }}
  1472. bind_dn: {{ matrix_synapse_ext_password_provider_ldap_bind_dn|string|to_json }}
  1473. bind_password: {{ matrix_synapse_ext_password_provider_ldap_bind_password|string|to_json }}
  1474. filter: {{ matrix_synapse_ext_password_provider_ldap_filter|string|to_json }}
  1475. {% endif %}
  1476. {% endif %}
  1477. # Clients requesting push notifications can either have the body of
  1478. # the message sent in the notification poke along with other details
  1479. # like the sender, or just the event ID and room ID (`event_id_only`).
  1480. # If clients choose the former, this option controls whether the
  1481. # notification request includes the content of the event (other details
  1482. # like the sender are still included). For `event_id_only` push, it
  1483. # has no effect.
  1484. #
  1485. # For modern android devices the notification content will still appear
  1486. # because it is loaded by the app. iPhone, however will send a
  1487. # notification saying only that a message arrived and who it came from.
  1488. #
  1489. push:
  1490. include_content: {{ matrix_synapse_push_include_content|to_json }}
  1491. #spam_checker:
  1492. # module: "my_custom_project.SuperSpamChecker"
  1493. # config:
  1494. # example_option: 'things'
  1495. spam_checker: {{ matrix_synapse_spam_checker|to_json }}
  1496. # Uncomment to allow non-server-admin users to create groups on this server
  1497. #
  1498. enable_group_creation: {{ matrix_synapse_enable_group_creation|to_json }}
  1499. # If enabled, non server admins can only create groups with local parts
  1500. # starting with this prefix
  1501. #
  1502. #group_creation_prefix: "unofficial/"
  1503. # User Directory configuration
  1504. #
  1505. # 'enabled' defines whether users can search the user directory. If
  1506. # false then empty responses are returned to all queries. Defaults to
  1507. # true.
  1508. #
  1509. # 'search_all_users' defines whether to search all users visible to your HS
  1510. # when searching the user directory, rather than limiting to users visible
  1511. # in public rooms. Defaults to false. If you set it True, you'll have to
  1512. # rebuild the user_directory search indexes, see
  1513. # https://github.com/matrix-org/synapse/blob/master/docs/user_directory.md
  1514. #
  1515. #user_directory:
  1516. # enabled: true
  1517. # search_all_users: false
  1518. # User Consent configuration
  1519. #
  1520. # for detailed instructions, see
  1521. # https://github.com/matrix-org/synapse/blob/master/docs/consent_tracking.md
  1522. #
  1523. # Parts of this section are required if enabling the 'consent' resource under
  1524. # 'listeners', in particular 'template_dir' and 'version'.
  1525. #
  1526. # 'template_dir' gives the location of the templates for the HTML forms.
  1527. # This directory should contain one subdirectory per language (eg, 'en', 'fr'),
  1528. # and each language directory should contain the policy document (named as
  1529. # '<version>.html') and a success page (success.html).
  1530. #
  1531. # 'version' specifies the 'current' version of the policy document. It defines
  1532. # the version to be served by the consent resource if there is no 'v'
  1533. # parameter.
  1534. #
  1535. # 'server_notice_content', if enabled, will send a user a "Server Notice"
  1536. # asking them to consent to the privacy policy. The 'server_notices' section
  1537. # must also be configured for this to work. Notices will *not* be sent to
  1538. # guest users unless 'send_server_notice_to_guests' is set to true.
  1539. #
  1540. # 'block_events_error', if set, will block any attempts to send events
  1541. # until the user consents to the privacy policy. The value of the setting is
  1542. # used as the text of the error.
  1543. #
  1544. # 'require_at_registration', if enabled, will add a step to the registration
  1545. # process, similar to how captcha works. Users will be required to accept the
  1546. # policy before their account is created.
  1547. #
  1548. # 'policy_name' is the display name of the policy users will see when registering
  1549. # for an account. Has no effect unless `require_at_registration` is enabled.
  1550. # Defaults to "Privacy Policy".
  1551. #
  1552. #user_consent:
  1553. # template_dir: res/templates/privacy
  1554. # version: 1.0
  1555. # server_notice_content:
  1556. # msgtype: m.text
  1557. # body: >-
  1558. # To continue using this homeserver you must review and agree to the
  1559. # terms and conditions at %(consent_uri)s
  1560. # send_server_notice_to_guests: True
  1561. # block_events_error: >-
  1562. # To continue using this homeserver you must review and agree to the
  1563. # terms and conditions at %(consent_uri)s
  1564. # require_at_registration: False
  1565. # policy_name: Privacy Policy
  1566. #
  1567. # Local statistics collection. Used in populating the room directory.
  1568. #
  1569. # 'bucket_size' controls how large each statistics timeslice is. It can
  1570. # be defined in a human readable short form -- e.g. "1d", "1y".
  1571. #
  1572. # 'retention' controls how long historical statistics will be kept for.
  1573. # It can be defined in a human readable short form -- e.g. "1d", "1y".
  1574. #
  1575. #
  1576. #stats:
  1577. # enabled: true
  1578. # bucket_size: 1d
  1579. # retention: 1y
  1580. # Server Notices room configuration
  1581. #
  1582. # Uncomment this section to enable a room which can be used to send notices
  1583. # from the server to users. It is a special room which cannot be left; notices
  1584. # come from a special "notices" user id.
  1585. #
  1586. # If you uncomment this section, you *must* define the system_mxid_localpart
  1587. # setting, which defines the id of the user which will be used to send the
  1588. # notices.
  1589. #
  1590. # It's also possible to override the room name, the display name of the
  1591. # "notices" user, and the avatar for the user.
  1592. #
  1593. #server_notices:
  1594. # system_mxid_localpart: notices
  1595. # system_mxid_display_name: "Server Notices"
  1596. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  1597. # room_name: "Server Notices"
  1598. # Uncomment to disable searching the public room list. When disabled
  1599. # blocks searching local and remote room lists for local and remote
  1600. # users by always returning an empty list for all queries.
  1601. #
  1602. #enable_room_list_search: false
  1603. enable_room_list_search: {{ matrix_synapse_enable_room_list_search|to_json }}
  1604. # The `alias_creation` option controls who's allowed to create aliases
  1605. # on this server.
  1606. #
  1607. # The format of this option is a list of rules that contain globs that
  1608. # match against user_id, room_id and the new alias (fully qualified with
  1609. # server name). The action in the first rule that matches is taken,
  1610. # which can currently either be "allow" or "deny".
  1611. #
  1612. # Missing user_id/room_id/alias fields default to "*".
  1613. #
  1614. # If no rules match the request is denied. An empty list means no one
  1615. # can create aliases.
  1616. #
  1617. # Options for the rules include:
  1618. #
  1619. # user_id: Matches against the creator of the alias
  1620. # alias: Matches against the alias being created
  1621. # room_id: Matches against the room ID the alias is being pointed at
  1622. # action: Whether to "allow" or "deny" the request if the rule matches
  1623. #
  1624. # The default is:
  1625. #
  1626. #alias_creation_rules:
  1627. # - user_id: "*"
  1628. # alias: "*"
  1629. # room_id: "*"
  1630. # action: allow
  1631. alias_creation_rules: {{ matrix_synapse_alias_creation_rules|to_json }}
  1632. # The `room_list_publication_rules` option controls who can publish and
  1633. # which rooms can be published in the public room list.
  1634. #
  1635. # The format of this option is the same as that for
  1636. # `alias_creation_rules`.
  1637. #
  1638. # If the room has one or more aliases associated with it, only one of
  1639. # the aliases needs to match the alias rule. If there are no aliases
  1640. # then only rules with `alias: *` match.
  1641. #
  1642. # If no rules match the request is denied. An empty list means no one
  1643. # can publish rooms.
  1644. #
  1645. # Options for the rules include:
  1646. #
  1647. # user_id: Matches agaisnt the creator of the alias
  1648. # room_id: Matches against the room ID being published
  1649. # alias: Matches against any current local or canonical aliases
  1650. # associated with the room
  1651. # action: Whether to "allow" or "deny" the request if the rule matches
  1652. #
  1653. # The default is:
  1654. #
  1655. #room_list_publication_rules:
  1656. # - user_id: "*"
  1657. # alias: "*"
  1658. # room_id: "*"
  1659. # action: allow
  1660. room_list_publication_rules: {{ matrix_synapse_room_list_publication_rules|to_json }}
  1661. # Server admins can define a Python module that implements extra rules for
  1662. # allowing or denying incoming events. In order to work, this module needs to
  1663. # override the methods defined in synapse/events/third_party_rules.py.
  1664. #
  1665. # This feature is designed to be used in closed federations only, where each
  1666. # participating server enforces the same rules.
  1667. #
  1668. #third_party_event_rules:
  1669. # module: "my_custom_project.SuperRulesSet"
  1670. # config:
  1671. # example_option: 'things'
  1672. ## Opentracing ##
  1673. # These settings enable opentracing, which implements distributed tracing.
  1674. # This allows you to observe the causal chains of events across servers
  1675. # including requests, key lookups etc., across any server running
  1676. # synapse or any other other services which supports opentracing
  1677. # (specifically those implemented with Jaeger).
  1678. #
  1679. opentracing:
  1680. # tracing is disabled by default. Uncomment the following line to enable it.
  1681. #
  1682. #enabled: true
  1683. # The list of homeservers we wish to send and receive span contexts and span baggage.
  1684. # See docs/opentracing.rst
  1685. # This is a list of regexes which are matched against the server_name of the
  1686. # homeserver.
  1687. #
  1688. # By defult, it is empty, so no servers are matched.
  1689. #
  1690. #homeserver_whitelist:
  1691. # - ".*"
  1692. # Jaeger can be configured to sample traces at different rates.
  1693. # All configuration options provided by Jaeger can be set here.
  1694. # Jaeger's configuration mostly related to trace sampling which
  1695. # is documented here:
  1696. # https://www.jaegertracing.io/docs/1.13/sampling/.
  1697. #
  1698. #jaeger_config:
  1699. # sampler:
  1700. # type: const
  1701. # param: 1
  1702. # Logging whether spans were started and reported
  1703. #
  1704. # logging:
  1705. # false
  1706. # vim:ft=yaml