Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

807 satır
39 KiB

  1. # Synapse is a Matrix homeserver
  2. # See: https://github.com/matrix-org/synapse
  3. matrix_synapse_enabled: true
  4. matrix_synapse_docker_image: "matrixdotorg/synapse:v0.99.3.2"
  5. matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
  6. matrix_synapse_config_dir_path: "{{ matrix_synapse_base_path }}/config"
  7. matrix_synapse_run_path: "{{ matrix_synapse_base_path }}/run"
  8. matrix_synapse_storage_path: "{{ matrix_synapse_base_path }}/storage"
  9. matrix_synapse_media_store_path: "{{ matrix_synapse_storage_path }}/media-store"
  10. matrix_synapse_ext_path: "{{ matrix_synapse_base_path }}/ext"
  11. # Controls whether the Synapse container exposes the Client/Server API port (tcp/8008).
  12. matrix_synapse_container_expose_client_api_port: false
  13. # Controls whether the Synapse container exposes the Server/Server (Federation) API port (tcp/8048).
  14. # This is for the plain HTTP API. If you need Synapse to handle TLS encryption,
  15. # that would be on another port (tcp/8448) controlled by `matrix_synapse_tls_federation_listener_enabled`.
  16. matrix_synapse_container_expose_federation_api_port: false
  17. # Controls whether the Appservice IRC container exposes the Client/Server API port (tcp/9999).
  18. matrix_appservice_irc_container_expose_client_server_api_port: false
  19. # Controls whether the Appservice Discord container exposes the Client/Server API port (tcp/9005).
  20. matrix_appservice_discord_container_expose_client_server_api_port: false
  21. # Controls whether the matrix-synapse container exposes the metrics port (tcp/9100).
  22. matrix_synapse_container_expose_metrics_port: false
  23. # A list of extra arguments to pass to the container
  24. matrix_synapse_container_extra_arguments: []
  25. # List of systemd services that matrix-synapse.service depends on
  26. matrix_synapse_systemd_required_services_list: ['docker.service']
  27. # List of systemd services that matrix-synapse.service wants
  28. matrix_synapse_systemd_wanted_services_list: []
  29. matrix_synapse_in_container_python_packages_path: "/usr/local/lib/python3.6/site-packages"
  30. # Specifies which template files to use when configuring Synapse.
  31. # If you'd like to have your own different configuration, feel free to copy and paste
  32. # the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
  33. # and then change the specific host's `vars.yaml` file like this:
  34. # matrix_synapse_template_synapse_homeserver: "{{ playbook_dir }}/inventory/host_vars/<host>/homeserver.yaml.j2"
  35. matrix_synapse_template_synapse_homeserver: "{{ role_path }}/templates/synapse/homeserver.yaml.j2"
  36. matrix_synapse_template_synapse_log: "{{ role_path }}/templates/synapse/synapse.log.config.j2"
  37. matrix_synapse_macaroon_secret_key: ""
  38. matrix_synapse_registration_shared_secret: "{{ matrix_synapse_macaroon_secret_key }}"
  39. matrix_synapse_form_secret: "{{ matrix_synapse_macaroon_secret_key }}"
  40. # The list of identity servers to use for Synapse.
  41. # We assume this role runs standalone without a local Identity server, so we point Synapse to public ones.
  42. # This most likely gets overwritten later, so that a local Identity server is used.
  43. matrix_synapse_trusted_third_party_id_servers: "{{ matrix_synapse_id_servers_public }}"
  44. matrix_synapse_max_upload_size_mb: 10
  45. matrix_synapse_max_log_file_size_mb: 100
  46. matrix_synapse_max_log_files_count: 10
  47. # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads.
  48. matrix_synapse_tmp_directory_size_mb: "{{ matrix_synapse_max_upload_size_mb * 50 }}"
  49. # Log levels
  50. # Possible options are defined here https://docs.python.org/3/library/logging.html#logging-levels
  51. # warning: setting log level to DEBUG will make synapse log sensitive information such
  52. # as access tokens
  53. matrix_synapse_log_level: "INFO"
  54. matrix_synapse_storage_sql_log_level: "INFO"
  55. matrix_synapse_root_log_level: "INFO"
  56. # Rate limits
  57. matrix_synapse_rc_messages_per_second: 0.2
  58. matrix_synapse_rc_message_burst_count: 10.0
  59. matrix_synapse_rc_registration:
  60. per_second: 0.17
  61. burst_count: 3
  62. matrix_synapse_rc_login:
  63. address:
  64. per_second: 0.17
  65. burst_count: 3
  66. account:
  67. per_second: 0.17
  68. burst_count: 3
  69. failed_attempts:
  70. per_second: 0.17
  71. burst_count: 3
  72. matrix_synapse_federation_rc_window_size: 1000
  73. matrix_synapse_federation_rc_sleep_limit: 10
  74. matrix_synapse_federation_rc_sleep_delay: 500
  75. matrix_synapse_federation_rc_reject_limit: 50
  76. matrix_synapse_federation_rc_concurrent: 3
  77. matrix_synapse_federation_rr_transactions_per_room_per_second: 50
  78. # Controls whether the TLS federation listener is enabled (tcp/8448).
  79. # Only makes sense if federation is enabled (`matrix_synapse_federation_enabled`).
  80. # Note that federation may potentially be enabled as non-TLS on tcp/8048 as well.
  81. # If you're serving Synapse behind an HTTPS-capable reverse-proxy,
  82. # you can disable the TLS listener (`matrix_synapse_tls_federation_listener_enabled: false`).
  83. matrix_synapse_tls_federation_listener_enabled: true
  84. matrix_synapse_tls_certificate_path: "/data/{{ matrix_server_fqn_matrix }}.tls.crt"
  85. matrix_synapse_tls_private_key_path: "/data/{{ matrix_server_fqn_matrix }}.tls.key"
  86. # Enable this to allow Synapse to report utilization statistics about your server to matrix.org
  87. # (things like number of users, number of messages sent, uptime, load, etc.)
  88. matrix_synapse_report_stats: false
  89. # Controls whether the Matrix server will track presence status (online, offline, unavailable) for users.
  90. # If users participate in large rooms with many other servers,
  91. # disabling this will decrease server load significantly.
  92. matrix_synapse_use_presence: true
  93. # Controls whether people with access to the homeserver can register by themselves.
  94. matrix_synapse_enable_registration: false
  95. # A list of 3PID types which users must supply when registering (possible values: email, msisdn).
  96. matrix_synapse_registrations_require_3pid: []
  97. # Users who register on this homeserver will automatically be joined to these rooms.
  98. # Rooms are to be specified using addresses (e.g. `#address:example.com`)
  99. matrix_synapse_auto_join_rooms: []
  100. # Controls whether auto-join rooms (`matrix_synapse_auto_join_rooms`) are to be created
  101. # automatically if they don't already exist.
  102. matrix_synapse_autocreate_auto_join_rooms: true
  103. # Controls password-peppering for Synapse. Not to be changed after initial setup.
  104. matrix_synapse_password_config_pepper: ""
  105. # Controls the number of events that Synapse caches in memory.
  106. matrix_synapse_event_cache_size: "100K"
  107. # Controls cache sizes for Synapse via the SYNAPSE_CACHE_FACTOR environment variable.
  108. # Raise this to increase cache sizes or lower it to potentially lower memory use.
  109. # To learn more, see:
  110. # - https://github.com/matrix-org/synapse#help-synapse-eats-all-my-ram
  111. # - https://github.com/matrix-org/synapse/issues/3939
  112. matrix_synapse_cache_factor: 0.5
  113. # Controls whether Synapse will federate at all.
  114. # Disable this to completely isolate your server from the rest of the Matrix network.
  115. # Also see: `matrix_synapse_tls_federation_listener_enabled` if you wish to keep federation enabled,
  116. # but want to stop the TLS listener (port 8448).
  117. matrix_synapse_federation_enabled: true
  118. # A list of domain names that are allowed to federate with the given Synapse server.
  119. # An empty list value (`[]`) will also effectively stop federation, but if that's the desired
  120. # result, it's better to accomplish it by changing `matrix_synapse_federation_enabled`.
  121. matrix_synapse_federation_domain_whitelist: ~
  122. # A list of additional "volumes" to mount in the container.
  123. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  124. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  125. matrix_synapse_container_additional_volumes: []
  126. # A list of additional loggers to register in synapse.log.config.
  127. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  128. # Contains definition objects like this: `{"name": "..", "level": "DEBUG"}
  129. matrix_synapse_additional_loggers: []
  130. # A list of service config files
  131. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  132. # Contains fs paths
  133. matrix_synapse_app_service_config_files: []
  134. # This is set dynamically during execution depending on whether
  135. # any password providers have been enabled or not.
  136. matrix_synapse_password_providers_enabled: false
  137. # Whether clients can request to include message content in push notifications
  138. # sent through third party servers. Setting this to false requires mobile clients
  139. # to load message content directly from the homeserver.
  140. matrix_synapse_push_include_content: true
  141. # If url previews should be generated. This will cause a request from Synapse to
  142. # URLs shared by users.
  143. matrix_synapse_url_preview_enabled: true
  144. # Enable exposure of metrics to Prometheus
  145. # See https://github.com/matrix-org/synapse/blob/master/docs/metrics-howto.rst
  146. matrix_synapse_metrics_enabled: false
  147. matrix_synapse_metrics_port: 9100
  148. # Postgres database information
  149. matrix_synapse_database_host: ""
  150. matrix_synapse_database_user: ""
  151. matrix_synapse_database_password: ""
  152. matrix_synapse_database_database: ""
  153. matrix_synapse_turn_uris: []
  154. matrix_synapse_turn_shared_secret: ""
  155. matrix_synapse_email_enabled: false
  156. matrix_synapse_email_smtp_host: ""
  157. matrix_synapse_email_smtp_port: 587
  158. matrix_synapse_email_smtp_require_transport_security: false
  159. matrix_synapse_email_notif_from: "Matrix <matrix@{{ matrix_domain }}>"
  160. matrix_synapse_email_riot_base_url: "https://{{ matrix_server_fqn_riot }}"
  161. # Enable this to activate the REST auth password provider module.
  162. # See: https://github.com/kamax-io/matrix-synapse-rest-auth
  163. matrix_synapse_ext_password_provider_rest_auth_enabled: false
  164. matrix_synapse_ext_password_provider_rest_auth_download_url: "https://raw.githubusercontent.com/kamax-io/matrix-synapse-rest-auth/v0.1.2/rest_auth_provider.py"
  165. matrix_synapse_ext_password_provider_rest_auth_endpoint: ""
  166. matrix_synapse_ext_password_provider_rest_auth_registration_enforce_lowercase: false
  167. matrix_synapse_ext_password_provider_rest_auth_registration_profile_name_autofill: true
  168. matrix_synapse_ext_password_provider_rest_auth_login_profile_name_autofill: false
  169. # Enable this to activate the Shared Secret Auth password provider module.
  170. # See: https://github.com/devture/matrix-synapse-shared-secret-auth
  171. matrix_synapse_ext_password_provider_shared_secret_auth_enabled: false
  172. matrix_synapse_ext_password_provider_shared_secret_auth_download_url: "https://raw.githubusercontent.com/devture/matrix-synapse-shared-secret-auth/1.0.1/shared_secret_authenticator.py"
  173. matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret: ""
  174. # Enable this to activate LDAP password provider
  175. matrix_synapse_ext_password_provider_ldap_enabled: false
  176. matrix_synapse_ext_password_provider_ldap_uri: "ldap://ldap.mydomain.tld:389"
  177. matrix_synapse_ext_password_provider_ldap_start_tls: true
  178. matrix_synapse_ext_password_provider_ldap_base: ""
  179. matrix_synapse_ext_password_provider_ldap_attributes_uid: "uid"
  180. matrix_synapse_ext_password_provider_ldap_attributes_mail: "mail"
  181. matrix_synapse_ext_password_provider_ldap_attributes_name: "cn"
  182. matrix_synapse_ext_password_provider_ldap_bind_dn: ""
  183. matrix_synapse_ext_password_provider_ldap_bind_password: ""
  184. matrix_synapse_ext_password_provider_ldap_filter: ""
  185. matrix_s3_media_store_enabled: false
  186. matrix_s3_media_store_custom_endpoint_enabled: false
  187. matrix_s3_goofys_docker_image: "ewoutp/goofys:latest"
  188. matrix_s3_media_store_custom_endpoint: "your-custom-endpoint"
  189. matrix_s3_media_store_bucket_name: "your-bucket-name"
  190. matrix_s3_media_store_aws_access_key: "your-aws-access-key"
  191. matrix_s3_media_store_aws_secret_key: "your-aws-secret-key"
  192. matrix_s3_media_store_region: "eu-central-1"
  193. # Controls whether the self-check feature should validate SSL certificates.
  194. matrix_synapse_self_check_validate_certificates: true
  195. # Matrix Appservice IRC is a Matrix <-> IRC bridge
  196. # Enable IRC bridge
  197. matrix_appservice_irc_enabled: false
  198. matrix_appservice_irc_docker_image: "tedomum/matrix-appservice-irc:latest"
  199. matrix_appservice_irc_base_path: "{{ matrix_base_data_path }}/appservice-irc"
  200. matrix_appservice_irc_configuration_yaml: |
  201. #jinja2: lstrip_blocks: True
  202. homeserver:
  203. url: "https://{{ matrix_server_fqn_matrix }}"
  204. domain: "{{ matrix_domain }}"
  205. enablePresence: true
  206. matrix_appservice_irc_configuration_extension_yaml: |
  207. # Your custom YAML configuration for Appservice IRC servers goes here.
  208. # This configuration extends the default starting configuration (`matrix_appservice_irc_configuration_yaml`).
  209. #
  210. # You can override individual variables from the default configuration, or introduce new ones.
  211. #
  212. # If you need something more special, you can take full control by
  213. # completely redefining `matrix_appservice_irc_configuration_yaml`.
  214. #
  215. # Example configuration extension follows:
  216. #
  217. # ircService:
  218. # databaseUri: "nedb:///data" # does not typically need modification
  219. # passwordEncryptionKeyPath: "/data/passkey.pem" # does not typically need modification
  220. # matrixHandler:
  221. # eventCacheSize: 4096
  222. # servers:
  223. # # The address of the server to connect to.
  224. # irc.example.com:
  225. # # A human-readable short name. This is used to label IRC status rooms
  226. # # where matrix users control their connections.
  227. # # E.g. 'ExampleNet IRC Bridge status'.
  228. # # It is also used in the Third Party Lookup API as the instance `desc`
  229. # # property, where each server is an instance.
  230. # name: "ExampleNet"
  231. #
  232. # additionalAddresses: [ "irc2.example.com" ]
  233. # #
  234. # # [DEPRECATED] Use `name`, above, instead.
  235. # # A human-readable description string
  236. # # description: "Example.com IRC network"
  237. #
  238. # # An ID for uniquely identifying this server amongst other servers being bridged.
  239. # # networkId: "example"
  240. #
  241. # # URL to an icon used as the network icon whenever this network appear in
  242. # # a network list. (Like in the riot room directory, for instance.)
  243. # # icon: https://example.com/images/hash.png
  244. #
  245. # # The port to connect to. Optional.
  246. # port: 6697
  247. # # Whether to use SSL or not. Default: false.
  248. # ssl: true
  249. # # Whether or not IRC server is using a self-signed cert or not providing CA Chain
  250. # sslselfsign: false
  251. # # Should the connection attempt to identify via SASL (if a server or user password is given)
  252. # # If false, this will use PASS instead. If SASL fails, we do not fallback to PASS.
  253. # sasl: false
  254. # # Whether to allow expired certs when connecting to the IRC server.
  255. # # Usually this should be off. Default: false.
  256. # allowExpiredCerts: false
  257. # # A specific CA to trust instead of the default CAs. Optional.
  258. # #ca: |
  259. # # -----BEGIN CERTIFICATE-----
  260. # # ...
  261. # # -----END CERTIFICATE-----
  262. #
  263. # #
  264. # # The connection password to send for all clients as a PASS (or SASL, if enabled above) command. Optional.
  265. # # password: 'pa$$w0rd'
  266. # #
  267. # # Whether or not to send connection/error notices to real Matrix users. Default: true.
  268. # sendConnectionMessages: true
  269. #
  270. # quitDebounce:
  271. # # Whether parts due to net-splits are debounced for delayMs, to allow
  272. # # time for the netsplit to resolve itself. A netsplit is detected as being
  273. # # a QUIT rate higher than quitsPerSecond. Default: false.
  274. # enabled: false
  275. # # The maximum number of quits per second acceptable above which a netsplit is
  276. # # considered ongoing. Default: 5.
  277. # quitsPerSecond: 5
  278. # # The time window in which to wait before bridging a QUIT to Matrix that occurred during
  279. # # a netsplit. Debouncing is jittered randomly between delayMinMs and delayMaxMs so that the HS
  280. # # is not sent many requests to leave rooms all at once if a netsplit occurs and many
  281. # # people to not rejoin.
  282. # # If the user with the same IRC nick as the one who sent the quit rejoins a channel
  283. # # they are considered back online and the quit is not bridged, so long as the rejoin
  284. # # occurs before the randomly-jittered timeout is not reached.
  285. # # Default: 3600000, = 1h
  286. # delayMinMs: 3600000 # 1h
  287. # # Default: 7200000, = 2h
  288. # delayMaxMs: 7200000 # 2h
  289. #
  290. # # A map for conversion of IRC user modes to Matrix power levels. This enables bridging
  291. # # of IRC ops to Matrix power levels only, it does not enable the reverse. If a user has
  292. # # been given multiple modes, the one that maps to the highest power level will be used.
  293. # modePowerMap:
  294. # o: 50
  295. #
  296. # botConfig:
  297. # # Enable the presence of the bot in IRC channels. The bot serves as the entity
  298. # # which maps from IRC -> Matrix. You can disable the bot entirely which
  299. # # means IRC -> Matrix chat will be shared by active "M-Nick" connections
  300. # # in the room. If there are no users in the room (or if there are users
  301. # # but their connections are not on IRC) then nothing will be bridged to
  302. # # Matrix. If you're concerned about the bot being treated as a "logger"
  303. # # entity, then you may want to disable the bot. If you want IRC->Matrix
  304. # # but don't want to have TCP connections to IRC unless a Matrix user speaks
  305. # # (because your client connection limit is low), then you may want to keep
  306. # # the bot enabled. Default: true.
  307. # # NB: If the bot is disabled, you SHOULD have matrix-to-IRC syncing turned
  308. # # on, else there will be no users and no bot in a channel (meaning no
  309. # # messages to Matrix!) until a Matrix user speaks which makes a client
  310. # # join the target IRC channel.
  311. # # NBB: The bridge bot IRC client will still join the target IRC network so
  312. # # it can service bridge-specific queries from the IRC-side e.g. so
  313. # # real IRC clients have a way to change their Matrix display name.
  314. # # See https://github.com/matrix-org/matrix-appservice-irc/issues/55
  315. # enabled: true
  316. # # The nickname to give the AS bot.
  317. # nick: "MatrixBot"
  318. # # The password to give to NickServ or IRC Server for this nick. Optional.
  319. # # password: "helloworld"
  320. # #
  321. # # Join channels even if there are no Matrix users on the other side of
  322. # # the bridge. Set to false to prevent the bot from joining channels which have no
  323. # # real matrix users in them, even if there is a mapping for the channel.
  324. # # Default: true
  325. # joinChannelsIfNoUsers: true
  326. #
  327. # # Configuration for PMs / private 1:1 communications between users.
  328. # privateMessages:
  329. # # Enable the ability for PMs to be sent to/from IRC/Matrix.
  330. # # Default: true.
  331. # enabled: true
  332. # # Prevent Matrix users from sending PMs to the following IRC nicks.
  333. # # Optional. Default: [].
  334. # # exclude: ["Alice", "Bob"] # NOT YET IMPLEMENTED
  335. #
  336. # # Should created Matrix PM rooms be federated? If false, only users on the
  337. # # HS attached to this AS will be able to interact with this room.
  338. # # Optional. Default: true.
  339. # federate: true
  340. #
  341. # # Configuration for mappings not explicitly listed in the 'mappings'
  342. # # section.
  343. # dynamicChannels:
  344. # # Enable the ability for Matrix users to join *any* channel on this IRC
  345. # # network.
  346. # # Default: false.
  347. # enabled: true
  348. # # Should the AS create a room alias for the new Matrix room? The form of
  349. # # the alias can be modified via 'aliasTemplate'. Default: true.
  350. # createAlias: true
  351. # # Should the AS publish the new Matrix room to the public room list so
  352. # # anyone can see it? Default: true.
  353. # published: true
  354. # # What should the join_rule be for the new Matrix room? If 'public',
  355. # # anyone can join the room. If 'invite', only users with an invite can
  356. # # join the room. Note that if an IRC channel has +k or +i set on it,
  357. # # join_rules will be set to 'invite' until these modes are removed.
  358. # # Default: "public".
  359. # joinRule: public
  360. # # This will set the m.room.related_groups state event in newly created rooms
  361. # # with the given groupId. This means flares will show up on IRC users in those rooms.
  362. # # This should be set to the same thing as namespaces.users.group_id in irc_registration.
  363. # # This does not alter existing rooms.
  364. # # Leaving this option empty will not set the event.
  365. # groupId: +myircnetwork:localhost
  366. # # Should created Matrix rooms be federated? If false, only users on the
  367. # # HS attached to this AS will be able to interact with this room.
  368. # # Default: true.
  369. # federate: true
  370. # # The room alias template to apply when creating new aliases. This only
  371. # # applies if createAlias is 'true'. The following variables are exposed:
  372. # # $SERVER => The IRC server address (e.g. "irc.example.com")
  373. # # $CHANNEL => The IRC channel (e.g. "#python")
  374. # # This MUST have $CHANNEL somewhere in it.
  375. # # Default: '#irc_$SERVER_$CHANNEL'
  376. # aliasTemplate: "#irc_$CHANNEL"
  377. # # A list of user IDs which the AS bot will send invites to in response
  378. # # to a !join. Only applies if joinRule is 'invite'. Default: []
  379. # # whitelist:
  380. # # - "@foo:example.com"
  381. # # - "@bar:example.com"
  382. # #
  383. # # Prevent the given list of channels from being mapped under any
  384. # # circumstances.
  385. # # exclude: ["#foo", "#bar"]
  386. #
  387. # # Configuration for controlling how Matrix and IRC membership lists are
  388. # # synced.
  389. # membershipLists:
  390. # # Enable the syncing of membership lists between IRC and Matrix. This
  391. # # can have a significant effect on performance on startup as the lists are
  392. # # synced. This must be enabled for anything else in this section to take
  393. # # effect. Default: false.
  394. # enabled: false
  395. #
  396. # # Syncing membership lists at startup can result in hundreds of members to
  397. # # process all at once. This timer drip feeds membership entries at the
  398. # # specified rate. Default: 10000. (10s)
  399. # floodDelayMs: 10000
  400. #
  401. # global:
  402. # ircToMatrix:
  403. # # Get a snapshot of all real IRC users on a channel (via NAMES) and
  404. # # join their virtual matrix clients to the room.
  405. # initial: false
  406. # # Make virtual matrix clients join and leave rooms as their real IRC
  407. # # counterparts join/part channels. Default: false.
  408. # incremental: false
  409. #
  410. # matrixToIrc:
  411. # # Get a snapshot of all real Matrix users in the room and join all of
  412. # # them to the mapped IRC channel on startup. Default: false.
  413. # initial: false
  414. # # Make virtual IRC clients join and leave channels as their real Matrix
  415. # # counterparts join/leave rooms. Make sure your 'maxClients' value is
  416. # # high enough! Default: false.
  417. # incremental: false
  418. #
  419. # # Apply specific rules to Matrix rooms. Only matrix-to-IRC takes effect.
  420. # rooms:
  421. # - room: "!fuasirouddJoxtwfge:localhost"
  422. # matrixToIrc:
  423. # initial: false
  424. # incremental: false
  425. #
  426. # # Apply specific rules to IRC channels. Only IRC-to-matrix takes effect.
  427. # channels:
  428. # - channel: "#foo"
  429. # ircToMatrix:
  430. # initial: false
  431. # incremental: false
  432. #
  433. # mappings:
  434. # # 1:many mappings from IRC channels to room IDs on this IRC server.
  435. # # The matrix room must already exist. Your matrix client should expose
  436. # # the room ID in a "settings" page for the room.
  437. # "#thepub": ["!kieouiJuedJoxtVdaG:localhost"]
  438. #
  439. # # Configuration for virtual matrix users. The following variables are
  440. # # exposed:
  441. # # $NICK => The IRC nick
  442. # # $SERVER => The IRC server address (e.g. "irc.example.com")
  443. # matrixClients:
  444. # # The user ID template to use when creating virtual matrix users. This
  445. # # MUST have $NICK somewhere in it.
  446. # # Optional. Default: "@$SERVER_$NICK".
  447. # # Example: "@irc.example.com_Alice:example.com"
  448. # userTemplate: "@irc_$NICK"
  449. # # The display name to use for created matrix clients. This should have
  450. # # $NICK somewhere in it if it is specified. Can also use $SERVER to
  451. # # insert the IRC domain.
  452. # # Optional. Default: "$NICK (IRC)". Example: "Alice (IRC)"
  453. # displayName: "$NICK (IRC)"
  454. # # Number of tries a client can attempt to join a room before the request
  455. # # is discarded. You can also use -1 to never retry or 0 to never give up.
  456. # # Optional. Default: -1
  457. # joinAttempts: -1
  458. #
  459. # # Configuration for virtual IRC users. The following variables are exposed:
  460. # # $LOCALPART => The user ID localpart ("alice" in @alice:localhost)
  461. # # $USERID => The user ID
  462. # # $DISPLAY => The display name of this user, with excluded characters
  463. # # (e.g. space) removed. If the user has no display name, this
  464. # # falls back to $LOCALPART.
  465. # ircClients:
  466. # # The template to apply to every IRC client nick. This MUST have either
  467. # # $DISPLAY or $USERID or $LOCALPART somewhere in it.
  468. # # Optional. Default: "M-$DISPLAY". Example: "M-Alice".
  469. # nickTemplate: "$DISPLAY[m]"
  470. # # True to allow virtual IRC clients to change their nick on this server
  471. # # by issuing !nick <server> <nick> commands to the IRC AS bot.
  472. # # This is completely freeform: it will NOT follow the nickTemplate.
  473. # allowNickChanges: true
  474. # # The max number of IRC clients that will connect. If the limit is
  475. # # reached, the client that spoke the longest time ago will be
  476. # # disconnected and replaced.
  477. # # Optional. Default: 30.
  478. # maxClients: 30
  479. # # IPv6 configuration.
  480. # ipv6:
  481. # # Optional. Set to true to force IPv6 for outgoing connections.
  482. # only: false
  483. # # Optional. The IPv6 prefix to use for generating unique addresses for each
  484. # # connected user. If not specified, all users will connect from the same
  485. # # (default) address. This may require additional OS-specific work to allow
  486. # # for the node process to bind to multiple different source addresses
  487. # # e.g IP_FREEBIND on Linux, which requires an LD_PRELOAD with the library
  488. # # https://github.com/matrix-org/freebindfree as Node does not expose setsockopt.
  489. # # prefix: "2001:0db8:85a3::" # modify appropriately
  490. # #
  491. # # The maximum amount of time in seconds that the client can exist
  492. # # without sending another message before being disconnected. Use 0 to
  493. # # not apply an idle timeout. This value is ignored if this IRC server is
  494. # # mirroring matrix membership lists to IRC. Default: 172800 (48 hours)
  495. # idleTimeout: 10800
  496. # # The number of millseconds to wait between consecutive reconnections if a
  497. # # client gets disconnected. Setting to 0 will cause the scheduling to be
  498. # # disabled, i.e. it will be scheduled immediately (with jitter.
  499. # # Otherwise, the scheduling interval will be used such that one client
  500. # # reconnect for this server will be handled every reconnectIntervalMs ms using
  501. # # a FIFO queue.
  502. # # Default: 5000 (5 seconds)
  503. # reconnectIntervalMs: 5000
  504. # # The number of concurrent reconnects if a user has been disconnected unexpectedly
  505. # # (e.g. a netsplit). You should set this to a reasonably high number so that
  506. # # bridges are not waiting an eternity to reconnect all its clients if
  507. # # we see a massive number of disconnect. This is unrelated to the reconnectIntervalMs
  508. # # setting above which is for connecting on restart of the bridge. Set to 0 to
  509. # # immediately try to reconnect all users.
  510. # # Default: 50
  511. # concurrentReconnectLimit: 50
  512. # # The number of lines to allow being sent by the IRC client that has received
  513. # # a large block of text to send from matrix. If the number of lines that would
  514. # # be sent is > lineLimit, the text will instead be uploaded to matrix and the
  515. # # resulting URI is treated as a file. As such, a link will be sent to the IRC
  516. # # side instead of potentially spamming IRC and getting the IRC client kicked.
  517. # # Default: 3.
  518. # lineLimit: 3
  519. # # A list of user modes to set on every IRC client. For example, "RiG" would set
  520. # # +R, +i and +G on every IRC connection when they have successfully connected.
  521. # # User modes vary wildly depending on the IRC network you're connecting to,
  522. # # so check before setting this value. Some modes may not work as intended
  523. # # through the bridge e.g. caller ID as there is no way to /ACCEPT.
  524. # # Default: "" (no user modes)
  525. # # userModes: "R"
  526. #
  527. # # Configuration for an ident server. If you are running a public bridge it is
  528. # # advised you setup an ident server so IRC mods can ban specific matrix users
  529. # # rather than the application service itself.
  530. # ident:
  531. # # True to listen for Ident requests and respond with the
  532. # # matrix user's user_id (converted to ASCII, respecting RFC 1413).
  533. # # Default: false.
  534. # enabled: false
  535. # # The port to listen on for incoming ident requests.
  536. # # Ports below 1024 require root to listen on, and you may not want this to
  537. # # run as root. Instead, you can get something like an Apache to yank up
  538. # # incoming requests to 113 to a high numbered port. Set the port to listen
  539. # # on instead of 113 here.
  540. # # Default: 113.
  541. # port: 1113
  542. # # The address to listen on for incoming ident requests.
  543. # # Default: 0.0.0.0
  544. # address: "::"
  545. #
  546. # # Configuration for logging. Optional. Default: console debug level logging
  547. # # only.
  548. # logging:
  549. # # Level to log on console/logfile. One of error|warn|info|debug
  550. # level: "debug"
  551. # # The file location to log to. This is relative to the project directory.
  552. # logfile: "debug.log"
  553. # # The file location to log errors to. This is relative to the project
  554. # # directory.
  555. # errfile: "errors.log"
  556. # # Whether to log to the console or not.
  557. # toConsole: true
  558. # # The max number of files to keep. Files will be overwritten eventually due
  559. # # to rotations.
  560. # maxFiles: 5
  561. #
  562. # # Optional. Enable Prometheus metrics. If this is enabled, you MUST install `prom-client`:
  563. # # $ npm install prom-client@6.3.0
  564. # # Metrics will then be available via GET /metrics on the bridge listening port (-p).
  565. # metrics:
  566. # # Whether to actually enable the metric endpoint. Default: false
  567. # enabled: true
  568. # # When collecting remote user active times, which "buckets" should be used. Defaults are given below.
  569. # # The bucket name is formed of a duration and a period. (h=hours,d=days,w=weeks).
  570. # remoteUserAgeBuckets:
  571. # - "1h"
  572. # - "1d"
  573. # - "1w"
  574. #
  575. # # Configuration options for the debug HTTP API. To access this API, you must
  576. # # append ?access_token=$APPSERVICE_TOKEN (from the registration file) to the requests.
  577. # #
  578. # # The debug API exposes the following endpoints:
  579. # #
  580. # # GET /irc/$domain/user/$user_id => Return internal state for the IRC client for this user ID.
  581. # #
  582. # # POST /irc/$domain/user/$user_id => Issue a raw IRC command down this connection.
  583. # # Format: new line delimited commands as per IRC protocol.
  584. # #
  585. # debugApi:
  586. # # True to enable the HTTP API endpoint. Default: false.
  587. # enabled: false
  588. # # The port to host the HTTP API.
  589. # port: 11100
  590. #
  591. # # Configuration for the provisioning API.
  592. # #
  593. # # GET /_matrix/provision/link
  594. # # GET /_matrix/provision/unlink
  595. # # GET /_matrix/provision/listlinks
  596. # #
  597. # provisioning:
  598. # # True to enable the provisioning HTTP endpoint. Default: false.
  599. # enabled: false
  600. # # The number of seconds to wait before giving up on getting a response from
  601. # # an IRC channel operator. If the channel operator does not respond within the
  602. # # allotted time period, the provisioning request will fail.
  603. # # Default: 300 seconds (5 mins)
  604. # requestTimeoutSeconds: 300
  605. #
  606. # # WARNING: The bridge needs to send plaintext passwords to the IRC server, it cannot
  607. # # send a password hash. As a result, passwords (NOT hashes) are stored encrypted in
  608. # # the database.
  609. # #
  610. matrix_appservice_irc_configuration_extension: "{{ matrix_appservice_irc_configuration_extension_yaml|from_yaml if matrix_appservice_irc_configuration_extension_yaml|from_yaml else {} }}"
  611. matrix_appservice_irc_configuration: "{{ matrix_appservice_irc_configuration_yaml|from_yaml|combine(matrix_appservice_irc_configuration_extension, recursive=True) }}"
  612. # Matrix Appservice Discord is a Matrix <-> Discord bridge
  613. # Enable Discord bridge
  614. matrix_appservice_discord_enabled: false
  615. matrix_appservice_discord_docker_image: "halfshot/matrix-appservice-discord:latest"
  616. matrix_appservice_discord_base_path: "{{ matrix_base_data_path }}/appservice-discord"
  617. matrix_appservice_discord_client_id: "YOUR DISCORD APP CLIENT ID"
  618. matrix_appservice_discord_bot_token: "YOUR DISCORD APP BOT TOKEN"
  619. matrix_appservice_discord_configuration_yaml: |
  620. bridge:
  621. domain: "{{ matrix_domain }}"
  622. homeserverUrl: "{{ matrix_homeserver_url }}"
  623. auth:
  624. clientID: "{{matrix_appservice_discord_client_id}}"
  625. botToken: "{{matrix_appservice_discord_bot_token}}"
  626. database:
  627. filename: "/data/discord.db"
  628. userStorePath: "/data/user-store.db"
  629. roomStorePath: "/data/room-store.db"
  630. matrix_appservice_discord_configuration_extension_yaml: |
  631. # This is a sample of the config file showing all avaliable options.
  632. # Where possible we have documented what they do, and all values are the
  633. # default values.
  634. #
  635. #bridge:
  636. # # Domain part of the bridge, e.g. matrix.org
  637. # domain: "localhost"
  638. # # This should be your publically facing URL because Discord may use it to
  639. # # fetch media from the media store.
  640. # homeserverUrl: "http://localhost:8008"
  641. # # Interval at which to process users in the 'presence queue'. If you have
  642. # # 5 users, one user will be processed every 500 milliseconds according to the
  643. # # value below. This has a minimum value of 250.
  644. # # WARNING: This has a high chance of spamming the homeserver with presence
  645. # # updates since it will send one each time somebody changes state or is online.
  646. # presenceInterval: 500
  647. # # Disable setting presence for 'ghost users' which means Discord users on Matrix
  648. # # will not be shown as away or online.
  649. # disablePresence: false
  650. # # Disable sending typing notifications when somebody on Discord types.
  651. # disableTypingNotifications: false
  652. # # Disable deleting messages on Discord if a message is redacted on Matrix.
  653. # disableDeletionForwarding: false
  654. # # Enable users to bridge rooms using !discord commands. See
  655. # # https://t2bot.io/discord for instructions.
  656. # enableSelfServiceBridging: false
  657. # # Disable sending of read receipts for Matrix events which have been
  658. # # successfully bridged to Discord.
  659. # disableReadReceipts: false
  660. # Authentication configuration for the discord bot.
  661. #auth:
  662. # clientID: "12345"
  663. # botToken: "foobar"
  664. #logging:
  665. # # What level should the logger output to the console at.
  666. # console: "warn" #silly, verbose, info, http, warn, error, silent
  667. # lineDateFormat: "MMM-D HH:mm:ss.SSS" # This is in moment.js format
  668. # files:
  669. # - file: "debug.log"
  670. # disable:
  671. # - "PresenceHandler" # Will not capture presence logging
  672. # - file: "warn.log" # Will capture warnings
  673. # level: "warn"
  674. # - file: "botlogs.log" # Will capture logs from DiscordBot
  675. # level: "info"
  676. # enable:
  677. # - "DiscordBot"
  678. #database:
  679. # userStorePath: "user-store.db"
  680. # roomStorePath: "room-store.db"
  681. # # You may either use SQLite or Postgresql for the bridge database, which contains
  682. # # important mappings for events and user puppeting configurations.
  683. # # Use the filename option for SQLite, or connString for Postgresql.
  684. # # If you are migrating, see https://github.com/Half-Shot/matrix-appservice-discord/blob/master/docs/howto.md#migrate-to-postgres-from-sqlite
  685. # # WARNING: You will almost certainly be fine with sqlite unless your bridge
  686. # # is in heavy demand and you suffer from IO slowness.
  687. # filename: "discord.db"
  688. # # connString: "postgresql://user:password@localhost/database_name"
  689. #room:
  690. # # Set the default visibility of alias rooms, defaults to "public".
  691. # # One of: "public", "private"
  692. # defaultVisibility: "public"
  693. #channel:
  694. # # Pattern of the name given to bridged rooms.
  695. # # Can use :guild for the guild name and :name for the channel name.
  696. # namePattern: "[Discord] :guild :name"
  697. # # Changes made to rooms when a channel is deleted.
  698. # deleteOptions:
  699. # # Prefix the room name with a string.
  700. # #namePrefix: "[Deleted]"
  701. # # Prefix the room topic with a string.
  702. # #topicPrefix: "This room has been deleted"
  703. # # Disable people from talking in the room by raising the event PL to 50
  704. # disableMessaging: false
  705. # # Remove the discord alias from the room.
  706. # unsetRoomAlias: true
  707. # # Remove the room from the directory.
  708. # unlistFromDirectory: true
  709. # # Set the room to be unavaliable for joining without an invite.
  710. # setInviteOnly: true
  711. # # Make all the discord users leave the room.
  712. # ghostsLeave: true
  713. #limits:
  714. # # Delay in milliseconds between discord users joining a room.
  715. # roomGhostJoinDelay: 6000
  716. # # Delay in milliseconds before sending messages to discord to avoid echos.
  717. # # (Copies of a sent message may arrive from discord before we've
  718. # # fininished handling it, causing us to echo it back to the room)
  719. # discordSendDelay: 750
  720. matrix_appservice_discord_configuration_extension: "{{ matrix_appservice_discord_configuration_extension_yaml|from_yaml if matrix_appservice_discord_configuration_extension_yaml|from_yaml else {} }}"
  721. matrix_appservice_discord_configuration: "{{ matrix_appservice_discord_configuration_yaml|from_yaml|combine(matrix_appservice_discord_configuration_extension, recursive=True) }}"
  722. # Controls whether searching the public room list is enabled.
  723. matrix_enable_room_list_search: true
  724. # Controls who's allowed to create aliases on this server.
  725. matrix_alias_creation_rules:
  726. - user_id: "*"
  727. alias: "*"
  728. room_id: "*"
  729. action: allow
  730. # Controls who can publish and which rooms can be published in the public room list.
  731. matrix_room_list_publication_rules:
  732. - user_id: "*"
  733. alias: "*"
  734. room_id: "*"
  735. action: allow