sample_config.yaml 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425
  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. bind_addresses: ['::1', '127.0.0.1']
  190. type: http
  191. x_forwarded: true
  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. # Whether to require a user to be in the room to add an alias to it.
  251. # Defaults to 'true'.
  252. #
  253. #require_membership_for_aliases: false
  254. # Whether to allow per-room membership profiles through the send of membership
  255. # events with profile information that differ from the target's global profile.
  256. # Defaults to 'true'.
  257. #
  258. #allow_per_room_profiles: false
  259. ## TLS ##
  260. # PEM-encoded X509 certificate for TLS.
  261. # This certificate, as of Synapse 1.0, will need to be a valid and verifiable
  262. # certificate, signed by a recognised Certificate Authority.
  263. #
  264. # See 'ACME support' below to enable auto-provisioning this certificate via
  265. # Let's Encrypt.
  266. #
  267. # If supplying your own, be sure to use a `.pem` file that includes the
  268. # full certificate chain including any intermediate certificates (for
  269. # instance, if using certbot, use `fullchain.pem` as your certificate,
  270. # not `cert.pem`).
  271. #
  272. #tls_certificate_path: "CONFDIR/SERVERNAME.tls.crt"
  273. # PEM-encoded private key for TLS
  274. #
  275. #tls_private_key_path: "CONFDIR/SERVERNAME.tls.key"
  276. # Whether to verify TLS server certificates for outbound federation requests.
  277. #
  278. # Defaults to `true`. To disable certificate verification, uncomment the
  279. # following line.
  280. #
  281. #federation_verify_certificates: false
  282. # The minimum TLS version that will be used for outbound federation requests.
  283. #
  284. # Defaults to `1`. Configurable to `1`, `1.1`, `1.2`, or `1.3`. Note
  285. # that setting this value higher than `1.2` will prevent federation to most
  286. # of the public Matrix network: only configure it to `1.3` if you have an
  287. # entirely private federation setup and you can ensure TLS 1.3 support.
  288. #
  289. #federation_client_minimum_tls_version: 1.2
  290. # Skip federation certificate verification on the following whitelist
  291. # of domains.
  292. #
  293. # This setting should only be used in very specific cases, such as
  294. # federation over Tor hidden services and similar. For private networks
  295. # of homeservers, you likely want to use a private CA instead.
  296. #
  297. # Only effective if federation_verify_certicates is `true`.
  298. #
  299. #federation_certificate_verification_whitelist:
  300. # - lon.example.com
  301. # - *.domain.com
  302. # - *.onion
  303. # List of custom certificate authorities for federation traffic.
  304. #
  305. # This setting should only normally be used within a private network of
  306. # homeservers.
  307. #
  308. # Note that this list will replace those that are provided by your
  309. # operating environment. Certificates must be in PEM format.
  310. #
  311. #federation_custom_ca_list:
  312. # - myCA1.pem
  313. # - myCA2.pem
  314. # - myCA3.pem
  315. # ACME support: This will configure Synapse to request a valid TLS certificate
  316. # for your configured `server_name` via Let's Encrypt.
  317. #
  318. # Note that provisioning a certificate in this way requires port 80 to be
  319. # routed to Synapse so that it can complete the http-01 ACME challenge.
  320. # By default, if you enable ACME support, Synapse will attempt to listen on
  321. # port 80 for incoming http-01 challenges - however, this will likely fail
  322. # with 'Permission denied' or a similar error.
  323. #
  324. # There are a couple of potential solutions to this:
  325. #
  326. # * If you already have an Apache, Nginx, or similar listening on port 80,
  327. # you can configure Synapse to use an alternate port, and have your web
  328. # server forward the requests. For example, assuming you set 'port: 8009'
  329. # below, on Apache, you would write:
  330. #
  331. # ProxyPass /.well-known/acme-challenge http://localhost:8009/.well-known/acme-challenge
  332. #
  333. # * Alternatively, you can use something like `authbind` to give Synapse
  334. # permission to listen on port 80.
  335. #
  336. acme:
  337. # ACME support is disabled by default. Uncomment the following line
  338. # (and tls_certificate_path and tls_private_key_path above) to enable it.
  339. #
  340. #enabled: true
  341. # Endpoint to use to request certificates. If you only want to test,
  342. # use Let's Encrypt's staging url:
  343. # https://acme-staging.api.letsencrypt.org/directory
  344. #
  345. #url: https://acme-v01.api.letsencrypt.org/directory
  346. # Port number to listen on for the HTTP-01 challenge. Change this if
  347. # you are forwarding connections through Apache/Nginx/etc.
  348. #
  349. #port: 80
  350. # Local addresses to listen on for incoming connections.
  351. # Again, you may want to change this if you are forwarding connections
  352. # through Apache/Nginx/etc.
  353. #
  354. #bind_addresses: ['::', '0.0.0.0']
  355. # How many days remaining on a certificate before it is renewed.
  356. #
  357. #reprovision_threshold: 30
  358. # The domain that the certificate should be for. Normally this
  359. # should be the same as your Matrix domain (i.e., 'server_name'), but,
  360. # by putting a file at 'https://<server_name>/.well-known/matrix/server',
  361. # you can delegate incoming traffic to another server. If you do that,
  362. # you should give the target of the delegation here.
  363. #
  364. # For example: if your 'server_name' is 'example.com', but
  365. # 'https://example.com/.well-known/matrix/server' delegates to
  366. # 'matrix.example.com', you should put 'matrix.example.com' here.
  367. #
  368. # If not set, defaults to your 'server_name'.
  369. #
  370. #domain: matrix.example.com
  371. # file to use for the account key. This will be generated if it doesn't
  372. # exist.
  373. #
  374. # If unspecified, we will use CONFDIR/client.key.
  375. #
  376. account_key_file: DATADIR/acme_account.key
  377. # List of allowed TLS fingerprints for this server to publish along
  378. # with the signing keys for this server. Other matrix servers that
  379. # make HTTPS requests to this server will check that the TLS
  380. # certificates returned by this server match one of the fingerprints.
  381. #
  382. # Synapse automatically adds the fingerprint of its own certificate
  383. # to the list. So if federation traffic is handled directly by synapse
  384. # then no modification to the list is required.
  385. #
  386. # If synapse is run behind a load balancer that handles the TLS then it
  387. # will be necessary to add the fingerprints of the certificates used by
  388. # the loadbalancers to this list if they are different to the one
  389. # synapse is using.
  390. #
  391. # Homeservers are permitted to cache the list of TLS fingerprints
  392. # returned in the key responses up to the "valid_until_ts" returned in
  393. # key. It may be necessary to publish the fingerprints of a new
  394. # certificate and wait until the "valid_until_ts" of the previous key
  395. # responses have passed before deploying it.
  396. #
  397. # You can calculate a fingerprint from a given TLS listener via:
  398. # openssl s_client -connect $host:$port < /dev/null 2> /dev/null |
  399. # openssl x509 -outform DER | openssl sha256 -binary | base64 | tr -d '='
  400. # or by checking matrix.org/federationtester/api/report?server_name=$host
  401. #
  402. #tls_fingerprints: [{"sha256": "<base64_encoded_sha256_fingerprint>"}]
  403. ## Database ##
  404. database:
  405. # The database engine name
  406. name: "sqlite3"
  407. # Arguments to pass to the engine
  408. args:
  409. # Path to the database
  410. database: "DATADIR/homeserver.db"
  411. # Number of events to cache in memory.
  412. #
  413. #event_cache_size: 10K
  414. ## Logging ##
  415. # A yaml python logging config file
  416. #
  417. log_config: "CONFDIR/SERVERNAME.log.config"
  418. ## Ratelimiting ##
  419. # Ratelimiting settings for client actions (registration, login, messaging).
  420. #
  421. # Each ratelimiting configuration is made of two parameters:
  422. # - per_second: number of requests a client can send per second.
  423. # - burst_count: number of requests a client can send before being throttled.
  424. #
  425. # Synapse currently uses the following configurations:
  426. # - one for messages that ratelimits sending based on the account the client
  427. # is using
  428. # - one for registration that ratelimits registration requests based on the
  429. # client's IP address.
  430. # - one for login that ratelimits login requests based on the client's IP
  431. # address.
  432. # - one for login that ratelimits login requests based on the account the
  433. # client is attempting to log into.
  434. # - one for login that ratelimits login requests based on the account the
  435. # client is attempting to log into, based on the amount of failed login
  436. # attempts for this account.
  437. #
  438. # The defaults are as shown below.
  439. #
  440. #rc_message:
  441. # per_second: 0.2
  442. # burst_count: 10
  443. #
  444. #rc_registration:
  445. # per_second: 0.17
  446. # burst_count: 3
  447. #
  448. #rc_login:
  449. # address:
  450. # per_second: 0.17
  451. # burst_count: 3
  452. # account:
  453. # per_second: 0.17
  454. # burst_count: 3
  455. # failed_attempts:
  456. # per_second: 0.17
  457. # burst_count: 3
  458. # Ratelimiting settings for incoming federation
  459. #
  460. # The rc_federation configuration is made up of the following settings:
  461. # - window_size: window size in milliseconds
  462. # - sleep_limit: number of federation requests from a single server in
  463. # a window before the server will delay processing the request.
  464. # - sleep_delay: duration in milliseconds to delay processing events
  465. # from remote servers by if they go over the sleep limit.
  466. # - reject_limit: maximum number of concurrent federation requests
  467. # allowed from a single server
  468. # - concurrent: number of federation requests to concurrently process
  469. # from a single server
  470. #
  471. # The defaults are as shown below.
  472. #
  473. #rc_federation:
  474. # window_size: 1000
  475. # sleep_limit: 10
  476. # sleep_delay: 500
  477. # reject_limit: 50
  478. # concurrent: 3
  479. # Target outgoing federation transaction frequency for sending read-receipts,
  480. # per-room.
  481. #
  482. # If we end up trying to send out more read-receipts, they will get buffered up
  483. # into fewer transactions.
  484. #
  485. #federation_rr_transactions_per_room_per_second: 50
  486. # Directory where uploaded images and attachments are stored.
  487. #
  488. media_store_path: "DATADIR/media_store"
  489. # Media storage providers allow media to be stored in different
  490. # locations.
  491. #
  492. #media_storage_providers:
  493. # - module: file_system
  494. # # Whether to write new local files.
  495. # store_local: false
  496. # # Whether to write new remote media
  497. # store_remote: false
  498. # # Whether to block upload requests waiting for write to this
  499. # # provider to complete
  500. # store_synchronous: false
  501. # config:
  502. # directory: /mnt/some/other/directory
  503. # Directory where in-progress uploads are stored.
  504. #
  505. uploads_path: "DATADIR/uploads"
  506. # The largest allowed upload size in bytes
  507. #
  508. #max_upload_size: 10M
  509. # Maximum number of pixels that will be thumbnailed
  510. #
  511. #max_image_pixels: 32M
  512. # Whether to generate new thumbnails on the fly to precisely match
  513. # the resolution requested by the client. If true then whenever
  514. # a new resolution is requested by the client the server will
  515. # generate a new thumbnail. If false the server will pick a thumbnail
  516. # from a precalculated list.
  517. #
  518. #dynamic_thumbnails: false
  519. # List of thumbnails to precalculate when an image is uploaded.
  520. #
  521. #thumbnail_sizes:
  522. # - width: 32
  523. # height: 32
  524. # method: crop
  525. # - width: 96
  526. # height: 96
  527. # method: crop
  528. # - width: 320
  529. # height: 240
  530. # method: scale
  531. # - width: 640
  532. # height: 480
  533. # method: scale
  534. # - width: 800
  535. # height: 600
  536. # method: scale
  537. # Is the preview URL API enabled?
  538. #
  539. # 'false' by default: uncomment the following to enable it (and specify a
  540. # url_preview_ip_range_blacklist blacklist).
  541. #
  542. #url_preview_enabled: true
  543. # List of IP address CIDR ranges that the URL preview spider is denied
  544. # from accessing. There are no defaults: you must explicitly
  545. # specify a list for URL previewing to work. You should specify any
  546. # internal services in your network that you do not want synapse to try
  547. # to connect to, otherwise anyone in any Matrix room could cause your
  548. # synapse to issue arbitrary GET requests to your internal services,
  549. # causing serious security issues.
  550. #
  551. # (0.0.0.0 and :: are always blacklisted, whether or not they are explicitly
  552. # listed here, since they correspond to unroutable addresses.)
  553. #
  554. # This must be specified if url_preview_enabled is set. It is recommended that
  555. # you uncomment the following list as a starting point.
  556. #
  557. #url_preview_ip_range_blacklist:
  558. # - '127.0.0.0/8'
  559. # - '10.0.0.0/8'
  560. # - '172.16.0.0/12'
  561. # - '192.168.0.0/16'
  562. # - '100.64.0.0/10'
  563. # - '169.254.0.0/16'
  564. # - '::1/128'
  565. # - 'fe80::/64'
  566. # - 'fc00::/7'
  567. # List of IP address CIDR ranges that the URL preview spider is allowed
  568. # to access even if they are specified in url_preview_ip_range_blacklist.
  569. # This is useful for specifying exceptions to wide-ranging blacklisted
  570. # target IP ranges - e.g. for enabling URL previews for a specific private
  571. # website only visible in your network.
  572. #
  573. #url_preview_ip_range_whitelist:
  574. # - '192.168.1.1'
  575. # Optional list of URL matches that the URL preview spider is
  576. # denied from accessing. You should use url_preview_ip_range_blacklist
  577. # in preference to this, otherwise someone could define a public DNS
  578. # entry that points to a private IP address and circumvent the blacklist.
  579. # This is more useful if you know there is an entire shape of URL that
  580. # you know that will never want synapse to try to spider.
  581. #
  582. # Each list entry is a dictionary of url component attributes as returned
  583. # by urlparse.urlsplit as applied to the absolute form of the URL. See
  584. # https://docs.python.org/2/library/urlparse.html#urlparse.urlsplit
  585. # The values of the dictionary are treated as an filename match pattern
  586. # applied to that component of URLs, unless they start with a ^ in which
  587. # case they are treated as a regular expression match. If all the
  588. # specified component matches for a given list item succeed, the URL is
  589. # blacklisted.
  590. #
  591. #url_preview_url_blacklist:
  592. # # blacklist any URL with a username in its URI
  593. # - username: '*'
  594. #
  595. # # blacklist all *.google.com URLs
  596. # - netloc: 'google.com'
  597. # - netloc: '*.google.com'
  598. #
  599. # # blacklist all plain HTTP URLs
  600. # - scheme: 'http'
  601. #
  602. # # blacklist http(s)://www.acme.com/foo
  603. # - netloc: 'www.acme.com'
  604. # path: '/foo'
  605. #
  606. # # blacklist any URL with a literal IPv4 address
  607. # - netloc: '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
  608. # The largest allowed URL preview spidering size in bytes
  609. #
  610. #max_spider_size: 10M
  611. ## Captcha ##
  612. # See docs/CAPTCHA_SETUP for full details of configuring this.
  613. # This Home Server's ReCAPTCHA public key.
  614. #
  615. #recaptcha_public_key: "YOUR_PUBLIC_KEY"
  616. # This Home Server's ReCAPTCHA private key.
  617. #
  618. #recaptcha_private_key: "YOUR_PRIVATE_KEY"
  619. # Enables ReCaptcha checks when registering, preventing signup
  620. # unless a captcha is answered. Requires a valid ReCaptcha
  621. # public/private key.
  622. #
  623. #enable_registration_captcha: false
  624. # A secret key used to bypass the captcha test entirely.
  625. #
  626. #captcha_bypass_secret: "YOUR_SECRET_HERE"
  627. # The API endpoint to use for verifying m.login.recaptcha responses.
  628. #
  629. #recaptcha_siteverify_api: "https://www.recaptcha.net/recaptcha/api/siteverify"
  630. ## TURN ##
  631. # The public URIs of the TURN server to give to clients
  632. #
  633. #turn_uris: []
  634. # The shared secret used to compute passwords for the TURN server
  635. #
  636. #turn_shared_secret: "YOUR_SHARED_SECRET"
  637. # The Username and password if the TURN server needs them and
  638. # does not use a token
  639. #
  640. #turn_username: "TURNSERVER_USERNAME"
  641. #turn_password: "TURNSERVER_PASSWORD"
  642. # How long generated TURN credentials last
  643. #
  644. #turn_user_lifetime: 1h
  645. # Whether guests should be allowed to use the TURN server.
  646. # This defaults to True, otherwise VoIP will be unreliable for guests.
  647. # However, it does introduce a slight security risk as it allows users to
  648. # connect to arbitrary endpoints without having first signed up for a
  649. # valid account (e.g. by passing a CAPTCHA).
  650. #
  651. #turn_allow_guests: True
  652. ## Registration ##
  653. #
  654. # Registration can be rate-limited using the parameters in the "Ratelimiting"
  655. # section of this file.
  656. # Enable registration for new users.
  657. #
  658. #enable_registration: false
  659. # Optional account validity configuration. This allows for accounts to be denied
  660. # any request after a given period.
  661. #
  662. # ``enabled`` defines whether the account validity feature is enabled. Defaults
  663. # to False.
  664. #
  665. # ``period`` allows setting the period after which an account is valid
  666. # after its registration. When renewing the account, its validity period
  667. # will be extended by this amount of time. This parameter is required when using
  668. # the account validity feature.
  669. #
  670. # ``renew_at`` is the amount of time before an account's expiry date at which
  671. # Synapse will send an email to the account's email address with a renewal link.
  672. # This needs the ``email`` and ``public_baseurl`` configuration sections to be
  673. # filled.
  674. #
  675. # ``renew_email_subject`` is the subject of the email sent out with the renewal
  676. # link. ``%(app)s`` can be used as a placeholder for the ``app_name`` parameter
  677. # from the ``email`` section.
  678. #
  679. # Once this feature is enabled, Synapse will look for registered users without an
  680. # expiration date at startup and will add one to every account it found using the
  681. # current settings at that time.
  682. # This means that, if a validity period is set, and Synapse is restarted (it will
  683. # then derive an expiration date from the current validity period), and some time
  684. # after that the validity period changes and Synapse is restarted, the users'
  685. # expiration dates won't be updated unless their account is manually renewed. This
  686. # date will be randomly selected within a range [now + period - d ; now + period],
  687. # where d is equal to 10% of the validity period.
  688. #
  689. #account_validity:
  690. # enabled: True
  691. # period: 6w
  692. # renew_at: 1w
  693. # renew_email_subject: "Renew your %(app)s account"
  694. # Time that a user's session remains valid for, after they log in.
  695. #
  696. # Note that this is not currently compatible with guest logins.
  697. #
  698. # Note also that this is calculated at login time: changes are not applied
  699. # retrospectively to users who have already logged in.
  700. #
  701. # By default, this is infinite.
  702. #
  703. #session_lifetime: 24h
  704. # The user must provide all of the below types of 3PID when registering.
  705. #
  706. #registrations_require_3pid:
  707. # - email
  708. # - msisdn
  709. # Explicitly disable asking for MSISDNs from the registration
  710. # flow (overrides registrations_require_3pid if MSISDNs are set as required)
  711. #
  712. #disable_msisdn_registration: true
  713. # Mandate that users are only allowed to associate certain formats of
  714. # 3PIDs with accounts on this server.
  715. #
  716. #allowed_local_3pids:
  717. # - medium: email
  718. # pattern: '.*@matrix\.org'
  719. # - medium: email
  720. # pattern: '.*@vector\.im'
  721. # - medium: msisdn
  722. # pattern: '\+44'
  723. # Enable 3PIDs lookup requests to identity servers from this server.
  724. #
  725. #enable_3pid_lookup: true
  726. # If set, allows registration of standard or admin accounts by anyone who
  727. # has the shared secret, even if registration is otherwise disabled.
  728. #
  729. # registration_shared_secret: <PRIVATE STRING>
  730. # Set the number of bcrypt rounds used to generate password hash.
  731. # Larger numbers increase the work factor needed to generate the hash.
  732. # The default number is 12 (which equates to 2^12 rounds).
  733. # N.B. that increasing this will exponentially increase the time required
  734. # to register or login - e.g. 24 => 2^24 rounds which will take >20 mins.
  735. #
  736. #bcrypt_rounds: 12
  737. # Allows users to register as guests without a password/email/etc, and
  738. # participate in rooms hosted on this server which have been made
  739. # accessible to anonymous users.
  740. #
  741. #allow_guest_access: false
  742. # The identity server which we suggest that clients should use when users log
  743. # in on this server.
  744. #
  745. # (By default, no suggestion is made, so it is left up to the client.
  746. # This setting is ignored unless public_baseurl is also set.)
  747. #
  748. #default_identity_server: https://matrix.org
  749. # The list of identity servers trusted to verify third party
  750. # identifiers by this server.
  751. #
  752. # Also defines the ID server which will be called when an account is
  753. # deactivated (one will be picked arbitrarily).
  754. #
  755. #trusted_third_party_id_servers:
  756. # - matrix.org
  757. # - vector.im
  758. # Users who register on this homeserver will automatically be joined
  759. # to these rooms
  760. #
  761. #auto_join_rooms:
  762. # - "#example:example.com"
  763. # Where auto_join_rooms are specified, setting this flag ensures that the
  764. # the rooms exist by creating them when the first user on the
  765. # homeserver registers.
  766. # Setting to false means that if the rooms are not manually created,
  767. # users cannot be auto-joined since they do not exist.
  768. #
  769. #autocreate_auto_join_rooms: true
  770. ## Metrics ###
  771. # Enable collection and rendering of performance metrics
  772. #
  773. #enable_metrics: False
  774. # Enable sentry integration
  775. # NOTE: While attempts are made to ensure that the logs don't contain
  776. # any sensitive information, this cannot be guaranteed. By enabling
  777. # this option the sentry server may therefore receive sensitive
  778. # information, and it in turn may then diseminate sensitive information
  779. # through insecure notification channels if so configured.
  780. #
  781. #sentry:
  782. # dsn: "..."
  783. # Whether or not to report anonymized homeserver usage statistics.
  784. # report_stats: true|false
  785. ## API Configuration ##
  786. # A list of event types that will be included in the room_invite_state
  787. #
  788. #room_invite_state_types:
  789. # - "m.room.join_rules"
  790. # - "m.room.canonical_alias"
  791. # - "m.room.avatar"
  792. # - "m.room.encryption"
  793. # - "m.room.name"
  794. # A list of application service config files to use
  795. #
  796. #app_service_config_files:
  797. # - app_service_1.yaml
  798. # - app_service_2.yaml
  799. # Uncomment to enable tracking of application service IP addresses. Implicitly
  800. # enables MAU tracking for application service users.
  801. #
  802. #track_appservice_user_ips: True
  803. # a secret which is used to sign access tokens. If none is specified,
  804. # the registration_shared_secret is used, if one is given; otherwise,
  805. # a secret key is derived from the signing key.
  806. #
  807. # macaroon_secret_key: <PRIVATE STRING>
  808. # Used to enable access token expiration.
  809. #
  810. #expire_access_token: False
  811. # a secret which is used to calculate HMACs for form values, to stop
  812. # falsification of values. Must be specified for the User Consent
  813. # forms to work.
  814. #
  815. # form_secret: <PRIVATE STRING>
  816. ## Signing Keys ##
  817. # Path to the signing key to sign messages with
  818. #
  819. signing_key_path: "CONFDIR/SERVERNAME.signing.key"
  820. # The keys that the server used to sign messages with but won't use
  821. # to sign new messages. E.g. it has lost its private key
  822. #
  823. #old_signing_keys:
  824. # "ed25519:auto":
  825. # # Base64 encoded public key
  826. # key: "The public part of your old signing key."
  827. # # Millisecond POSIX timestamp when the key expired.
  828. # expired_ts: 123456789123
  829. # How long key response published by this server is valid for.
  830. # Used to set the valid_until_ts in /key/v2 APIs.
  831. # Determines how quickly servers will query to check which keys
  832. # are still valid.
  833. #
  834. #key_refresh_interval: 1d
  835. # The trusted servers to download signing keys from.
  836. #
  837. # When we need to fetch a signing key, each server is tried in parallel.
  838. #
  839. # Normally, the connection to the key server is validated via TLS certificates.
  840. # Additional security can be provided by configuring a `verify key`, which
  841. # will make synapse check that the response is signed by that key.
  842. #
  843. # This setting supercedes an older setting named `perspectives`. The old format
  844. # is still supported for backwards-compatibility, but it is deprecated.
  845. #
  846. # Options for each entry in the list include:
  847. #
  848. # server_name: the name of the server. required.
  849. #
  850. # verify_keys: an optional map from key id to base64-encoded public key.
  851. # If specified, we will check that the response is signed by at least
  852. # one of the given keys.
  853. #
  854. # accept_keys_insecurely: a boolean. Normally, if `verify_keys` is unset,
  855. # and federation_verify_certificates is not `true`, synapse will refuse
  856. # to start, because this would allow anyone who can spoof DNS responses
  857. # to masquerade as the trusted key server. If you know what you are doing
  858. # and are sure that your network environment provides a secure connection
  859. # to the key server, you can set this to `true` to override this
  860. # behaviour.
  861. #
  862. # An example configuration might look like:
  863. #
  864. #trusted_key_servers:
  865. # - server_name: "my_trusted_server.example.com"
  866. # verify_keys:
  867. # "ed25519:auto": "abcdefghijklmnopqrstuvwxyzabcdefghijklmopqr"
  868. # - server_name: "my_other_trusted_server.example.com"
  869. #
  870. # The default configuration is:
  871. #
  872. #trusted_key_servers:
  873. # - server_name: "matrix.org"
  874. # Enable SAML2 for registration and login. Uses pysaml2.
  875. #
  876. # `sp_config` is the configuration for the pysaml2 Service Provider.
  877. # See pysaml2 docs for format of config.
  878. #
  879. # Default values will be used for the 'entityid' and 'service' settings,
  880. # so it is not normally necessary to specify them unless you need to
  881. # override them.
  882. #
  883. # Once SAML support is enabled, a metadata file will be exposed at
  884. # https://<server>:<port>/_matrix/saml2/metadata.xml, which you may be able to
  885. # use to configure your SAML IdP with. Alternatively, you can manually configure
  886. # the IdP to use an ACS location of
  887. # https://<server>:<port>/_matrix/saml2/authn_response.
  888. #
  889. #saml2_config:
  890. # sp_config:
  891. # # point this to the IdP's metadata. You can use either a local file or
  892. # # (preferably) a URL.
  893. # metadata:
  894. # #local: ["saml2/idp.xml"]
  895. # remote:
  896. # - url: https://our_idp/metadata.xml
  897. #
  898. # # By default, the user has to go to our login page first. If you'd like to
  899. # # allow IdP-initiated login, set 'allow_unsolicited: True' in a
  900. # # 'service.sp' section:
  901. # #
  902. # #service:
  903. # # sp:
  904. # # allow_unsolicited: True
  905. #
  906. # # The examples below are just used to generate our metadata xml, and you
  907. # # may well not need it, depending on your setup. Alternatively you
  908. # # may need a whole lot more detail - see the pysaml2 docs!
  909. #
  910. # description: ["My awesome SP", "en"]
  911. # name: ["Test SP", "en"]
  912. #
  913. # organization:
  914. # name: Example com
  915. # display_name:
  916. # - ["Example co", "en"]
  917. # url: "http://example.com"
  918. #
  919. # contact_person:
  920. # - given_name: Bob
  921. # sur_name: "the Sysadmin"
  922. # email_address": ["admin@example.com"]
  923. # contact_type": technical
  924. #
  925. # # Instead of putting the config inline as above, you can specify a
  926. # # separate pysaml2 configuration file:
  927. # #
  928. # config_path: "CONFDIR/sp_conf.py"
  929. #
  930. # # the lifetime of a SAML session. This defines how long a user has to
  931. # # complete the authentication process, if allow_unsolicited is unset.
  932. # # The default is 5 minutes.
  933. # #
  934. # # saml_session_lifetime: 5m
  935. # Enable CAS for registration and login.
  936. #
  937. #cas_config:
  938. # enabled: true
  939. # server_url: "https://cas-server.com"
  940. # service_url: "https://homeserver.domain.com:8448"
  941. # #required_attributes:
  942. # # name: value
  943. # The JWT needs to contain a globally unique "sub" (subject) claim.
  944. #
  945. #jwt_config:
  946. # enabled: true
  947. # secret: "a secret"
  948. # algorithm: "HS256"
  949. password_config:
  950. # Uncomment to disable password login
  951. #
  952. #enabled: false
  953. # Uncomment to disable authentication against the local password
  954. # database. This is ignored if `enabled` is false, and is only useful
  955. # if you have other password_providers.
  956. #
  957. #localdb_enabled: false
  958. # Uncomment and change to a secret random string for extra security.
  959. # DO NOT CHANGE THIS AFTER INITIAL SETUP!
  960. #
  961. #pepper: "EVEN_MORE_SECRET"
  962. # Enable sending emails for password resets, notification events or
  963. # account expiry notices
  964. #
  965. # If your SMTP server requires authentication, the optional smtp_user &
  966. # smtp_pass variables should be used
  967. #
  968. #email:
  969. # enable_notifs: false
  970. # smtp_host: "localhost"
  971. # smtp_port: 25 # SSL: 465, STARTTLS: 587
  972. # smtp_user: "exampleusername"
  973. # smtp_pass: "examplepassword"
  974. # require_transport_security: False
  975. # notif_from: "Your Friendly %(app)s Home Server <noreply@example.com>"
  976. # app_name: Matrix
  977. #
  978. # # Enable email notifications by default
  979. # #
  980. # notif_for_new_users: True
  981. #
  982. # # Defining a custom URL for Riot is only needed if email notifications
  983. # # should contain links to a self-hosted installation of Riot; when set
  984. # # the "app_name" setting is ignored
  985. # #
  986. # riot_base_url: "http://localhost/riot"
  987. #
  988. # # Enable sending password reset emails via the configured, trusted
  989. # # identity servers
  990. # #
  991. # # IMPORTANT! This will give a malicious or overtaken identity server
  992. # # the ability to reset passwords for your users! Make absolutely sure
  993. # # that you want to do this! It is strongly recommended that password
  994. # # reset emails be sent by the homeserver instead
  995. # #
  996. # # If this option is set to false and SMTP options have not been
  997. # # configured, resetting user passwords via email will be disabled
  998. # #
  999. # #trust_identity_server_for_password_resets: false
  1000. #
  1001. # # Configure the time that a validation email or text message code
  1002. # # will expire after sending
  1003. # #
  1004. # # This is currently used for password resets
  1005. # #
  1006. # #validation_token_lifetime: 1h
  1007. #
  1008. # # Template directory. All template files should be stored within this
  1009. # # directory. If not set, default templates from within the Synapse
  1010. # # package will be used
  1011. # #
  1012. # # For the list of default templates, please see
  1013. # # https://github.com/matrix-org/synapse/tree/master/synapse/res/templates
  1014. # #
  1015. # #template_dir: res/templates
  1016. #
  1017. # # Templates for email notifications
  1018. # #
  1019. # notif_template_html: notif_mail.html
  1020. # notif_template_text: notif_mail.txt
  1021. #
  1022. # # Templates for account expiry notices
  1023. # #
  1024. # expiry_template_html: notice_expiry.html
  1025. # expiry_template_text: notice_expiry.txt
  1026. #
  1027. # # Templates for password reset emails sent by the homeserver
  1028. # #
  1029. # #password_reset_template_html: password_reset.html
  1030. # #password_reset_template_text: password_reset.txt
  1031. #
  1032. # # Templates for password reset success and failure pages that a user
  1033. # # will see after attempting to reset their password
  1034. # #
  1035. # #password_reset_template_success_html: password_reset_success.html
  1036. # #password_reset_template_failure_html: password_reset_failure.html
  1037. #password_providers:
  1038. # - module: "ldap_auth_provider.LdapAuthProvider"
  1039. # config:
  1040. # enabled: true
  1041. # uri: "ldap://ldap.example.com:389"
  1042. # start_tls: true
  1043. # base: "ou=users,dc=example,dc=com"
  1044. # attributes:
  1045. # uid: "cn"
  1046. # mail: "email"
  1047. # name: "givenName"
  1048. # #bind_dn:
  1049. # #bind_password:
  1050. # #filter: "(objectClass=posixAccount)"
  1051. # Clients requesting push notifications can either have the body of
  1052. # the message sent in the notification poke along with other details
  1053. # like the sender, or just the event ID and room ID (`event_id_only`).
  1054. # If clients choose the former, this option controls whether the
  1055. # notification request includes the content of the event (other details
  1056. # like the sender are still included). For `event_id_only` push, it
  1057. # has no effect.
  1058. #
  1059. # For modern android devices the notification content will still appear
  1060. # because it is loaded by the app. iPhone, however will send a
  1061. # notification saying only that a message arrived and who it came from.
  1062. #
  1063. #push:
  1064. # include_content: true
  1065. #spam_checker:
  1066. # module: "my_custom_project.SuperSpamChecker"
  1067. # config:
  1068. # example_option: 'things'
  1069. # Uncomment to allow non-server-admin users to create groups on this server
  1070. #
  1071. #enable_group_creation: true
  1072. # If enabled, non server admins can only create groups with local parts
  1073. # starting with this prefix
  1074. #
  1075. #group_creation_prefix: "unofficial/"
  1076. # User Directory configuration
  1077. #
  1078. # 'enabled' defines whether users can search the user directory. If
  1079. # false then empty responses are returned to all queries. Defaults to
  1080. # true.
  1081. #
  1082. # 'search_all_users' defines whether to search all users visible to your HS
  1083. # when searching the user directory, rather than limiting to users visible
  1084. # in public rooms. Defaults to false. If you set it True, you'll have to
  1085. # rebuild the user_directory search indexes, see
  1086. # https://github.com/matrix-org/synapse/blob/master/docs/user_directory.md
  1087. #
  1088. #user_directory:
  1089. # enabled: true
  1090. # search_all_users: false
  1091. # User Consent configuration
  1092. #
  1093. # for detailed instructions, see
  1094. # https://github.com/matrix-org/synapse/blob/master/docs/consent_tracking.md
  1095. #
  1096. # Parts of this section are required if enabling the 'consent' resource under
  1097. # 'listeners', in particular 'template_dir' and 'version'.
  1098. #
  1099. # 'template_dir' gives the location of the templates for the HTML forms.
  1100. # This directory should contain one subdirectory per language (eg, 'en', 'fr'),
  1101. # and each language directory should contain the policy document (named as
  1102. # '<version>.html') and a success page (success.html).
  1103. #
  1104. # 'version' specifies the 'current' version of the policy document. It defines
  1105. # the version to be served by the consent resource if there is no 'v'
  1106. # parameter.
  1107. #
  1108. # 'server_notice_content', if enabled, will send a user a "Server Notice"
  1109. # asking them to consent to the privacy policy. The 'server_notices' section
  1110. # must also be configured for this to work. Notices will *not* be sent to
  1111. # guest users unless 'send_server_notice_to_guests' is set to true.
  1112. #
  1113. # 'block_events_error', if set, will block any attempts to send events
  1114. # until the user consents to the privacy policy. The value of the setting is
  1115. # used as the text of the error.
  1116. #
  1117. # 'require_at_registration', if enabled, will add a step to the registration
  1118. # process, similar to how captcha works. Users will be required to accept the
  1119. # policy before their account is created.
  1120. #
  1121. # 'policy_name' is the display name of the policy users will see when registering
  1122. # for an account. Has no effect unless `require_at_registration` is enabled.
  1123. # Defaults to "Privacy Policy".
  1124. #
  1125. #user_consent:
  1126. # template_dir: res/templates/privacy
  1127. # version: 1.0
  1128. # server_notice_content:
  1129. # msgtype: m.text
  1130. # body: >-
  1131. # To continue using this homeserver you must review and agree to the
  1132. # terms and conditions at %(consent_uri)s
  1133. # send_server_notice_to_guests: True
  1134. # block_events_error: >-
  1135. # To continue using this homeserver you must review and agree to the
  1136. # terms and conditions at %(consent_uri)s
  1137. # require_at_registration: False
  1138. # policy_name: Privacy Policy
  1139. #
  1140. # Local statistics collection. Used in populating the room directory.
  1141. #
  1142. # 'bucket_size' controls how large each statistics timeslice is. It can
  1143. # be defined in a human readable short form -- e.g. "1d", "1y".
  1144. #
  1145. # 'retention' controls how long historical statistics will be kept for.
  1146. # It can be defined in a human readable short form -- e.g. "1d", "1y".
  1147. #
  1148. #
  1149. #stats:
  1150. # enabled: true
  1151. # bucket_size: 1d
  1152. # retention: 1y
  1153. # Server Notices room configuration
  1154. #
  1155. # Uncomment this section to enable a room which can be used to send notices
  1156. # from the server to users. It is a special room which cannot be left; notices
  1157. # come from a special "notices" user id.
  1158. #
  1159. # If you uncomment this section, you *must* define the system_mxid_localpart
  1160. # setting, which defines the id of the user which will be used to send the
  1161. # notices.
  1162. #
  1163. # It's also possible to override the room name, the display name of the
  1164. # "notices" user, and the avatar for the user.
  1165. #
  1166. #server_notices:
  1167. # system_mxid_localpart: notices
  1168. # system_mxid_display_name: "Server Notices"
  1169. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  1170. # room_name: "Server Notices"
  1171. # Uncomment to disable searching the public room list. When disabled
  1172. # blocks searching local and remote room lists for local and remote
  1173. # users by always returning an empty list for all queries.
  1174. #
  1175. #enable_room_list_search: false
  1176. # The `alias_creation` option controls who's allowed to create aliases
  1177. # on this server.
  1178. #
  1179. # The format of this option is a list of rules that contain globs that
  1180. # match against user_id, room_id and the new alias (fully qualified with
  1181. # server name). The action in the first rule that matches is taken,
  1182. # which can currently either be "allow" or "deny".
  1183. #
  1184. # Missing user_id/room_id/alias fields default to "*".
  1185. #
  1186. # If no rules match the request is denied. An empty list means no one
  1187. # can create aliases.
  1188. #
  1189. # Options for the rules include:
  1190. #
  1191. # user_id: Matches against the creator of the alias
  1192. # alias: Matches against the alias being created
  1193. # room_id: Matches against the room ID the alias is being pointed at
  1194. # action: Whether to "allow" or "deny" the request if the rule matches
  1195. #
  1196. # The default is:
  1197. #
  1198. #alias_creation_rules:
  1199. # - user_id: "*"
  1200. # alias: "*"
  1201. # room_id: "*"
  1202. # action: allow
  1203. # The `room_list_publication_rules` option controls who can publish and
  1204. # which rooms can be published in the public room list.
  1205. #
  1206. # The format of this option is the same as that for
  1207. # `alias_creation_rules`.
  1208. #
  1209. # If the room has one or more aliases associated with it, only one of
  1210. # the aliases needs to match the alias rule. If there are no aliases
  1211. # then only rules with `alias: *` match.
  1212. #
  1213. # If no rules match the request is denied. An empty list means no one
  1214. # can publish rooms.
  1215. #
  1216. # Options for the rules include:
  1217. #
  1218. # user_id: Matches agaisnt the creator of the alias
  1219. # room_id: Matches against the room ID being published
  1220. # alias: Matches against any current local or canonical aliases
  1221. # associated with the room
  1222. # action: Whether to "allow" or "deny" the request if the rule matches
  1223. #
  1224. # The default is:
  1225. #
  1226. #room_list_publication_rules:
  1227. # - user_id: "*"
  1228. # alias: "*"
  1229. # room_id: "*"
  1230. # action: allow
  1231. # Server admins can define a Python module that implements extra rules for
  1232. # allowing or denying incoming events. In order to work, this module needs to
  1233. # override the methods defined in synapse/events/third_party_rules.py.
  1234. #
  1235. # This feature is designed to be used in closed federations only, where each
  1236. # participating server enforces the same rules.
  1237. #
  1238. #third_party_event_rules:
  1239. # module: "my_custom_project.SuperRulesSet"
  1240. # config:
  1241. # example_option: 'things'
  1242. ## Opentracing ##
  1243. # These settings enable opentracing which implements distributed tracing
  1244. # This allows you to observe the causal chain of events across servers
  1245. # including requests, key lookups etc. across any server running
  1246. # synapse or any other other services which supports opentracing.
  1247. # (specifically those implemented with jaeger)
  1248. #opentracing:
  1249. # # Enable / disable tracer
  1250. # tracer_enabled: false
  1251. # # The list of homeservers we wish to expose our current traces to.
  1252. # # The list is a list of regexes which are matched against the
  1253. # # servername of the homeserver
  1254. # homeserver_whitelist:
  1255. # - ".*"