Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

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