sample_config.yaml 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546
  1. # The config is maintained as an up-to-date snapshot of the default
  2. # homeserver.yaml configuration generated by Synapse.
  3. #
  4. # It is intended to act as a reference for the default configuration,
  5. # helping admins keep track of new options and other changes, and compare
  6. # their configs with the current default. As such, many of the actual
  7. # config values shown are placeholders.
  8. #
  9. # It is *not* intended to be copied and used as the basis for a real
  10. # homeserver.yaml. Instead, if you are starting from scratch, please generate
  11. # a fresh config using Synapse by following the instructions in INSTALL.md.
  12. ## Server ##
  13. # The domain name of the server, with optional explicit port.
  14. # This is used by remote servers to connect to this server,
  15. # e.g. matrix.org, localhost:8080, etc.
  16. # This is also the last part of your UserID.
  17. #
  18. server_name: "SERVERNAME"
  19. # When running as a daemon, the file to store the pid in
  20. #
  21. pid_file: DATADIR/homeserver.pid
  22. # The path to the web client which will be served at /_matrix/client/
  23. # if 'webclient' is configured under the 'listeners' configuration.
  24. #
  25. #web_client_location: "/path/to/web/root"
  26. # The public-facing base URL that clients use to access this HS
  27. # (not including _matrix/...). This is the same URL a user would
  28. # enter into the 'custom HS URL' field on their client. If you
  29. # use synapse with a reverse proxy, this should be the URL to reach
  30. # synapse via the proxy.
  31. #
  32. #public_baseurl: https://example.com/
  33. # Set the soft limit on the number of file descriptors synapse can use
  34. # Zero is used to indicate synapse should set the soft limit to the
  35. # hard limit.
  36. #
  37. #soft_file_limit: 0
  38. # Set to false to disable presence tracking on this homeserver.
  39. #
  40. #use_presence: false
  41. # Whether to require authentication to retrieve profile data (avatars,
  42. # display names) of other users through the client API. Defaults to
  43. # 'false'. Note that profile data is also available via the federation
  44. # API, so this setting is of limited value if federation is enabled on
  45. # the server.
  46. #
  47. #require_auth_for_profile_requests: true
  48. # If set to 'false', requires authentication to access the server's public rooms
  49. # directory through the client API. Defaults to 'true'.
  50. #
  51. #allow_public_rooms_without_auth: false
  52. # If set to 'false', forbids any other homeserver to fetch the server's public
  53. # rooms directory via federation. Defaults to 'true'.
  54. #
  55. #allow_public_rooms_over_federation: false
  56. # The default room version for newly created rooms.
  57. #
  58. # Known room versions are listed here:
  59. # https://matrix.org/docs/spec/#complete-list-of-room-versions
  60. #
  61. # For example, for room version 1, default_room_version should be set
  62. # to "1".
  63. #
  64. #default_room_version: "4"
  65. # The GC threshold parameters to pass to `gc.set_threshold`, if defined
  66. #
  67. #gc_thresholds: [700, 10, 10]
  68. # Set the limit on the returned events in the timeline in the get
  69. # and sync operations. The default value is -1, means no upper limit.
  70. #
  71. #filter_timeline_limit: 5000
  72. # Whether room invites to users on this server should be blocked
  73. # (except those sent by local server admins). The default is False.
  74. #
  75. #block_non_admin_invites: True
  76. # Room searching
  77. #
  78. # If disabled, new messages will not be indexed for searching and users
  79. # will receive errors when searching for messages. Defaults to enabled.
  80. #
  81. #enable_search: false
  82. # Restrict federation to the following whitelist of domains.
  83. # N.B. we recommend also firewalling your federation listener to limit
  84. # inbound federation traffic as early as possible, rather than relying
  85. # purely on this application-layer restriction. If not specified, the
  86. # default is to whitelist everything.
  87. #
  88. #federation_domain_whitelist:
  89. # - lon.example.com
  90. # - nyc.example.com
  91. # - syd.example.com
  92. # Prevent federation requests from being sent to the following
  93. # blacklist IP address CIDR ranges. If this option is not specified, or
  94. # specified with an empty list, no ip range blacklist will be enforced.
  95. #
  96. # (0.0.0.0 and :: are always blacklisted, whether or not they are explicitly
  97. # listed here, since they correspond to unroutable addresses.)
  98. #
  99. federation_ip_range_blacklist:
  100. - '127.0.0.0/8'
  101. - '10.0.0.0/8'
  102. - '172.16.0.0/12'
  103. - '192.168.0.0/16'
  104. - '100.64.0.0/10'
  105. - '169.254.0.0/16'
  106. - '::1/128'
  107. - 'fe80::/64'
  108. - 'fc00::/7'
  109. # List of ports that Synapse should listen on, their purpose and their
  110. # configuration.
  111. #
  112. # Options for each listener include:
  113. #
  114. # port: the TCP port to bind to
  115. #
  116. # bind_addresses: a list of local addresses to listen on. The default is
  117. # 'all local interfaces'.
  118. #
  119. # type: the type of listener. Normally 'http', but other valid options are:
  120. # 'manhole' (see docs/manhole.md),
  121. # 'metrics' (see docs/metrics-howto.rst),
  122. # 'replication' (see docs/workers.rst).
  123. #
  124. # tls: set to true to enable TLS for this listener. Will use the TLS
  125. # key/cert specified in tls_private_key_path / tls_certificate_path.
  126. #
  127. # x_forwarded: Only valid for an 'http' listener. Set to true to use the
  128. # X-Forwarded-For header as the client IP. Useful when Synapse is
  129. # behind a reverse-proxy.
  130. #
  131. # resources: Only valid for an 'http' listener. A list of resources to host
  132. # on this port. Options for each resource are:
  133. #
  134. # names: a list of names of HTTP resources. See below for a list of
  135. # valid resource names.
  136. #
  137. # compress: set to true to enable HTTP comression for this resource.
  138. #
  139. # additional_resources: Only valid for an 'http' listener. A map of
  140. # additional endpoints which should be loaded via dynamic modules.
  141. #
  142. # Valid resource names are:
  143. #
  144. # client: the client-server API (/_matrix/client), and the synapse admin
  145. # API (/_synapse/admin). Also implies 'media' and 'static'.
  146. #
  147. # consent: user consent forms (/_matrix/consent). See
  148. # docs/consent_tracking.md.
  149. #
  150. # federation: the server-server API (/_matrix/federation). Also implies
  151. # 'media', 'keys', 'openid'
  152. #
  153. # keys: the key discovery API (/_matrix/keys).
  154. #
  155. # media: the media API (/_matrix/media).
  156. #
  157. # metrics: the metrics interface. See docs/metrics-howto.rst.
  158. #
  159. # openid: OpenID authentication.
  160. #
  161. # replication: the HTTP replication API (/_synapse/replication). See
  162. # docs/workers.rst.
  163. #
  164. # static: static resources under synapse/static (/_matrix/static). (Mostly
  165. # useful for 'fallback authentication'.)
  166. #
  167. # webclient: A web client. Requires web_client_location to be set.
  168. #
  169. listeners:
  170. # TLS-enabled listener: for when matrix traffic is sent directly to synapse.
  171. #
  172. # Disabled by default. To enable it, uncomment the following. (Note that you
  173. # will also need to give Synapse a TLS key and certificate: see the TLS section
  174. # below.)
  175. #
  176. #- port: 8448
  177. # type: http
  178. # tls: true
  179. # resources:
  180. # - names: [client, federation]
  181. # Unsecure HTTP listener: for when matrix traffic passes through a reverse proxy
  182. # that unwraps TLS.
  183. #
  184. # If you plan to use a reverse proxy, please see
  185. # https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.rst.
  186. #
  187. - port: 8008
  188. tls: false
  189. type: http
  190. x_forwarded: true
  191. bind_addresses: ['::1', '127.0.0.1']
  192. resources:
  193. - names: [client, federation]
  194. compress: false
  195. # example additional_resources:
  196. #
  197. #additional_resources:
  198. # "/_matrix/my/custom/endpoint":
  199. # module: my_module.CustomRequestHandler
  200. # config: {}
  201. # Turn on the twisted ssh manhole service on localhost on the given
  202. # port.
  203. #
  204. #- port: 9000
  205. # bind_addresses: ['::1', '127.0.0.1']
  206. # type: manhole
  207. ## Homeserver blocking ##
  208. # How to reach the server admin, used in ResourceLimitError
  209. #
  210. #admin_contact: 'mailto:admin@server.com'
  211. # Global blocking
  212. #
  213. #hs_disabled: False
  214. #hs_disabled_message: 'Human readable reason for why the HS is blocked'
  215. #hs_disabled_limit_type: 'error code(str), to help clients decode reason'
  216. # Monthly Active User Blocking
  217. #
  218. # Used in cases where the admin or server owner wants to limit to the
  219. # number of monthly active users.
  220. #
  221. # 'limit_usage_by_mau' disables/enables monthly active user blocking. When
  222. # anabled and a limit is reached the server returns a 'ResourceLimitError'
  223. # with error type Codes.RESOURCE_LIMIT_EXCEEDED
  224. #
  225. # 'max_mau_value' is the hard limit of monthly active users above which
  226. # the server will start blocking user actions.
  227. #
  228. # 'mau_trial_days' is a means to add a grace period for active users. It
  229. # means that users must be active for this number of days before they
  230. # can be considered active and guards against the case where lots of users
  231. # sign up in a short space of time never to return after their initial
  232. # session.
  233. #
  234. #limit_usage_by_mau: False
  235. #max_mau_value: 50
  236. #mau_trial_days: 2
  237. # If enabled, the metrics for the number of monthly active users will
  238. # be populated, however no one will be limited. If limit_usage_by_mau
  239. # is true, this is implied to be true.
  240. #
  241. #mau_stats_only: False
  242. # Sometimes the server admin will want to ensure certain accounts are
  243. # never blocked by mau checking. These accounts are specified here.
  244. #
  245. #mau_limit_reserved_threepids:
  246. # - medium: 'email'
  247. # address: 'reserved_user@example.com'
  248. # Used by phonehome stats to group together related servers.
  249. #server_context: context
  250. # Resource-constrained Homeserver Settings
  251. #
  252. # If limit_remote_rooms.enabled is True, the room complexity will be
  253. # checked before a user joins a new remote room. If it is above
  254. # limit_remote_rooms.complexity, it will disallow joining or
  255. # instantly leave.
  256. #
  257. # limit_remote_rooms.complexity_error can be set to customise the text
  258. # displayed to the user when a room above the complexity threshold has
  259. # its join cancelled.
  260. #
  261. # Uncomment the below lines to enable:
  262. #limit_remote_rooms:
  263. # enabled: True
  264. # complexity: 1.0
  265. # complexity_error: "This room is too complex."
  266. # Whether to require a user to be in the room to add an alias to it.
  267. # Defaults to 'true'.
  268. #
  269. #require_membership_for_aliases: false
  270. # Whether to allow per-room membership profiles through the send of membership
  271. # events with profile information that differ from the target's global profile.
  272. # Defaults to 'true'.
  273. #
  274. #allow_per_room_profiles: false
  275. # How long to keep redacted events in unredacted form in the database. After
  276. # this period redacted events get replaced with their redacted form in the DB.
  277. #
  278. # Defaults to `7d`. Set to `null` to disable.
  279. #
  280. redaction_retention_period: 7d
  281. ## TLS ##
  282. # PEM-encoded X509 certificate for TLS.
  283. # This certificate, as of Synapse 1.0, will need to be a valid and verifiable
  284. # certificate, signed by a recognised Certificate Authority.
  285. #
  286. # See 'ACME support' below to enable auto-provisioning this certificate via
  287. # Let's Encrypt.
  288. #
  289. # If supplying your own, be sure to use a `.pem` file that includes the
  290. # full certificate chain including any intermediate certificates (for
  291. # instance, if using certbot, use `fullchain.pem` as your certificate,
  292. # not `cert.pem`).
  293. #
  294. #tls_certificate_path: "CONFDIR/SERVERNAME.tls.crt"
  295. # PEM-encoded private key for TLS
  296. #
  297. #tls_private_key_path: "CONFDIR/SERVERNAME.tls.key"
  298. # Whether to verify TLS server certificates for outbound federation requests.
  299. #
  300. # Defaults to `true`. To disable certificate verification, uncomment the
  301. # following line.
  302. #
  303. #federation_verify_certificates: false
  304. # The minimum TLS version that will be used for outbound federation requests.
  305. #
  306. # Defaults to `1`. Configurable to `1`, `1.1`, `1.2`, or `1.3`. Note
  307. # that setting this value higher than `1.2` will prevent federation to most
  308. # of the public Matrix network: only configure it to `1.3` if you have an
  309. # entirely private federation setup and you can ensure TLS 1.3 support.
  310. #
  311. #federation_client_minimum_tls_version: 1.2
  312. # Skip federation certificate verification on the following whitelist
  313. # of domains.
  314. #
  315. # This setting should only be used in very specific cases, such as
  316. # federation over Tor hidden services and similar. For private networks
  317. # of homeservers, you likely want to use a private CA instead.
  318. #
  319. # Only effective if federation_verify_certicates is `true`.
  320. #
  321. #federation_certificate_verification_whitelist:
  322. # - lon.example.com
  323. # - *.domain.com
  324. # - *.onion
  325. # List of custom certificate authorities for federation traffic.
  326. #
  327. # This setting should only normally be used within a private network of
  328. # homeservers.
  329. #
  330. # Note that this list will replace those that are provided by your
  331. # operating environment. Certificates must be in PEM format.
  332. #
  333. #federation_custom_ca_list:
  334. # - myCA1.pem
  335. # - myCA2.pem
  336. # - myCA3.pem
  337. # ACME support: This will configure Synapse to request a valid TLS certificate
  338. # for your configured `server_name` via Let's Encrypt.
  339. #
  340. # Note that provisioning a certificate in this way requires port 80 to be
  341. # routed to Synapse so that it can complete the http-01 ACME challenge.
  342. # By default, if you enable ACME support, Synapse will attempt to listen on
  343. # port 80 for incoming http-01 challenges - however, this will likely fail
  344. # with 'Permission denied' or a similar error.
  345. #
  346. # There are a couple of potential solutions to this:
  347. #
  348. # * If you already have an Apache, Nginx, or similar listening on port 80,
  349. # you can configure Synapse to use an alternate port, and have your web
  350. # server forward the requests. For example, assuming you set 'port: 8009'
  351. # below, on Apache, you would write:
  352. #
  353. # ProxyPass /.well-known/acme-challenge http://localhost:8009/.well-known/acme-challenge
  354. #
  355. # * Alternatively, you can use something like `authbind` to give Synapse
  356. # permission to listen on port 80.
  357. #
  358. acme:
  359. # ACME support is disabled by default. Set this to `true` and uncomment
  360. # tls_certificate_path and tls_private_key_path above to enable it.
  361. #
  362. enabled: False
  363. # Endpoint to use to request certificates. If you only want to test,
  364. # use Let's Encrypt's staging url:
  365. # https://acme-staging.api.letsencrypt.org/directory
  366. #
  367. #url: https://acme-v01.api.letsencrypt.org/directory
  368. # Port number to listen on for the HTTP-01 challenge. Change this if
  369. # you are forwarding connections through Apache/Nginx/etc.
  370. #
  371. port: 80
  372. # Local addresses to listen on for incoming connections.
  373. # Again, you may want to change this if you are forwarding connections
  374. # through Apache/Nginx/etc.
  375. #
  376. bind_addresses: ['::', '0.0.0.0']
  377. # How many days remaining on a certificate before it is renewed.
  378. #
  379. reprovision_threshold: 30
  380. # The domain that the certificate should be for. Normally this
  381. # should be the same as your Matrix domain (i.e., 'server_name'), but,
  382. # by putting a file at 'https://<server_name>/.well-known/matrix/server',
  383. # you can delegate incoming traffic to another server. If you do that,
  384. # you should give the target of the delegation here.
  385. #
  386. # For example: if your 'server_name' is 'example.com', but
  387. # 'https://example.com/.well-known/matrix/server' delegates to
  388. # 'matrix.example.com', you should put 'matrix.example.com' here.
  389. #
  390. # If not set, defaults to your 'server_name'.
  391. #
  392. domain: matrix.example.com
  393. # file to use for the account key. This will be generated if it doesn't
  394. # exist.
  395. #
  396. # If unspecified, we will use CONFDIR/client.key.
  397. #
  398. account_key_file: DATADIR/acme_account.key
  399. # List of allowed TLS fingerprints for this server to publish along
  400. # with the signing keys for this server. Other matrix servers that
  401. # make HTTPS requests to this server will check that the TLS
  402. # certificates returned by this server match one of the fingerprints.
  403. #
  404. # Synapse automatically adds the fingerprint of its own certificate
  405. # to the list. So if federation traffic is handled directly by synapse
  406. # then no modification to the list is required.
  407. #
  408. # If synapse is run behind a load balancer that handles the TLS then it
  409. # will be necessary to add the fingerprints of the certificates used by
  410. # the loadbalancers to this list if they are different to the one
  411. # synapse is using.
  412. #
  413. # Homeservers are permitted to cache the list of TLS fingerprints
  414. # returned in the key responses up to the "valid_until_ts" returned in
  415. # key. It may be necessary to publish the fingerprints of a new
  416. # certificate and wait until the "valid_until_ts" of the previous key
  417. # responses have passed before deploying it.
  418. #
  419. # You can calculate a fingerprint from a given TLS listener via:
  420. # openssl s_client -connect $host:$port < /dev/null 2> /dev/null |
  421. # openssl x509 -outform DER | openssl sha256 -binary | base64 | tr -d '='
  422. # or by checking matrix.org/federationtester/api/report?server_name=$host
  423. #
  424. #tls_fingerprints: [{"sha256": "<base64_encoded_sha256_fingerprint>"}]
  425. ## Database ##
  426. database:
  427. # The database engine name
  428. name: "sqlite3"
  429. # Arguments to pass to the engine
  430. args:
  431. # Path to the database
  432. database: "DATADIR/homeserver.db"
  433. # Number of events to cache in memory.
  434. #
  435. #event_cache_size: 10K
  436. ## Logging ##
  437. # A yaml python logging config file as described by
  438. # https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema
  439. #
  440. log_config: "CONFDIR/SERVERNAME.log.config"
  441. ## Ratelimiting ##
  442. # Ratelimiting settings for client actions (registration, login, messaging).
  443. #
  444. # Each ratelimiting configuration is made of two parameters:
  445. # - per_second: number of requests a client can send per second.
  446. # - burst_count: number of requests a client can send before being throttled.
  447. #
  448. # Synapse currently uses the following configurations:
  449. # - one for messages that ratelimits sending based on the account the client
  450. # is using
  451. # - one for registration that ratelimits registration requests based on the
  452. # client's IP address.
  453. # - one for login that ratelimits login requests based on the client's IP
  454. # address.
  455. # - one for login that ratelimits login requests based on the account the
  456. # client is attempting to log into.
  457. # - one for login that ratelimits login requests based on the account the
  458. # client is attempting to log into, based on the amount of failed login
  459. # attempts for this account.
  460. # - one for ratelimiting redactions by room admins. If this is not explicitly
  461. # set then it uses the same ratelimiting as per rc_message. This is useful
  462. # to allow room admins to deal with abuse quickly.
  463. #
  464. # The defaults are as shown below.
  465. #
  466. #rc_message:
  467. # per_second: 0.2
  468. # burst_count: 10
  469. #
  470. #rc_registration:
  471. # per_second: 0.17
  472. # burst_count: 3
  473. #
  474. #rc_login:
  475. # address:
  476. # per_second: 0.17
  477. # burst_count: 3
  478. # account:
  479. # per_second: 0.17
  480. # burst_count: 3
  481. # failed_attempts:
  482. # per_second: 0.17
  483. # burst_count: 3
  484. #
  485. #rc_admin_redaction:
  486. # per_second: 1
  487. # burst_count: 50
  488. # Ratelimiting settings for incoming federation
  489. #
  490. # The rc_federation configuration is made up of the following settings:
  491. # - window_size: window size in milliseconds
  492. # - sleep_limit: number of federation requests from a single server in
  493. # a window before the server will delay processing the request.
  494. # - sleep_delay: duration in milliseconds to delay processing events
  495. # from remote servers by if they go over the sleep limit.
  496. # - reject_limit: maximum number of concurrent federation requests
  497. # allowed from a single server
  498. # - concurrent: number of federation requests to concurrently process
  499. # from a single server
  500. #
  501. # The defaults are as shown below.
  502. #
  503. #rc_federation:
  504. # window_size: 1000
  505. # sleep_limit: 10
  506. # sleep_delay: 500
  507. # reject_limit: 50
  508. # concurrent: 3
  509. # Target outgoing federation transaction frequency for sending read-receipts,
  510. # per-room.
  511. #
  512. # If we end up trying to send out more read-receipts, they will get buffered up
  513. # into fewer transactions.
  514. #
  515. #federation_rr_transactions_per_room_per_second: 50
  516. ## Media Store ##
  517. # Enable the media store service in the Synapse master. Uncomment the
  518. # following if you are using a separate media store worker.
  519. #
  520. #enable_media_repo: false
  521. # Directory where uploaded images and attachments are stored.
  522. #
  523. media_store_path: "DATADIR/media_store"
  524. # Media storage providers allow media to be stored in different
  525. # locations.
  526. #
  527. #media_storage_providers:
  528. # - module: file_system
  529. # # Whether to write new local files.
  530. # store_local: false
  531. # # Whether to write new remote media
  532. # store_remote: false
  533. # # Whether to block upload requests waiting for write to this
  534. # # provider to complete
  535. # store_synchronous: false
  536. # config:
  537. # directory: /mnt/some/other/directory
  538. # Directory where in-progress uploads are stored.
  539. #
  540. uploads_path: "DATADIR/uploads"
  541. # The largest allowed upload size in bytes
  542. #
  543. #max_upload_size: 10M
  544. # Maximum number of pixels that will be thumbnailed
  545. #
  546. #max_image_pixels: 32M
  547. # Whether to generate new thumbnails on the fly to precisely match
  548. # the resolution requested by the client. If true then whenever
  549. # a new resolution is requested by the client the server will
  550. # generate a new thumbnail. If false the server will pick a thumbnail
  551. # from a precalculated list.
  552. #
  553. #dynamic_thumbnails: false
  554. # List of thumbnails to precalculate when an image is uploaded.
  555. #
  556. #thumbnail_sizes:
  557. # - width: 32
  558. # height: 32
  559. # method: crop
  560. # - width: 96
  561. # height: 96
  562. # method: crop
  563. # - width: 320
  564. # height: 240
  565. # method: scale
  566. # - width: 640
  567. # height: 480
  568. # method: scale
  569. # - width: 800
  570. # height: 600
  571. # method: scale
  572. # Is the preview URL API enabled?
  573. #
  574. # 'false' by default: uncomment the following to enable it (and specify a
  575. # url_preview_ip_range_blacklist blacklist).
  576. #
  577. #url_preview_enabled: true
  578. # List of IP address CIDR ranges that the URL preview spider is denied
  579. # from accessing. There are no defaults: you must explicitly
  580. # specify a list for URL previewing to work. You should specify any
  581. # internal services in your network that you do not want synapse to try
  582. # to connect to, otherwise anyone in any Matrix room could cause your
  583. # synapse to issue arbitrary GET requests to your internal services,
  584. # causing serious security issues.
  585. #
  586. # (0.0.0.0 and :: are always blacklisted, whether or not they are explicitly
  587. # listed here, since they correspond to unroutable addresses.)
  588. #
  589. # This must be specified if url_preview_enabled is set. It is recommended that
  590. # you uncomment the following list as a starting point.
  591. #
  592. #url_preview_ip_range_blacklist:
  593. # - '127.0.0.0/8'
  594. # - '10.0.0.0/8'
  595. # - '172.16.0.0/12'
  596. # - '192.168.0.0/16'
  597. # - '100.64.0.0/10'
  598. # - '169.254.0.0/16'
  599. # - '::1/128'
  600. # - 'fe80::/64'
  601. # - 'fc00::/7'
  602. # List of IP address CIDR ranges that the URL preview spider is allowed
  603. # to access even if they are specified in url_preview_ip_range_blacklist.
  604. # This is useful for specifying exceptions to wide-ranging blacklisted
  605. # target IP ranges - e.g. for enabling URL previews for a specific private
  606. # website only visible in your network.
  607. #
  608. #url_preview_ip_range_whitelist:
  609. # - '192.168.1.1'
  610. # Optional list of URL matches that the URL preview spider is
  611. # denied from accessing. You should use url_preview_ip_range_blacklist
  612. # in preference to this, otherwise someone could define a public DNS
  613. # entry that points to a private IP address and circumvent the blacklist.
  614. # This is more useful if you know there is an entire shape of URL that
  615. # you know that will never want synapse to try to spider.
  616. #
  617. # Each list entry is a dictionary of url component attributes as returned
  618. # by urlparse.urlsplit as applied to the absolute form of the URL. See
  619. # https://docs.python.org/2/library/urlparse.html#urlparse.urlsplit
  620. # The values of the dictionary are treated as an filename match pattern
  621. # applied to that component of URLs, unless they start with a ^ in which
  622. # case they are treated as a regular expression match. If all the
  623. # specified component matches for a given list item succeed, the URL is
  624. # blacklisted.
  625. #
  626. #url_preview_url_blacklist:
  627. # # blacklist any URL with a username in its URI
  628. # - username: '*'
  629. #
  630. # # blacklist all *.google.com URLs
  631. # - netloc: 'google.com'
  632. # - netloc: '*.google.com'
  633. #
  634. # # blacklist all plain HTTP URLs
  635. # - scheme: 'http'
  636. #
  637. # # blacklist http(s)://www.acme.com/foo
  638. # - netloc: 'www.acme.com'
  639. # path: '/foo'
  640. #
  641. # # blacklist any URL with a literal IPv4 address
  642. # - netloc: '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
  643. # The largest allowed URL preview spidering size in bytes
  644. #
  645. #max_spider_size: 10M
  646. ## Captcha ##
  647. # See docs/CAPTCHA_SETUP for full details of configuring this.
  648. # This Home Server's ReCAPTCHA public key.
  649. #
  650. #recaptcha_public_key: "YOUR_PUBLIC_KEY"
  651. # This Home Server's ReCAPTCHA private key.
  652. #
  653. #recaptcha_private_key: "YOUR_PRIVATE_KEY"
  654. # Enables ReCaptcha checks when registering, preventing signup
  655. # unless a captcha is answered. Requires a valid ReCaptcha
  656. # public/private key.
  657. #
  658. #enable_registration_captcha: false
  659. # A secret key used to bypass the captcha test entirely.
  660. #
  661. #captcha_bypass_secret: "YOUR_SECRET_HERE"
  662. # The API endpoint to use for verifying m.login.recaptcha responses.
  663. #
  664. #recaptcha_siteverify_api: "https://www.recaptcha.net/recaptcha/api/siteverify"
  665. ## TURN ##
  666. # The public URIs of the TURN server to give to clients
  667. #
  668. #turn_uris: []
  669. # The shared secret used to compute passwords for the TURN server
  670. #
  671. #turn_shared_secret: "YOUR_SHARED_SECRET"
  672. # The Username and password if the TURN server needs them and
  673. # does not use a token
  674. #
  675. #turn_username: "TURNSERVER_USERNAME"
  676. #turn_password: "TURNSERVER_PASSWORD"
  677. # How long generated TURN credentials last
  678. #
  679. #turn_user_lifetime: 1h
  680. # Whether guests should be allowed to use the TURN server.
  681. # This defaults to True, otherwise VoIP will be unreliable for guests.
  682. # However, it does introduce a slight security risk as it allows users to
  683. # connect to arbitrary endpoints without having first signed up for a
  684. # valid account (e.g. by passing a CAPTCHA).
  685. #
  686. #turn_allow_guests: True
  687. ## Registration ##
  688. #
  689. # Registration can be rate-limited using the parameters in the "Ratelimiting"
  690. # section of this file.
  691. # Enable registration for new users.
  692. #
  693. #enable_registration: false
  694. # Optional account validity configuration. This allows for accounts to be denied
  695. # any request after a given period.
  696. #
  697. # ``enabled`` defines whether the account validity feature is enabled. Defaults
  698. # to False.
  699. #
  700. # ``period`` allows setting the period after which an account is valid
  701. # after its registration. When renewing the account, its validity period
  702. # will be extended by this amount of time. This parameter is required when using
  703. # the account validity feature.
  704. #
  705. # ``renew_at`` is the amount of time before an account's expiry date at which
  706. # Synapse will send an email to the account's email address with a renewal link.
  707. # This needs the ``email`` and ``public_baseurl`` configuration sections to be
  708. # filled.
  709. #
  710. # ``renew_email_subject`` is the subject of the email sent out with the renewal
  711. # link. ``%(app)s`` can be used as a placeholder for the ``app_name`` parameter
  712. # from the ``email`` section.
  713. #
  714. # Once this feature is enabled, Synapse will look for registered users without an
  715. # expiration date at startup and will add one to every account it found using the
  716. # current settings at that time.
  717. # This means that, if a validity period is set, and Synapse is restarted (it will
  718. # then derive an expiration date from the current validity period), and some time
  719. # after that the validity period changes and Synapse is restarted, the users'
  720. # expiration dates won't be updated unless their account is manually renewed. This
  721. # date will be randomly selected within a range [now + period - d ; now + period],
  722. # where d is equal to 10% of the validity period.
  723. #
  724. #account_validity:
  725. # enabled: True
  726. # period: 6w
  727. # renew_at: 1w
  728. # renew_email_subject: "Renew your %(app)s account"
  729. # # Directory in which Synapse will try to find the HTML files to serve to the
  730. # # user when trying to renew an account. Optional, defaults to
  731. # # synapse/res/templates.
  732. # template_dir: "res/templates"
  733. # # HTML to be displayed to the user after they successfully renewed their
  734. # # account. Optional.
  735. # account_renewed_html_path: "account_renewed.html"
  736. # # HTML to be displayed when the user tries to renew an account with an invalid
  737. # # renewal token. Optional.
  738. # invalid_token_html_path: "invalid_token.html"
  739. # Time that a user's session remains valid for, after they log in.
  740. #
  741. # Note that this is not currently compatible with guest logins.
  742. #
  743. # Note also that this is calculated at login time: changes are not applied
  744. # retrospectively to users who have already logged in.
  745. #
  746. # By default, this is infinite.
  747. #
  748. #session_lifetime: 24h
  749. # The user must provide all of the below types of 3PID when registering.
  750. #
  751. #registrations_require_3pid:
  752. # - email
  753. # - msisdn
  754. # Explicitly disable asking for MSISDNs from the registration
  755. # flow (overrides registrations_require_3pid if MSISDNs are set as required)
  756. #
  757. #disable_msisdn_registration: true
  758. # Mandate that users are only allowed to associate certain formats of
  759. # 3PIDs with accounts on this server.
  760. #
  761. #allowed_local_3pids:
  762. # - medium: email
  763. # pattern: '.*@matrix\.org'
  764. # - medium: email
  765. # pattern: '.*@vector\.im'
  766. # - medium: msisdn
  767. # pattern: '\+44'
  768. # Enable 3PIDs lookup requests to identity servers from this server.
  769. #
  770. #enable_3pid_lookup: true
  771. # If set, allows registration of standard or admin accounts by anyone who
  772. # has the shared secret, even if registration is otherwise disabled.
  773. #
  774. # registration_shared_secret: <PRIVATE STRING>
  775. # Set the number of bcrypt rounds used to generate password hash.
  776. # Larger numbers increase the work factor needed to generate the hash.
  777. # The default number is 12 (which equates to 2^12 rounds).
  778. # N.B. that increasing this will exponentially increase the time required
  779. # to register or login - e.g. 24 => 2^24 rounds which will take >20 mins.
  780. #
  781. #bcrypt_rounds: 12
  782. # Allows users to register as guests without a password/email/etc, and
  783. # participate in rooms hosted on this server which have been made
  784. # accessible to anonymous users.
  785. #
  786. #allow_guest_access: false
  787. # The identity server which we suggest that clients should use when users log
  788. # in on this server.
  789. #
  790. # (By default, no suggestion is made, so it is left up to the client.
  791. # This setting is ignored unless public_baseurl is also set.)
  792. #
  793. #default_identity_server: https://matrix.org
  794. # The list of identity servers trusted to verify third party
  795. # identifiers by this server.
  796. #
  797. # Also defines the ID server which will be called when an account is
  798. # deactivated (one will be picked arbitrarily).
  799. #
  800. # Note: This option is deprecated. Since v0.99.4, Synapse has tracked which identity
  801. # server a 3PID has been bound to. For 3PIDs bound before then, Synapse runs a
  802. # background migration script, informing itself that the identity server all of its
  803. # 3PIDs have been bound to is likely one of the below.
  804. #
  805. # As of Synapse v1.4.0, all other functionality of this option has been deprecated, and
  806. # it is now solely used for the purposes of the background migration script, and can be
  807. # removed once it has run.
  808. #trusted_third_party_id_servers:
  809. # - matrix.org
  810. # - vector.im
  811. # Handle threepid (email/phone etc) registration and password resets through a set of
  812. # *trusted* identity servers. Note that this allows the configured identity server to
  813. # reset passwords for accounts!
  814. #
  815. # Be aware that if `email` is not set, and SMTP options have not been
  816. # configured in the email config block, registration and user password resets via
  817. # email will be globally disabled.
  818. #
  819. # Additionally, if `msisdn` is not set, registration and password resets via msisdn
  820. # will be disabled regardless. This is due to Synapse currently not supporting any
  821. # method of sending SMS messages on its own.
  822. #
  823. # To enable using an identity server for operations regarding a particular third-party
  824. # identifier type, set the value to the URL of that identity server as shown in the
  825. # examples below.
  826. #
  827. # Servers handling the these requests must answer the `/requestToken` endpoints defined
  828. # by the Matrix Identity Service API specification:
  829. # https://matrix.org/docs/spec/identity_service/latest
  830. #
  831. account_threepid_delegates:
  832. #email: https://example.com # Delegate email sending to example.org
  833. #msisdn: http://localhost:8090 # Delegate SMS sending to this local process
  834. # Users who register on this homeserver will automatically be joined
  835. # to these rooms
  836. #
  837. #auto_join_rooms:
  838. # - "#example:example.com"
  839. # Where auto_join_rooms are specified, setting this flag ensures that the
  840. # the rooms exist by creating them when the first user on the
  841. # homeserver registers.
  842. # Setting to false means that if the rooms are not manually created,
  843. # users cannot be auto-joined since they do not exist.
  844. #
  845. #autocreate_auto_join_rooms: true
  846. ## Metrics ###
  847. # Enable collection and rendering of performance metrics
  848. #
  849. #enable_metrics: False
  850. # Enable sentry integration
  851. # NOTE: While attempts are made to ensure that the logs don't contain
  852. # any sensitive information, this cannot be guaranteed. By enabling
  853. # this option the sentry server may therefore receive sensitive
  854. # information, and it in turn may then diseminate sensitive information
  855. # through insecure notification channels if so configured.
  856. #
  857. #sentry:
  858. # dsn: "..."
  859. # Flags to enable Prometheus metrics which are not suitable to be
  860. # enabled by default, either for performance reasons or limited use.
  861. #
  862. metrics_flags:
  863. # Publish synapse_federation_known_servers, a g auge of the number of
  864. # servers this homeserver knows about, including itself. May cause
  865. # performance problems on large homeservers.
  866. #
  867. #known_servers: true
  868. # Whether or not to report anonymized homeserver usage statistics.
  869. # report_stats: true|false
  870. # The endpoint to report the anonymized homeserver usage statistics to.
  871. # Defaults to https://matrix.org/report-usage-stats/push
  872. #
  873. #report_stats_endpoint: https://example.com/report-usage-stats/push
  874. ## API Configuration ##
  875. # A list of event types that will be included in the room_invite_state
  876. #
  877. #room_invite_state_types:
  878. # - "m.room.join_rules"
  879. # - "m.room.canonical_alias"
  880. # - "m.room.avatar"
  881. # - "m.room.encryption"
  882. # - "m.room.name"
  883. # A list of application service config files to use
  884. #
  885. #app_service_config_files:
  886. # - app_service_1.yaml
  887. # - app_service_2.yaml
  888. # Uncomment to enable tracking of application service IP addresses. Implicitly
  889. # enables MAU tracking for application service users.
  890. #
  891. #track_appservice_user_ips: True
  892. # a secret which is used to sign access tokens. If none is specified,
  893. # the registration_shared_secret is used, if one is given; otherwise,
  894. # a secret key is derived from the signing key.
  895. #
  896. # macaroon_secret_key: <PRIVATE STRING>
  897. # a secret which is used to calculate HMACs for form values, to stop
  898. # falsification of values. Must be specified for the User Consent
  899. # forms to work.
  900. #
  901. # form_secret: <PRIVATE STRING>
  902. ## Signing Keys ##
  903. # Path to the signing key to sign messages with
  904. #
  905. signing_key_path: "CONFDIR/SERVERNAME.signing.key"
  906. # The keys that the server used to sign messages with but won't use
  907. # to sign new messages. E.g. it has lost its private key
  908. #
  909. #old_signing_keys:
  910. # "ed25519:auto":
  911. # # Base64 encoded public key
  912. # key: "The public part of your old signing key."
  913. # # Millisecond POSIX timestamp when the key expired.
  914. # expired_ts: 123456789123
  915. # How long key response published by this server is valid for.
  916. # Used to set the valid_until_ts in /key/v2 APIs.
  917. # Determines how quickly servers will query to check which keys
  918. # are still valid.
  919. #
  920. #key_refresh_interval: 1d
  921. # The trusted servers to download signing keys from.
  922. #
  923. # When we need to fetch a signing key, each server is tried in parallel.
  924. #
  925. # Normally, the connection to the key server is validated via TLS certificates.
  926. # Additional security can be provided by configuring a `verify key`, which
  927. # will make synapse check that the response is signed by that key.
  928. #
  929. # This setting supercedes an older setting named `perspectives`. The old format
  930. # is still supported for backwards-compatibility, but it is deprecated.
  931. #
  932. # Options for each entry in the list include:
  933. #
  934. # server_name: the name of the server. required.
  935. #
  936. # verify_keys: an optional map from key id to base64-encoded public key.
  937. # If specified, we will check that the response is signed by at least
  938. # one of the given keys.
  939. #
  940. # accept_keys_insecurely: a boolean. Normally, if `verify_keys` is unset,
  941. # and federation_verify_certificates is not `true`, synapse will refuse
  942. # to start, because this would allow anyone who can spoof DNS responses
  943. # to masquerade as the trusted key server. If you know what you are doing
  944. # and are sure that your network environment provides a secure connection
  945. # to the key server, you can set this to `true` to override this
  946. # behaviour.
  947. #
  948. # An example configuration might look like:
  949. #
  950. #trusted_key_servers:
  951. # - server_name: "my_trusted_server.example.com"
  952. # verify_keys:
  953. # "ed25519:auto": "abcdefghijklmnopqrstuvwxyzabcdefghijklmopqr"
  954. # - server_name: "my_other_trusted_server.example.com"
  955. #
  956. # The default configuration is:
  957. #
  958. #trusted_key_servers:
  959. # - server_name: "matrix.org"
  960. #
  961. # The signing keys to use when acting as a trusted key server. If not specified
  962. # defaults to the server signing key.
  963. #
  964. # Can contain multiple keys, one per line.
  965. #
  966. #key_server_signing_keys_path: "key_server_signing_keys.key"
  967. # Enable SAML2 for registration and login. Uses pysaml2.
  968. #
  969. # `sp_config` is the configuration for the pysaml2 Service Provider.
  970. # See pysaml2 docs for format of config.
  971. #
  972. # Default values will be used for the 'entityid' and 'service' settings,
  973. # so it is not normally necessary to specify them unless you need to
  974. # override them.
  975. #
  976. # Once SAML support is enabled, a metadata file will be exposed at
  977. # https://<server>:<port>/_matrix/saml2/metadata.xml, which you may be able to
  978. # use to configure your SAML IdP with. Alternatively, you can manually configure
  979. # the IdP to use an ACS location of
  980. # https://<server>:<port>/_matrix/saml2/authn_response.
  981. #
  982. #saml2_config:
  983. # sp_config:
  984. # # point this to the IdP's metadata. You can use either a local file or
  985. # # (preferably) a URL.
  986. # metadata:
  987. # #local: ["saml2/idp.xml"]
  988. # remote:
  989. # - url: https://our_idp/metadata.xml
  990. #
  991. # # By default, the user has to go to our login page first. If you'd like to
  992. # # allow IdP-initiated login, set 'allow_unsolicited: True' in a
  993. # # 'service.sp' section:
  994. # #
  995. # #service:
  996. # # sp:
  997. # # allow_unsolicited: True
  998. #
  999. # # The examples below are just used to generate our metadata xml, and you
  1000. # # may well not need it, depending on your setup. Alternatively you
  1001. # # may need a whole lot more detail - see the pysaml2 docs!
  1002. #
  1003. # description: ["My awesome SP", "en"]
  1004. # name: ["Test SP", "en"]
  1005. #
  1006. # organization:
  1007. # name: Example com
  1008. # display_name:
  1009. # - ["Example co", "en"]
  1010. # url: "http://example.com"
  1011. #
  1012. # contact_person:
  1013. # - given_name: Bob
  1014. # sur_name: "the Sysadmin"
  1015. # email_address": ["admin@example.com"]
  1016. # contact_type": technical
  1017. #
  1018. # # Instead of putting the config inline as above, you can specify a
  1019. # # separate pysaml2 configuration file:
  1020. # #
  1021. # config_path: "CONFDIR/sp_conf.py"
  1022. #
  1023. # # the lifetime of a SAML session. This defines how long a user has to
  1024. # # complete the authentication process, if allow_unsolicited is unset.
  1025. # # The default is 5 minutes.
  1026. # #
  1027. # # saml_session_lifetime: 5m
  1028. # Enable CAS for registration and login.
  1029. #
  1030. #cas_config:
  1031. # enabled: true
  1032. # server_url: "https://cas-server.com"
  1033. # service_url: "https://homeserver.domain.com:8448"
  1034. # #required_attributes:
  1035. # # name: value
  1036. # The JWT needs to contain a globally unique "sub" (subject) claim.
  1037. #
  1038. #jwt_config:
  1039. # enabled: true
  1040. # secret: "a secret"
  1041. # algorithm: "HS256"
  1042. password_config:
  1043. # Uncomment to disable password login
  1044. #
  1045. #enabled: false
  1046. # Uncomment to disable authentication against the local password
  1047. # database. This is ignored if `enabled` is false, and is only useful
  1048. # if you have other password_providers.
  1049. #
  1050. #localdb_enabled: false
  1051. # Uncomment and change to a secret random string for extra security.
  1052. # DO NOT CHANGE THIS AFTER INITIAL SETUP!
  1053. #
  1054. #pepper: "EVEN_MORE_SECRET"
  1055. # Enable sending emails for password resets, notification events or
  1056. # account expiry notices
  1057. #
  1058. # If your SMTP server requires authentication, the optional smtp_user &
  1059. # smtp_pass variables should be used
  1060. #
  1061. #email:
  1062. # enable_notifs: false
  1063. # smtp_host: "localhost"
  1064. # smtp_port: 25 # SSL: 465, STARTTLS: 587
  1065. # smtp_user: "exampleusername"
  1066. # smtp_pass: "examplepassword"
  1067. # require_transport_security: False
  1068. # notif_from: "Your Friendly %(app)s Home Server <noreply@example.com>"
  1069. # app_name: Matrix
  1070. #
  1071. # # Enable email notifications by default
  1072. # #
  1073. # notif_for_new_users: True
  1074. #
  1075. # # Defining a custom URL for Riot is only needed if email notifications
  1076. # # should contain links to a self-hosted installation of Riot; when set
  1077. # # the "app_name" setting is ignored
  1078. # #
  1079. # riot_base_url: "http://localhost/riot"
  1080. #
  1081. # # Configure the time that a validation email or text message code
  1082. # # will expire after sending
  1083. # #
  1084. # # This is currently used for password resets
  1085. # #
  1086. # #validation_token_lifetime: 1h
  1087. #
  1088. # # Template directory. All template files should be stored within this
  1089. # # directory. If not set, default templates from within the Synapse
  1090. # # package will be used
  1091. # #
  1092. # # For the list of default templates, please see
  1093. # # https://github.com/matrix-org/synapse/tree/master/synapse/res/templates
  1094. # #
  1095. # #template_dir: res/templates
  1096. #
  1097. # # Templates for email notifications
  1098. # #
  1099. # notif_template_html: notif_mail.html
  1100. # notif_template_text: notif_mail.txt
  1101. #
  1102. # # Templates for account expiry notices
  1103. # #
  1104. # expiry_template_html: notice_expiry.html
  1105. # expiry_template_text: notice_expiry.txt
  1106. #
  1107. # # Templates for password reset emails sent by the homeserver
  1108. # #
  1109. # #password_reset_template_html: password_reset.html
  1110. # #password_reset_template_text: password_reset.txt
  1111. #
  1112. # # Templates for registration emails sent by the homeserver
  1113. # #
  1114. # #registration_template_html: registration.html
  1115. # #registration_template_text: registration.txt
  1116. #
  1117. # # Templates for password reset success and failure pages that a user
  1118. # # will see after attempting to reset their password
  1119. # #
  1120. # #password_reset_template_success_html: password_reset_success.html
  1121. # #password_reset_template_failure_html: password_reset_failure.html
  1122. #
  1123. # # Templates for registration success and failure pages that a user
  1124. # # will see after attempting to register using an email or phone
  1125. # #
  1126. # #registration_template_success_html: registration_success.html
  1127. # #registration_template_failure_html: registration_failure.html
  1128. #password_providers:
  1129. # - module: "ldap_auth_provider.LdapAuthProvider"
  1130. # config:
  1131. # enabled: true
  1132. # uri: "ldap://ldap.example.com:389"
  1133. # start_tls: true
  1134. # base: "ou=users,dc=example,dc=com"
  1135. # attributes:
  1136. # uid: "cn"
  1137. # mail: "email"
  1138. # name: "givenName"
  1139. # #bind_dn:
  1140. # #bind_password:
  1141. # #filter: "(objectClass=posixAccount)"
  1142. # Clients requesting push notifications can either have the body of
  1143. # the message sent in the notification poke along with other details
  1144. # like the sender, or just the event ID and room ID (`event_id_only`).
  1145. # If clients choose the former, this option controls whether the
  1146. # notification request includes the content of the event (other details
  1147. # like the sender are still included). For `event_id_only` push, it
  1148. # has no effect.
  1149. #
  1150. # For modern android devices the notification content will still appear
  1151. # because it is loaded by the app. iPhone, however will send a
  1152. # notification saying only that a message arrived and who it came from.
  1153. #
  1154. #push:
  1155. # include_content: true
  1156. #spam_checker:
  1157. # module: "my_custom_project.SuperSpamChecker"
  1158. # config:
  1159. # example_option: 'things'
  1160. # Uncomment to allow non-server-admin users to create groups on this server
  1161. #
  1162. #enable_group_creation: true
  1163. # If enabled, non server admins can only create groups with local parts
  1164. # starting with this prefix
  1165. #
  1166. #group_creation_prefix: "unofficial/"
  1167. # User Directory configuration
  1168. #
  1169. # 'enabled' defines whether users can search the user directory. If
  1170. # false then empty responses are returned to all queries. Defaults to
  1171. # true.
  1172. #
  1173. # 'search_all_users' defines whether to search all users visible to your HS
  1174. # when searching the user directory, rather than limiting to users visible
  1175. # in public rooms. Defaults to false. If you set it True, you'll have to
  1176. # rebuild the user_directory search indexes, see
  1177. # https://github.com/matrix-org/synapse/blob/master/docs/user_directory.md
  1178. #
  1179. #user_directory:
  1180. # enabled: true
  1181. # search_all_users: false
  1182. # User Consent configuration
  1183. #
  1184. # for detailed instructions, see
  1185. # https://github.com/matrix-org/synapse/blob/master/docs/consent_tracking.md
  1186. #
  1187. # Parts of this section are required if enabling the 'consent' resource under
  1188. # 'listeners', in particular 'template_dir' and 'version'.
  1189. #
  1190. # 'template_dir' gives the location of the templates for the HTML forms.
  1191. # This directory should contain one subdirectory per language (eg, 'en', 'fr'),
  1192. # and each language directory should contain the policy document (named as
  1193. # '<version>.html') and a success page (success.html).
  1194. #
  1195. # 'version' specifies the 'current' version of the policy document. It defines
  1196. # the version to be served by the consent resource if there is no 'v'
  1197. # parameter.
  1198. #
  1199. # 'server_notice_content', if enabled, will send a user a "Server Notice"
  1200. # asking them to consent to the privacy policy. The 'server_notices' section
  1201. # must also be configured for this to work. Notices will *not* be sent to
  1202. # guest users unless 'send_server_notice_to_guests' is set to true.
  1203. #
  1204. # 'block_events_error', if set, will block any attempts to send events
  1205. # until the user consents to the privacy policy. The value of the setting is
  1206. # used as the text of the error.
  1207. #
  1208. # 'require_at_registration', if enabled, will add a step to the registration
  1209. # process, similar to how captcha works. Users will be required to accept the
  1210. # policy before their account is created.
  1211. #
  1212. # 'policy_name' is the display name of the policy users will see when registering
  1213. # for an account. Has no effect unless `require_at_registration` is enabled.
  1214. # Defaults to "Privacy Policy".
  1215. #
  1216. #user_consent:
  1217. # template_dir: res/templates/privacy
  1218. # version: 1.0
  1219. # server_notice_content:
  1220. # msgtype: m.text
  1221. # body: >-
  1222. # To continue using this homeserver you must review and agree to the
  1223. # terms and conditions at %(consent_uri)s
  1224. # send_server_notice_to_guests: True
  1225. # block_events_error: >-
  1226. # To continue using this homeserver you must review and agree to the
  1227. # terms and conditions at %(consent_uri)s
  1228. # require_at_registration: False
  1229. # policy_name: Privacy Policy
  1230. #
  1231. # Local statistics collection. Used in populating the room directory.
  1232. #
  1233. # 'bucket_size' controls how large each statistics timeslice is. It can
  1234. # be defined in a human readable short form -- e.g. "1d", "1y".
  1235. #
  1236. # 'retention' controls how long historical statistics will be kept for.
  1237. # It can be defined in a human readable short form -- e.g. "1d", "1y".
  1238. #
  1239. #
  1240. #stats:
  1241. # enabled: true
  1242. # bucket_size: 1d
  1243. # retention: 1y
  1244. # Server Notices room configuration
  1245. #
  1246. # Uncomment this section to enable a room which can be used to send notices
  1247. # from the server to users. It is a special room which cannot be left; notices
  1248. # come from a special "notices" user id.
  1249. #
  1250. # If you uncomment this section, you *must* define the system_mxid_localpart
  1251. # setting, which defines the id of the user which will be used to send the
  1252. # notices.
  1253. #
  1254. # It's also possible to override the room name, the display name of the
  1255. # "notices" user, and the avatar for the user.
  1256. #
  1257. #server_notices:
  1258. # system_mxid_localpart: notices
  1259. # system_mxid_display_name: "Server Notices"
  1260. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  1261. # room_name: "Server Notices"
  1262. # Uncomment to disable searching the public room list. When disabled
  1263. # blocks searching local and remote room lists for local and remote
  1264. # users by always returning an empty list for all queries.
  1265. #
  1266. #enable_room_list_search: false
  1267. # The `alias_creation` option controls who's allowed to create aliases
  1268. # on this server.
  1269. #
  1270. # The format of this option is a list of rules that contain globs that
  1271. # match against user_id, room_id and the new alias (fully qualified with
  1272. # server name). The action in the first rule that matches is taken,
  1273. # which can currently either be "allow" or "deny".
  1274. #
  1275. # Missing user_id/room_id/alias fields default to "*".
  1276. #
  1277. # If no rules match the request is denied. An empty list means no one
  1278. # can create aliases.
  1279. #
  1280. # Options for the rules include:
  1281. #
  1282. # user_id: Matches against the creator of the alias
  1283. # alias: Matches against the alias being created
  1284. # room_id: Matches against the room ID the alias is being pointed at
  1285. # action: Whether to "allow" or "deny" the request if the rule matches
  1286. #
  1287. # The default is:
  1288. #
  1289. #alias_creation_rules:
  1290. # - user_id: "*"
  1291. # alias: "*"
  1292. # room_id: "*"
  1293. # action: allow
  1294. # The `room_list_publication_rules` option controls who can publish and
  1295. # which rooms can be published in the public room list.
  1296. #
  1297. # The format of this option is the same as that for
  1298. # `alias_creation_rules`.
  1299. #
  1300. # If the room has one or more aliases associated with it, only one of
  1301. # the aliases needs to match the alias rule. If there are no aliases
  1302. # then only rules with `alias: *` match.
  1303. #
  1304. # If no rules match the request is denied. An empty list means no one
  1305. # can publish rooms.
  1306. #
  1307. # Options for the rules include:
  1308. #
  1309. # user_id: Matches agaisnt the creator of the alias
  1310. # room_id: Matches against the room ID being published
  1311. # alias: Matches against any current local or canonical aliases
  1312. # associated with the room
  1313. # action: Whether to "allow" or "deny" the request if the rule matches
  1314. #
  1315. # The default is:
  1316. #
  1317. #room_list_publication_rules:
  1318. # - user_id: "*"
  1319. # alias: "*"
  1320. # room_id: "*"
  1321. # action: allow
  1322. # Server admins can define a Python module that implements extra rules for
  1323. # allowing or denying incoming events. In order to work, this module needs to
  1324. # override the methods defined in synapse/events/third_party_rules.py.
  1325. #
  1326. # This feature is designed to be used in closed federations only, where each
  1327. # participating server enforces the same rules.
  1328. #
  1329. #third_party_event_rules:
  1330. # module: "my_custom_project.SuperRulesSet"
  1331. # config:
  1332. # example_option: 'things'
  1333. ## Opentracing ##
  1334. # These settings enable opentracing, which implements distributed tracing.
  1335. # This allows you to observe the causal chains of events across servers
  1336. # including requests, key lookups etc., across any server running
  1337. # synapse or any other other services which supports opentracing
  1338. # (specifically those implemented with Jaeger).
  1339. #
  1340. opentracing:
  1341. # tracing is disabled by default. Uncomment the following line to enable it.
  1342. #
  1343. #enabled: true
  1344. # The list of homeservers we wish to send and receive span contexts and span baggage.
  1345. # See docs/opentracing.rst
  1346. # This is a list of regexes which are matched against the server_name of the
  1347. # homeserver.
  1348. #
  1349. # By defult, it is empty, so no servers are matched.
  1350. #
  1351. #homeserver_whitelist:
  1352. # - ".*"
  1353. # Jaeger can be configured to sample traces at different rates.
  1354. # All configuration options provided by Jaeger can be set here.
  1355. # Jaeger's configuration mostly related to trace sampling which
  1356. # is documented here:
  1357. # https://www.jaegertracing.io/docs/1.13/sampling/.
  1358. #
  1359. #jaeger_config:
  1360. # sampler:
  1361. # type: const
  1362. # param: 1
  1363. # Logging whether spans were started and reported
  1364. #
  1365. # logging:
  1366. # false