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

521 lines
28 KiB

  1. # SPDX-FileCopyrightText: 2019 - 2020 Lee Verberne
  2. # SPDX-FileCopyrightText: 2019 - 2022 MDAD project contributors
  3. # SPDX-FileCopyrightText: 2019 - 2025 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2019 Aaron Raimist
  5. # SPDX-FileCopyrightText: 2019 Alexander Acevedo
  6. # SPDX-FileCopyrightText: 2019 Dan Arnfield
  7. # SPDX-FileCopyrightText: 2019 Hugues Morisset
  8. # SPDX-FileCopyrightText: 2019 Lyubomir Popov
  9. # SPDX-FileCopyrightText: 2019 Sylvia van Os
  10. # SPDX-FileCopyrightText: 2020 John Goerzen
  11. # SPDX-FileCopyrightText: 2021 - 2023 Thom Wiggers
  12. # SPDX-FileCopyrightText: 2021 Ahmad Haghighi
  13. # SPDX-FileCopyrightText: 2021 Joseph Walton-Rivers
  14. # SPDX-FileCopyrightText: 2021 Panagiotis Georgiadis
  15. # SPDX-FileCopyrightText: 2021 Sebastian Gumprich
  16. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  17. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  18. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  19. #
  20. # SPDX-License-Identifier: AGPL-3.0-or-later
  21. ---
  22. # Matrix Appservice IRC is a Matrix <-> IRC bridge
  23. # Project source code URL: https://github.com/matrix-org/matrix-appservice-irc
  24. matrix_appservice_irc_enabled: true
  25. matrix_appservice_irc_container_image_self_build: false
  26. matrix_appservice_irc_docker_repo: "https://github.com/matrix-org/matrix-appservice-irc.git"
  27. matrix_appservice_irc_docker_repo_version: "{{ 'master' if matrix_appservice_irc_version == 'latest' else matrix_appservice_irc_version }}"
  28. matrix_appservice_irc_docker_src_files_path: "{{ matrix_base_data_path }}/appservice-irc/docker-src"
  29. # matrix_appservice_irc_version used to contain the full Docker image tag (e.g. `release-X.X.X`).
  30. # It's a bare version number now. We try to somewhat retain compatibility below.
  31. # renovate: datasource=docker depName=docker.io/matrixdotorg/matrix-appservice-irc
  32. matrix_appservice_irc_version: 3.0.5
  33. matrix_appservice_irc_docker_image: "{{ matrix_appservice_irc_docker_image_registry_prefix }}matrixdotorg/matrix-appservice-irc:{{ matrix_appservice_irc_docker_image_tag }}"
  34. matrix_appservice_irc_docker_image_registry_prefix: "{{ 'localhost/' if matrix_appservice_irc_container_image_self_build else matrix_appservice_irc_docker_image_registry_prefix_upstream }}"
  35. matrix_appservice_irc_docker_image_registry_prefix_upstream: "{{ matrix_appservice_irc_docker_image_registry_prefix_upstream_default }}"
  36. matrix_appservice_irc_docker_image_registry_prefix_upstream_default: docker.io/
  37. matrix_appservice_irc_docker_image_tag: "{{ 'latest' if matrix_appservice_irc_version == 'latest' else ('release-' + matrix_appservice_irc_version) }}"
  38. matrix_appservice_irc_docker_image_force_pull: "{{ matrix_appservice_irc_docker_image.endswith(':latest') }}"
  39. matrix_appservice_irc_base_path: "{{ matrix_base_data_path }}/appservice-irc"
  40. matrix_appservice_irc_config_path: "{{ matrix_appservice_irc_base_path }}/config"
  41. matrix_appservice_irc_data_path: "{{ matrix_appservice_irc_base_path }}/data"
  42. matrix_appservice_irc_homeserver_url: ""
  43. matrix_appservice_irc_homeserver_media_url: '{{ matrix_homeserver_url }}/irc/'
  44. martix_appservice_irc_homeserver_media_bind_port: 11111
  45. matrix_appservice_irc_homeserver_domain: '{{ matrix_domain }}'
  46. matrix_appservice_irc_homeserver_enablePresence: true # noqa var-naming
  47. matrix_appservice_irc_appservice_address: 'http://matrix-appservice-irc:9999'
  48. matrix_appservice_irc_database_engine: nedb
  49. matrix_appservice_irc_database_username: matrix_appservice_irc
  50. matrix_appservice_irc_database_password: 'some-password'
  51. matrix_appservice_irc_database_hostname: ''
  52. matrix_appservice_irc_database_port: 5432
  53. matrix_appservice_irc_database_name: matrix_appservice_irc
  54. matrix_appservice_irc_database_sslmode: disable
  55. # The name of the container network to use when importing a NeDB database into Postgres.
  56. # For Postgres not working in a container, this can be left empty.
  57. matrix_appservice_irc_database_container_network: ''
  58. # This is just the Postgres connection string, if Postgres is used.
  59. # Naming clashes with `matrix_appservice_irc_database_connectionString` somewhat.
  60. matrix_appservice_irc_database_connection_string: 'postgresql://{{ matrix_appservice_irc_database_username }}:{{ matrix_appservice_irc_database_password }}@{{ matrix_appservice_irc_database_hostname }}:{{ matrix_appservice_irc_database_port }}/{{ matrix_appservice_irc_database_name }}?sslmode={{ matrix_appservice_irc_database_sslmode }}'
  61. # This is what actually goes into `database.connectionString` for the bridge.
  62. matrix_appservice_irc_database_connectionString: |- # noqa var-naming
  63. {{
  64. {
  65. 'nedb': 'nedb:///data',
  66. 'postgres': matrix_appservice_irc_database_connection_string,
  67. }[matrix_appservice_irc_database_engine]
  68. }}
  69. matrix_appservice_irc_ircService_servers: [] # noqa var-naming
  70. # Example of `matrix_appservice_irc_ircService_servers` with one server (and all its options):
  71. #
  72. # matrix_appservice_irc_ircService_servers:
  73. # # The address of the server to connect to.
  74. # irc.example.com:
  75. # # A human-readable short name. This is used to label IRC status rooms
  76. # # where Matrix users control their connections.
  77. # # E.g. 'ExampleNet IRC Bridge status'.
  78. # # It is also used in the Third Party Lookup API as the instance `desc`
  79. # # property, where each server is an instance.
  80. # name: "ExampleNet"
  81. # # Additional addresses to connect to, used for load balancing between IRCDs.
  82. # additionalAddresses: [ "irc2.example.com" ]
  83. # # Typically additionalAddresses would be in addition to the address key given above,
  84. # # but some configurations wish to exclusively use additional addresses while reserving
  85. # # the top key for identification purposes. Set this to true to exclusively use the
  86. # # additionalAddresses array when connecting to servers.
  87. # onlyAdditionalAddresses: false
  88. # #
  89. # # [DEPRECATED] Use `name`, above, instead.
  90. # # A human-readable description string
  91. # # description: "Example.com IRC network"
  92. #
  93. # # An ID for uniquely identifying this server amongst other servers being bridged.
  94. # # networkId: "example"
  95. #
  96. # # MXC URL to an icon used as the network icon whenever this network appear in
  97. # # a network list. (Like in the Element room directory, for instance.)
  98. # # icon: mxc://matrix.org/LpsSLrbANVrEIEOgEaVteItf
  99. #
  100. # # The port to connect to. Optional.
  101. # port: 6697
  102. # # Whether to use SSL or not. Default: false.
  103. # ssl: true
  104. # # Whether or not IRC server is using a self-signed cert or not providing CA Chain
  105. # sslselfsign: false
  106. # # Should the connection attempt to identify via SASL (if a server or user password is given)
  107. # # If false, this will use PASS instead. If SASL fails, we do not fallback to PASS.
  108. # sasl: false
  109. # # Whether to allow expired certs when connecting to the IRC server.
  110. # # Usually this should be off. Default: false.
  111. # allowExpiredCerts: false
  112. #
  113. # # Set additional TLS options for the connections to the IRC server.
  114. # #tlsOptions:
  115. # # A specific CA to trust instead of the default CAs. Optional.
  116. # #ca: |
  117. # # -----BEGIN CERTIFICATE-----
  118. # # ...
  119. # # -----END CERTIFICATE-----
  120. # # Server name for the SNI (Server Name Indication) TLS extension. If the address you
  121. # # are using does not report the correct certificate name, you can override it here.
  122. # # servername: real.server.name
  123. # # ...or any options in https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
  124. #
  125. # #
  126. # # The connection password to send for all clients as a PASS (or SASL, if enabled above) command. Optional.
  127. # # password: 'pa$$w0rd'
  128. # #
  129. # # Whether or not to send connection/error notices to real Matrix users. Default: true.
  130. # sendConnectionMessages: true
  131. #
  132. # quitDebounce:
  133. # # Whether parts due to net-splits are debounced for delayMs, to allow
  134. # # time for the netsplit to resolve itself. A netsplit is detected as being
  135. # # a QUIT rate higher than quitsPerSecond. Default: false.
  136. # enabled: false
  137. # # The maximum number of quits per second acceptable above which a netsplit is
  138. # # considered ongoing. Default: 5.
  139. # quitsPerSecond: 5
  140. # # The time window in which to wait before bridging a QUIT to Matrix that occurred during
  141. # # a netsplit. Debouncing is jittered randomly between delayMinMs and delayMaxMs so that the HS
  142. # # is not sent many requests to leave rooms all at once if a netsplit occurs and many
  143. # # people to not rejoin.
  144. # # If the user with the same IRC nick as the one who sent the quit rejoins a channel
  145. # # they are considered back online and the quit is not bridged, so long as the rejoin
  146. # # occurs before the randomly-jittered timeout is not reached.
  147. # # Default: 3600000, = 1h
  148. # delayMinMs: 3600000 # 1h
  149. # # Default: 7200000, = 2h
  150. # delayMaxMs: 7200000 # 2h
  151. #
  152. # # A map for conversion of IRC user modes to Matrix power levels. This enables bridging
  153. # # of IRC ops to Matrix power levels only, it does not enable the reverse. If a user has
  154. # # been given multiple modes, the one that maps to the highest power level will be used.
  155. # modePowerMap:
  156. # o: 50
  157. # v: 1
  158. # botConfig:
  159. # # Enable the presence of the bot in IRC channels. The bot serves as the entity
  160. # # which maps from IRC -> Matrix. You can disable the bot entirely which
  161. # # means IRC -> Matrix chat will be shared by active "M-Nick" connections
  162. # # in the room. If there are no users in the room (or if there are users
  163. # # but their connections are not on IRC) then nothing will be bridged to
  164. # # Matrix. If you're concerned about the bot being treated as a "logger"
  165. # # entity, then you may want to disable the bot. If you want IRC->Matrix
  166. # # but don't want to have TCP connections to IRC unless a Matrix user speaks
  167. # # (because your client connection limit is low), then you may want to keep
  168. # # the bot enabled. Default: true.
  169. # # NB: If the bot is disabled, you SHOULD have matrix-to-IRC syncing turned
  170. # # on, else there will be no users and no bot in a channel (meaning no
  171. # # messages to Matrix!) until a Matrix user speaks which makes a client
  172. # # join the target IRC channel.
  173. # # NBB: The bridge bot IRC client will still join the target IRC network so
  174. # # it can service bridge-specific queries from the IRC-side e.g. so
  175. # # real IRC clients have a way to change their Matrix display name.
  176. # # See https://github.com/matrix-org/matrix-appservice-irc/issues/55
  177. # enabled: true
  178. # # The nickname to give the AS bot.
  179. # nick: "MatrixBot"
  180. # # The username to give to the AS bot. Defaults to "matrixbot"
  181. # username: "matrixbot"
  182. # # The password to give to NickServ or IRC Server for this nick. Optional.
  183. # # password: "helloworld"
  184. # #
  185. # # Join channels even if there are no Matrix users on the other side of
  186. # # the bridge. Set to false to prevent the bot from joining channels which have no
  187. # # real Matrix users in them, even if there is a mapping for the channel.
  188. # # Default: true
  189. # joinChannelsIfNoUsers: true
  190. #
  191. # # Configuration for PMs / private 1:1 communications between users.
  192. # privateMessages:
  193. # # Enable the ability for PMs to be sent to/from IRC/Matrix.
  194. # # Default: true.
  195. # enabled: true
  196. # # Prevent Matrix users from sending PMs to the following IRC nicks.
  197. # # Optional. Default: [].
  198. # # exclude: ["Alice", "Bob"] # NOT YET IMPLEMENTED
  199. #
  200. # # Should created Matrix PM rooms be federated? If false, only users on the
  201. # # HS attached to this AS will be able to interact with this room.
  202. # # Optional. Default: true.
  203. # federate: true
  204. #
  205. # # Configuration for mappings not explicitly listed in the 'mappings'
  206. # # section.
  207. # dynamicChannels:
  208. # # Enable the ability for Matrix users to join *any* channel on this IRC
  209. # # network.
  210. # # Default: false.
  211. # enabled: true
  212. # # Should the AS create a room alias for the new Matrix room? The form of
  213. # # the alias can be modified via 'aliasTemplate'. Default: true.
  214. # createAlias: true
  215. # # Should the AS publish the new Matrix room to the public room list so
  216. # # anyone can see it? Default: true.
  217. # published: true
  218. # # Publish the rooms to the homeserver directory, as oppose to the appservice
  219. # # room directory. Only used if `published` is on.
  220. # # Default: false
  221. # useHomeserverDirectory: true
  222. # # What should the join_rule be for the new Matrix room? If 'public',
  223. # # anyone can join the room. If 'invite', only users with an invite can
  224. # # join the room. Note that if an IRC channel has +k or +i set on it,
  225. # # join_rules will be set to 'invite' until these modes are removed.
  226. # # Default: "public".
  227. # joinRule: public
  228. # # Should created Matrix rooms be federated? If false, only users on the
  229. # # HS attached to this AS will be able to interact with this room.
  230. # # Default: true.
  231. # federate: true
  232. # # Force this room version when creating IRC channels. Beware if the homeserver doesn't
  233. # # support the room version then the request will fail. By default, no version is requested.
  234. # # roomVersion: "1"
  235. # # The room alias template to apply when creating new aliases. This only
  236. # # applies if createAlias is 'true'. The following variables are exposed:
  237. # # $SERVER => The IRC server address (e.g. "irc.example.com")
  238. # # $CHANNEL => The IRC channel (e.g. "#python")
  239. # # This MUST have $CHANNEL somewhere in it.
  240. # #
  241. # # In certain circumstances you might want to bridge your whole IRC network as a
  242. # # homeserver (e.g. #matrix:libera.chat). For these use cases, you can set the
  243. # # template to just be $CHANNEL. Doing so will preclude you from supporting
  244. # # other prefix characters though.
  245. # #
  246. # # Default: '#irc_$SERVER_$CHANNEL'
  247. # aliasTemplate: "#irc_$CHANNEL"
  248. # # A list of user IDs which the AS bot will send invites to in response
  249. # # to a !join. Only applies if joinRule is 'invite'. Default: []
  250. # # whitelist:
  251. # # - "@foo:example.com"
  252. # # - "@bar:example.com"
  253. # #
  254. # # Prevent the given list of channels from being mapped under any
  255. # # circumstances.
  256. # # exclude: ["#foo", "#bar"]
  257. #
  258. # # excludedUsers:
  259. # # - regex: "@.*:evilcorp.com"
  260. # # kickReason: "We don't like Evilcorp"
  261. #
  262. # # Configuration for controlling how Matrix and IRC membership lists are
  263. # # synced.
  264. # membershipLists:
  265. # # Enable the syncing of membership lists between IRC and Matrix. This
  266. # # can have a significant effect on performance on startup as the lists are
  267. # # synced. This must be enabled for anything else in this section to take
  268. # # effect. Default: false.
  269. # enabled: false
  270. #
  271. # # Syncing membership lists at startup can result in hundreds of members to
  272. # # process all at once. This timer drip feeds membership entries at the
  273. # # specified rate. Default: 10000. (10s)
  274. # floodDelayMs: 10000
  275. #
  276. # global:
  277. # ircToMatrix:
  278. # # Get a snapshot of all real IRC users on a channel (via NAMES) and
  279. # # join their virtual Matrix clients to the room.
  280. # initial: false
  281. # # Make virtual Matrix clients join and leave rooms as their real IRC
  282. # # counterparts join/part channels. Default: false.
  283. # incremental: false
  284. # # Should the bridge check if all Matrix users are connected to IRC and
  285. # # joined to the channel before relaying messages into the room.
  286. # #
  287. # # This is considered a safety net to avoid any leakages by the bridge to
  288. # # unconnected users, but given it ignores all IRC messages while users
  289. # # are still connecting it may be overkill.
  290. # requireMatrixJoined: false
  291. #
  292. # matrixToIrc:
  293. # # Get a snapshot of all real Matrix users in the room and join all of
  294. # # them to the mapped IRC channel on startup. Default: false.
  295. # initial: false
  296. # # Make virtual IRC clients join and leave channels as their real Matrix
  297. # # counterparts join/leave rooms. Make sure your 'maxClients' value is
  298. # # high enough! Default: false.
  299. # incremental: false
  300. #
  301. # # Apply specific rules to Matrix rooms. Only matrix-to-IRC takes effect.
  302. # rooms:
  303. # - room: "!qporfwt:localhost"
  304. # matrixToIrc:
  305. # initial: false
  306. # incremental: false
  307. #
  308. # # Apply specific rules to IRC channels. Only IRC-to-matrix takes effect.
  309. # channels:
  310. # - channel: "#foo"
  311. # ircToMatrix:
  312. # initial: false
  313. # incremental: false
  314. # requireMatrixJoined: false
  315. #
  316. # # Should the bridge ignore users which are not considered active on the bridge
  317. # # during startup
  318. # ignoreIdleUsersOnStartup:
  319. # enabled: true
  320. # # How many hours can a user be considered idle for before they are considered
  321. # # ignoreable
  322. # idleForHours: 720
  323. # # A regex which will exclude matching MXIDs from this check.
  324. # exclude: "foobar"
  325. #
  326. # mappings:
  327. # # 1:many mappings from IRC channels to room IDs on this IRC server.
  328. # # The Matrix room must already exist. Your Matrix client should expose
  329. # # the room ID in a "settings" page for the room.
  330. # "#thepub":
  331. # roomIds: ["!qporfwt:localhost"]
  332. # # Channel key/password to use. Optional. If provided, Matrix users do
  333. # # not need to know the channel key in order to join the channel.
  334. # # key: "secret"
  335. #
  336. # # Configuration for virtual Matrix users. The following variables are
  337. # # exposed:
  338. # # $NICK => The IRC nick
  339. # # $SERVER => The IRC server address (e.g. "irc.example.com")
  340. # matrixClients:
  341. # # The user ID template to use when creating virtual Matrix users. This
  342. # # MUST start with an @ and have $NICK somewhere in it.
  343. # # Optional. Default: "@$SERVER_$NICK".
  344. # # Example: "@irc.example.com_Alice:example.com"
  345. # userTemplate: "@irc_$NICK"
  346. # # The display name to use for created Matrix clients. This should have
  347. # # $NICK somewhere in it if it is specified. Can also use $SERVER to
  348. # # insert the IRC domain.
  349. # # Optional. Default: "$NICK". Example: "Alice"
  350. # displayName: "$NICK"
  351. # # Number of tries a client can attempt to join a room before the request
  352. # # is discarded. You can also use -1 to never retry or 0 to never give up.
  353. # # Optional. Default: -1
  354. # joinAttempts: -1
  355. #
  356. # # Configuration for virtual IRC users. The following variables are exposed:
  357. # # $LOCALPART => The user ID localpart ("alice" in @alice:localhost)
  358. # # $USERID => The user ID
  359. # # $DISPLAY => The display name of this user, with excluded characters
  360. # # (e.g. space) removed. If the user has no display name, this
  361. # # falls back to $LOCALPART.
  362. # ircClients:
  363. # # The template to apply to every IRC client nick. This MUST have either
  364. # # $DISPLAY or $USERID or $LOCALPART somewhere in it.
  365. # # Optional. Default: "M-$DISPLAY". Example: "M-Alice".
  366. # nickTemplate: "$DISPLAY[m]"
  367. # # True to allow virtual IRC clients to change their nick on this server
  368. # # by issuing !nick <server> <nick> commands to the IRC AS bot.
  369. # # This is completely freeform: it will NOT follow the nickTemplate.
  370. # allowNickChanges: true
  371. # # The max number of IRC clients that will connect. If the limit is
  372. # # reached, the client that spoke the longest time ago will be
  373. # # disconnected and replaced.
  374. # # Optional. Default: 30.
  375. # maxClients: 30
  376. # # IPv6 configuration.
  377. # ipv6:
  378. # # Optional. Set to true to force IPv6 for outgoing connections.
  379. # only: false
  380. # # Optional. The IPv6 prefix to use for generating unique addresses for each
  381. # # connected user. If not specified, all users will connect from the same
  382. # # (default) address. This may require additional OS-specific work to allow
  383. # # for the node process to bind to multiple different source addresses
  384. # # Linux kernels 4.3+ support sysctl net.ipv6.ip_nonlocal_bind=1
  385. # # Older kernels will need IP_FREEBIND, which requires an LD_PRELOAD with the library
  386. # # https://github.com/matrix-org/freebindfree as Node does not expose setsockopt.
  387. # # prefix: "2001:0db8:85a3::" # modify appropriately
  388. #
  389. # # Optional. Define blocks of IPv6 addresses for different homeservers
  390. # # which can be used to restrict users of those homeservers to a given
  391. # # IP. These blocks should be considered immutable once set, as changing
  392. # # the startFrom value will NOT adjust existing IP addresses.
  393. # # Changing the startFrom value to a lower value may conflict with existing clients.
  394. # # Multiple homeservers may NOT share blocks.
  395. # blocks:
  396. # - homeserver: another-server.org
  397. # startFrom: '10:0000'
  398. # #
  399. # # The maximum amount of time in seconds that the client can exist
  400. # # without sending another message before being disconnected. Use 0 to
  401. # # not apply an idle timeout. This value is ignored if this IRC server is
  402. # # mirroring Matrix membership lists to IRC. Default: 172800 (48 hours)
  403. # idleTimeout: 10800
  404. # # The number of milliseconds to wait between consecutive reconnections if a
  405. # # client gets disconnected. Setting to 0 will cause the scheduling to be
  406. # # disabled, i.e. it will be scheduled immediately (with jitter.
  407. # # Otherwise, the scheduling interval will be used such that one client
  408. # # reconnect for this server will be handled every reconnectIntervalMs ms using
  409. # # a FIFO queue.
  410. # # Default: 5000 (5 seconds)
  411. # reconnectIntervalMs: 5000
  412. # # The number of concurrent reconnects if a user has been disconnected unexpectedly
  413. # # (e.g. a netsplit). You should set this to a reasonably high number so that
  414. # # bridges are not waiting an eternity to reconnect all its clients if
  415. # # we see a massive number of disconnect. This is unrelated to the reconnectIntervalMs
  416. # # setting above which is for connecting on restart of the bridge. Set to 0 to
  417. # # immediately try to reconnect all users.
  418. # # Default: 50
  419. # concurrentReconnectLimit: 50
  420. # # The number of lines to allow being sent by the IRC client that has received
  421. # # a large block of text to send from matrix. If the number of lines that would
  422. # # be sent is > lineLimit, the text will instead be uploaded to Matrix and the
  423. # # resulting URI is treated as a file. As such, a link will be sent to the IRC
  424. # # side instead of potentially spamming IRC and getting the IRC client kicked.
  425. # # Default: 3.
  426. # lineLimit: 3
  427. # # A list of user modes to set on every IRC client. For example, "RiG" would set
  428. # # +R, +i and +G on every IRC connection when they have successfully connected.
  429. # # User modes vary wildly depending on the IRC network you're connecting to,
  430. # # so check before setting this value. Some modes may not work as intended
  431. # # through the bridge e.g. caller ID as there is no way to /ACCEPT.
  432. # # Default: "" (no user modes)
  433. # # userModes: "R"
  434. # # The format of the realname defined for users, either mxid or reverse-mxid
  435. # realnameFormat: "mxid"
  436. # # The minimum time to wait between connection attempts if we were disconnected
  437. # # due to throttling.
  438. # # pingTimeoutMs: 600000
  439. # # The rate at which to send pings to the IRCd if the client is being quiet for a while.
  440. # # Whilst the IRCd *should* be sending pings to us to keep the connection alive, it appears
  441. # # that sometimes they don't get around to it and end up ping timing us out.
  442. # # pingRateMs: 60000
  443. # # Choose which conditions the IRC bridge should kick Matrix users for. Decisions to this from
  444. # # defaults should be taken with care as it may dishonestly repesent Matrix users on the IRC
  445. # # network, and cause your bridge to be banned.
  446. # kickOn:
  447. # # Kick a Matrix user from a bridged room if they fail to join the IRC channel.
  448. # channelJoinFailure: true
  449. # # Kick a Matrix user from ALL rooms if they are unable to get connected to IRC.
  450. # ircConnectionFailure: true
  451. # # Kick a Matrix user from ALL rooms if they choose to QUIT the IRC network.
  452. # userQuit: true
  453. # Controls whether the matrix-appservice-discord container exposes its HTTP port (tcp/9999 in the container).
  454. #
  455. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  456. matrix_appservice_irc_container_http_host_bind_port: ''
  457. matrix_appservice_irc_container_network: ""
  458. matrix_appservice_irc_container_additional_networks: "{{ matrix_appservice_irc_container_additional_networks_auto + matrix_appservice_irc_container_additional_networks_custom }}"
  459. matrix_appservice_irc_container_additional_networks_auto: []
  460. matrix_appservice_irc_container_additional_networks_custom: []
  461. # A list of extra arguments to pass to the container
  462. matrix_appservice_irc_container_extra_arguments: []
  463. # List of systemd services that matrix-appservice-irc.service depends on.
  464. matrix_appservice_irc_systemd_required_services_list: "{{ matrix_appservice_irc_systemd_required_services_list_default + matrix_appservice_irc_systemd_required_services_list_auto + matrix_appservice_irc_systemd_required_services_list_custom }}"
  465. matrix_appservice_irc_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  466. matrix_appservice_irc_systemd_required_services_list_auto: []
  467. matrix_appservice_irc_systemd_required_services_list_custom: []
  468. # List of systemd services that matrix-appservice-irc.service wants
  469. matrix_appservice_irc_systemd_wanted_services_list: []
  470. matrix_appservice_irc_appservice_token: ''
  471. matrix_appservice_irc_homeserver_token: ''
  472. matrix_appservice_irc_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  473. matrix_appservice_irc_configuration_extension_yaml: |
  474. # Your custom YAML configuration for Appservice IRC servers goes here.
  475. # This configuration extends the default starting configuration (`matrix_appservice_irc_configuration_yaml`).
  476. #
  477. # You can override individual variables from the default configuration, or introduce new ones.
  478. #
  479. # If you need something more special, you can take full control by
  480. # completely redefining `matrix_appservice_irc_configuration_yaml`.
  481. matrix_appservice_irc_configuration_extension: "{{ matrix_appservice_irc_configuration_extension_yaml | from_yaml if matrix_appservice_irc_configuration_extension_yaml | from_yaml is mapping else {} }}"
  482. matrix_appservice_irc_configuration: "{{ matrix_appservice_irc_configuration_yaml | from_yaml | combine(matrix_appservice_irc_configuration_extension, recursive=True) }}"
  483. # The original registration.yaml file generated by AppService IRC is merged with this config override,
  484. # to produce the final registration.yaml file ultimately used by both the bridge and the homeserver.
  485. #
  486. # We do this to ensure consistency:
  487. # - always having an up-to-date registration.yaml file (synced with the configuration file)
  488. # - always having the same AS/HS token and appservice ID in the registration.yaml file
  489. #
  490. # Learn more about this in `setup_install.yml`
  491. matrix_appservice_irc_registration_override_yaml: |
  492. id: appservice-irc
  493. as_token: "{{ matrix_appservice_irc_appservice_token }}"
  494. hs_token: "{{ matrix_appservice_irc_homeserver_token }}"
  495. matrix_appservice_irc_registration_override: "{{ matrix_appservice_irc_registration_override_yaml | from_yaml }}"