Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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