Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

512 wiersze
25 KiB

  1. # Matrix Appservice IRC is a Matrix <-> IRC bridge
  2. # See: https://github.com/matrix-org/matrix-appservice-irc
  3. matrix_appservice_irc_enabled: true
  4. matrix_appservice_irc_docker_image: "matrixdotorg/matrix-appservice-irc:release-0.17.1"
  5. matrix_appservice_irc_docker_image_force_pull: "{{ matrix_appservice_irc_docker_image.endswith(':latest') }}"
  6. matrix_appservice_irc_base_path: "{{ matrix_base_data_path }}/appservice-irc"
  7. matrix_appservice_irc_config_path: "{{ matrix_appservice_irc_base_path }}/config"
  8. matrix_appservice_irc_data_path: "{{ matrix_appservice_irc_base_path }}/data"
  9. matrix_appservice_irc_homeserver_url: 'http://matrix-synapse:8008'
  10. matrix_appservice_irc_homeserver_media_url: 'https://{{ matrix_server_fqn_matrix }}'
  11. matrix_appservice_irc_homeserver_domain: '{{ matrix_domain }}'
  12. matrix_appservice_irc_homeserver_enablePresence: true
  13. matrix_appservice_irc_appservice_address: 'http://matrix-appservice-irc:9999'
  14. matrix_appservice_irc_ircService_servers: []
  15. # Example of `matrix_appservice_irc_ircService_servers` with one server (and all its options):
  16. #
  17. # matrix_appservice_irc_ircService_servers:
  18. # # The address of the server to connect to.
  19. # irc.example.com:
  20. # # A human-readable short name. This is used to label IRC status rooms
  21. # # where matrix users control their connections.
  22. # # E.g. 'ExampleNet IRC Bridge status'.
  23. # # It is also used in the Third Party Lookup API as the instance `desc`
  24. # # property, where each server is an instance.
  25. # name: "ExampleNet"
  26. # additionalAddresses: [ "irc2.example.com" ]
  27. # #
  28. # # [DEPRECATED] Use `name`, above, instead.
  29. # # A human-readable description string
  30. # # description: "Example.com IRC network"
  31. # # An ID for uniquely identifying this server amongst other servers being bridged.
  32. # # networkId: "example"
  33. # # URL to an icon used as the network icon whenever this network appear in
  34. # # a network list. (Like in the riot room directory, for instance.)
  35. # # icon: https://example.com/images/hash.png
  36. # # The port to connect to. Optional.
  37. # port: 6697
  38. # # Whether to use SSL or not. Default: false.
  39. # ssl: true
  40. # # Whether or not IRC server is using a self-signed cert or not providing CA Chain
  41. # sslselfsign: false
  42. # # Should the connection attempt to identify via SASL (if a server or user password is given)
  43. # # If false, this will use PASS instead. If SASL fails, we do not fallback to PASS.
  44. # sasl: false
  45. # # Whether to allow expired certs when connecting to the IRC server.
  46. # # Usually this should be off. Default: false.
  47. # allowExpiredCerts: false
  48. # # A specific CA to trust instead of the default CAs. Optional.
  49. # #ca: |
  50. # # -----BEGIN CERTIFICATE-----
  51. # # ...
  52. # # -----END CERTIFICATE-----
  53. # #
  54. # # The connection password to send for all clients as a PASS (or SASL, if enabled above) command. Optional.
  55. # # password: 'pa$$w0rd'
  56. # #
  57. # # Whether or not to send connection/error notices to real Matrix users. Default: true.
  58. # sendConnectionMessages: true
  59. # quitDebounce:
  60. # # Whether parts due to net-splits are debounced for delayMs, to allow
  61. # # time for the netsplit to resolve itself. A netsplit is detected as being
  62. # # a QUIT rate higher than quitsPerSecond. Default: false.
  63. # enabled: false
  64. # # The maximum number of quits per second acceptable above which a netsplit is
  65. # # considered ongoing. Default: 5.
  66. # quitsPerSecond: 5
  67. # # The time window in which to wait before bridging a QUIT to Matrix that occurred during
  68. # # a netsplit. Debouncing is jittered randomly between delayMinMs and delayMaxMs so that the HS
  69. # # is not sent many requests to leave rooms all at once if a netsplit occurs and many
  70. # # people to not rejoin.
  71. # # If the user with the same IRC nick as the one who sent the quit rejoins a channel
  72. # # they are considered back online and the quit is not bridged, so long as the rejoin
  73. # # occurs before the randomly-jittered timeout is not reached.
  74. # # Default: 3600000, = 1h
  75. # delayMinMs: 3600000 # 1h
  76. # # Default: 7200000, = 2h
  77. # delayMaxMs: 7200000 # 2h
  78. # # A map for conversion of IRC user modes to Matrix power levels. This enables bridging
  79. # # of IRC ops to Matrix power levels only, it does not enable the reverse. If a user has
  80. # # been given multiple modes, the one that maps to the highest power level will be used.
  81. # modePowerMap:
  82. # o: 50
  83. # botConfig:
  84. # # Enable the presence of the bot in IRC channels. The bot serves as the entity
  85. # # which maps from IRC -> Matrix. You can disable the bot entirely which
  86. # # means IRC -> Matrix chat will be shared by active "M-Nick" connections
  87. # # in the room. If there are no users in the room (or if there are users
  88. # # but their connections are not on IRC) then nothing will be bridged to
  89. # # Matrix. If you're concerned about the bot being treated as a "logger"
  90. # # entity, then you may want to disable the bot. If you want IRC->Matrix
  91. # # but don't want to have TCP connections to IRC unless a Matrix user speaks
  92. # # (because your client connection limit is low), then you may want to keep
  93. # # the bot enabled. Default: true.
  94. # # NB: If the bot is disabled, you SHOULD have matrix-to-IRC syncing turned
  95. # # on, else there will be no users and no bot in a channel (meaning no
  96. # # messages to Matrix!) until a Matrix user speaks which makes a client
  97. # # join the target IRC channel.
  98. # # NBB: The bridge bot IRC client will still join the target IRC network so
  99. # # it can service bridge-specific queries from the IRC-side e.g. so
  100. # # real IRC clients have a way to change their Matrix display name.
  101. # # See https://github.com/matrix-org/matrix-appservice-irc/issues/55
  102. # enabled: true
  103. # # The nickname to give the AS bot.
  104. # nick: "MatrixBot"
  105. # # The password to give to NickServ or IRC Server for this nick. Optional.
  106. # # password: "helloworld"
  107. # #
  108. # # Join channels even if there are no Matrix users on the other side of
  109. # # the bridge. Set to false to prevent the bot from joining channels which have no
  110. # # real matrix users in them, even if there is a mapping for the channel.
  111. # # Default: true
  112. # joinChannelsIfNoUsers: true
  113. # # Configuration for PMs / private 1:1 communications between users.
  114. # privateMessages:
  115. # # Enable the ability for PMs to be sent to/from IRC/Matrix.
  116. # # Default: true.
  117. # enabled: true
  118. # # Prevent Matrix users from sending PMs to the following IRC nicks.
  119. # # Optional. Default: [].
  120. # # exclude: ["Alice", "Bob"] # NOT YET IMPLEMENTED
  121. # # Should created Matrix PM rooms be federated? If false, only users on the
  122. # # HS attached to this AS will be able to interact with this room.
  123. # # Optional. Default: true.
  124. # federate: true
  125. # # Configuration for mappings not explicitly listed in the 'mappings'
  126. # # section.
  127. # dynamicChannels:
  128. # # Enable the ability for Matrix users to join *any* channel on this IRC
  129. # # network.
  130. # # Default: false.
  131. # enabled: true
  132. # # Should the AS create a room alias for the new Matrix room? The form of
  133. # # the alias can be modified via 'aliasTemplate'. Default: true.
  134. # createAlias: true
  135. # # Should the AS publish the new Matrix room to the public room list so
  136. # # anyone can see it? Default: true.
  137. # published: true
  138. # # What should the join_rule be for the new Matrix room? If 'public',
  139. # # anyone can join the room. If 'invite', only users with an invite can
  140. # # join the room. Note that if an IRC channel has +k or +i set on it,
  141. # # join_rules will be set to 'invite' until these modes are removed.
  142. # # Default: "public".
  143. # joinRule: public
  144. # # This will set the m.room.related_groups state event in newly created rooms
  145. # # with the given groupId. This means flares will show up on IRC users in those rooms.
  146. # # This should be set to the same thing as namespaces.users.group_id in irc_registration.
  147. # # This does not alter existing rooms.
  148. # # Leaving this option empty will not set the event.
  149. # groupId: +myircnetwork:localhost
  150. # # Should created Matrix rooms be federated? If false, only users on the
  151. # # HS attached to this AS will be able to interact with this room.
  152. # # Default: true.
  153. # federate: true
  154. # # The room alias template to apply when creating new aliases. This only
  155. # # applies if createAlias is 'true'. The following variables are exposed:
  156. # # $SERVER => The IRC server address (e.g. "irc.example.com")
  157. # # $CHANNEL => The IRC channel (e.g. "#python")
  158. # # This MUST have $CHANNEL somewhere in it.
  159. # # Default: '#irc_$SERVER_$CHANNEL'
  160. # aliasTemplate: "#irc_$CHANNEL"
  161. # # A list of user IDs which the AS bot will send invites to in response
  162. # # to a !join. Only applies if joinRule is 'invite'. Default: []
  163. # # whitelist:
  164. # # - "@foo:example.com"
  165. # # - "@bar:example.com"
  166. # #
  167. # # Prevent the given list of channels from being mapped under any
  168. # # circumstances.
  169. # # exclude: ["#foo", "#bar"]
  170. # # Configuration for controlling how Matrix and IRC membership lists are
  171. # # synced.
  172. # membershipLists:
  173. # # Enable the syncing of membership lists between IRC and Matrix. This
  174. # # can have a significant effect on performance on startup as the lists are
  175. # # synced. This must be enabled for anything else in this section to take
  176. # # effect. Default: false.
  177. # enabled: false
  178. # # Syncing membership lists at startup can result in hundreds of members to
  179. # # process all at once. This timer drip feeds membership entries at the
  180. # # specified rate. Default: 10000. (10s)
  181. # floodDelayMs: 10000
  182. # global:
  183. # ircToMatrix:
  184. # # Get a snapshot of all real IRC users on a channel (via NAMES) and
  185. # # join their virtual matrix clients to the room.
  186. # initial: false
  187. # # Make virtual matrix clients join and leave rooms as their real IRC
  188. # # counterparts join/part channels. Default: false.
  189. # incremental: false
  190. # matrixToIrc:
  191. # # Get a snapshot of all real Matrix users in the room and join all of
  192. # # them to the mapped IRC channel on startup. Default: false.
  193. # initial: false
  194. # # Make virtual IRC clients join and leave channels as their real Matrix
  195. # # counterparts join/leave rooms. Make sure your 'maxClients' value is
  196. # # high enough! Default: false.
  197. # incremental: false
  198. # # Apply specific rules to Matrix rooms. Only matrix-to-IRC takes effect.
  199. # rooms:
  200. # - room: "!fuasirouddJoxtwfge:localhost"
  201. # matrixToIrc:
  202. # initial: false
  203. # incremental: false
  204. # # Apply specific rules to IRC channels. Only IRC-to-matrix takes effect.
  205. # channels:
  206. # - channel: "#foo"
  207. # ircToMatrix:
  208. # initial: false
  209. # incremental: false
  210. # mappings:
  211. # # 1:many mappings from IRC channels to room IDs on this IRC server.
  212. # # The matrix room must already exist. Your matrix client should expose
  213. # # the room ID in a "settings" page for the room.
  214. # "#thepub":
  215. # roomIds: ["!kieouiJuedJoxtVdaG:localhost"]
  216. # # Channel key/password to use. Optional. If provided, matrix users do
  217. # # not need to know the channel key in order to join the channel.
  218. # # key: "secret"
  219. # # Configuration for virtual matrix users. The following variables are
  220. # # exposed:
  221. # # $NICK => The IRC nick
  222. # # $SERVER => The IRC server address (e.g. "irc.example.com")
  223. # matrixClients:
  224. # # The user ID template to use when creating virtual matrix users. This
  225. # # MUST have $NICK somewhere in it.
  226. # # Optional. Default: "@$SERVER_$NICK".
  227. # # Example: "@irc.example.com_Alice:example.com"
  228. # userTemplate: "@irc_$NICK"
  229. # # The display name to use for created matrix clients. This should have
  230. # # $NICK somewhere in it if it is specified. Can also use $SERVER to
  231. # # insert the IRC domain.
  232. # # Optional. Default: "$NICK (IRC)". Example: "Alice (IRC)"
  233. # displayName: "$NICK (IRC)"
  234. # # Number of tries a client can attempt to join a room before the request
  235. # # is discarded. You can also use -1 to never retry or 0 to never give up.
  236. # # Optional. Default: -1
  237. # joinAttempts: -1
  238. # # Configuration for virtual IRC users. The following variables are exposed:
  239. # # $LOCALPART => The user ID localpart ("alice" in @alice:localhost)
  240. # # $USERID => The user ID
  241. # # $DISPLAY => The display name of this user, with excluded characters
  242. # # (e.g. space) removed. If the user has no display name, this
  243. # # falls back to $LOCALPART.
  244. # ircClients:
  245. # # The template to apply to every IRC client nick. This MUST have either
  246. # # $DISPLAY or $USERID or $LOCALPART somewhere in it.
  247. # # Optional. Default: "M-$DISPLAY". Example: "M-Alice".
  248. # nickTemplate: "$DISPLAY[m]"
  249. # # True to allow virtual IRC clients to change their nick on this server
  250. # # by issuing !nick <server> <nick> commands to the IRC AS bot.
  251. # # This is completely freeform: it will NOT follow the nickTemplate.
  252. # allowNickChanges: true
  253. # # The max number of IRC clients that will connect. If the limit is
  254. # # reached, the client that spoke the longest time ago will be
  255. # # disconnected and replaced.
  256. # # Optional. Default: 30.
  257. # maxClients: 30
  258. # # IPv6 configuration.
  259. # ipv6:
  260. # # Optional. Set to true to force IPv6 for outgoing connections.
  261. # only: false
  262. # # Optional. The IPv6 prefix to use for generating unique addresses for each
  263. # # connected user. If not specified, all users will connect from the same
  264. # # (default) address. This may require additional OS-specific work to allow
  265. # # for the node process to bind to multiple different source addresses
  266. # # e.g IP_FREEBIND on Linux, which requires an LD_PRELOAD with the library
  267. # # https://github.com/matrix-org/freebindfree as Node does not expose setsockopt.
  268. # # prefix: "2001:0db8:85a3::" # modify appropriately
  269. # #
  270. # # The maximum amount of time in seconds that the client can exist
  271. # # without sending another message before being disconnected. Use 0 to
  272. # # not apply an idle timeout. This value is ignored if this IRC server is
  273. # # mirroring matrix membership lists to IRC. Default: 172800 (48 hours)
  274. # idleTimeout: 10800
  275. # # The number of millseconds to wait between consecutive reconnections if a
  276. # # client gets disconnected. Setting to 0 will cause the scheduling to be
  277. # # disabled, i.e. it will be scheduled immediately (with jitter.
  278. # # Otherwise, the scheduling interval will be used such that one client
  279. # # reconnect for this server will be handled every reconnectIntervalMs ms using
  280. # # a FIFO queue.
  281. # # Default: 5000 (5 seconds)
  282. # reconnectIntervalMs: 5000
  283. # # The number of concurrent reconnects if a user has been disconnected unexpectedly
  284. # # (e.g. a netsplit). You should set this to a reasonably high number so that
  285. # # bridges are not waiting an eternity to reconnect all its clients if
  286. # # we see a massive number of disconnect. This is unrelated to the reconnectIntervalMs
  287. # # setting above which is for connecting on restart of the bridge. Set to 0 to
  288. # # immediately try to reconnect all users.
  289. # # Default: 50
  290. # concurrentReconnectLimit: 50
  291. # # The number of lines to allow being sent by the IRC client that has received
  292. # # a large block of text to send from matrix. If the number of lines that would
  293. # # be sent is > lineLimit, the text will instead be uploaded to matrix and the
  294. # # resulting URI is treated as a file. As such, a link will be sent to the IRC
  295. # # side instead of potentially spamming IRC and getting the IRC client kicked.
  296. # # Default: 3.
  297. # lineLimit: 3
  298. # # A list of user modes to set on every IRC client. For example, "RiG" would set
  299. # # +R, +i and +G on every IRC connection when they have successfully connected.
  300. # # User modes vary wildly depending on the IRC network you're connecting to,
  301. # # so check before setting this value. Some modes may not work as intended
  302. # # through the bridge e.g. caller ID as there is no way to /ACCEPT.
  303. # # Default: "" (no user modes)
  304. # # userModes: "R"
  305. # Controls whether the matrix-appservice-discord container exposes its HTTP port (tcp/9999 in the container).
  306. #
  307. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9999"), or empty string to not expose.
  308. matrix_appservice_irc_container_http_host_bind_port: ''
  309. # A list of extra arguments to pass to the container
  310. matrix_appservice_irc_container_extra_arguments: []
  311. # List of systemd services that matrix-appservice-irc.service depends on.
  312. matrix_appservice_irc_systemd_required_services_list: ['docker.service']
  313. # List of systemd services that matrix-appservice-irc.service wants
  314. matrix_appservice_irc_systemd_wanted_services_list: []
  315. matrix_appservice_irc_appservice_token: ''
  316. matrix_appservice_irc_homeserver_token: ''
  317. matrix_appservice_irc_configuration_yaml: |
  318. #jinja2: lstrip_blocks: True
  319. homeserver:
  320. # The URL to the home server for client-server API calls, also used to form the
  321. # media URLs as displayed in bridged IRC channels:
  322. url: {{ matrix_appservice_irc_homeserver_url }}
  323. #
  324. # The URL of the homeserver hosting media files. This is only used to transform
  325. # mxc URIs to http URIs when bridging m.room.[file|image] events. Optional. By
  326. # default, this is the homeserver URL, specified above.
  327. #
  328. media_url: {{ matrix_appservice_irc_homeserver_media_url }}
  329. # Drop Matrix messages which are older than this number of seconds, according to
  330. # the event's origin_server_ts.
  331. # If the bridge is down for a while, the homeserver will attempt to send all missed
  332. # events on reconnection. These events may be hours old, which can be confusing to
  333. # IRC users if they are then bridged. This option allows these old messages to be
  334. # dropped.
  335. # CAUTION: This is a very coarse heuristic. Federated homeservers may have different
  336. # clock times and hence produce different origin_server_ts values, which may be old
  337. # enough to cause *all* events from the homeserver to be dropped.
  338. # Default: 0 (don't ever drop)
  339. # dropMatrixMessagesAfterSecs: 300 # 5 minutes
  340. # The 'domain' part for user IDs on this home server. Usually (but not always)
  341. # is the "domain name" part of the HS URL.
  342. domain: {{ matrix_appservice_irc_homeserver_domain }}
  343. # Should presence be enabled for matrix clients on this bridge. If disabled on the
  344. # homeserver then it should also be disabled here to avoid excess traffic.
  345. # Default: true
  346. enablePresence: {{ matrix_appservice_irc_homeserver_enablePresence|to_json }}
  347. ircService:
  348. # WARNING: The bridge needs to send plaintext passwords to the IRC server, it cannot
  349. # send a password hash. As a result, passwords (NOT hashes) are stored encrypted in
  350. # the database.
  351. #
  352. # To generate a .pem file:
  353. # $ openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048
  354. #
  355. # The path to the RSA PEM-formatted private key to use when encrypting IRC passwords
  356. # for storage in the database. Passwords are stored by using the admin room command
  357. # `!storepass server.name passw0rd. When a connection is made to IRC on behalf of
  358. # the Matrix user, this password will be sent as the server password (PASS command).
  359. passwordEncryptionKeyPath: "/data/passkey.pem" # does not typically need modification
  360. # Config for Matrix -> IRC bridging
  361. matrixHandler:
  362. # Cache this many matrix events in memory to be used for m.relates_to messages (usually replies).
  363. eventCacheSize: 4096
  364. servers: {{ matrix_appservice_irc_ircService_servers|to_json }}
  365. # Configuration for an ident server. If you are running a public bridge it is
  366. # advised you setup an ident server so IRC mods can ban specific matrix users
  367. # rather than the application service itself.
  368. ident:
  369. # True to listen for Ident requests and respond with the
  370. # matrix user's user_id (converted to ASCII, respecting RFC 1413).
  371. # Default: false.
  372. enabled: false
  373. # The port to listen on for incoming ident requests.
  374. # Ports below 1024 require root to listen on, and you may not want this to
  375. # run as root. Instead, you can get something like an Apache to yank up
  376. # incoming requests to 113 to a high numbered port. Set the port to listen
  377. # on instead of 113 here.
  378. # Default: 113.
  379. port: 1113
  380. # The address to listen on for incoming ident requests.
  381. # Default: 0.0.0.0
  382. address: "::"
  383. # Configuration for logging. Optional. Default: console debug level logging
  384. # only.
  385. logging:
  386. # Level to log on console/logfile. One of error|warn|info|debug
  387. level: "debug"
  388. # The file location to log to. This is relative to the project directory.
  389. #logfile: "debug.log"
  390. # The file location to log errors to. This is relative to the project
  391. # directory.
  392. #errfile: "errors.log"
  393. # Whether to log to the console or not.
  394. toConsole: true
  395. # The max number of files to keep. Files will be overwritten eventually due
  396. # to rotations.
  397. maxFiles: 5
  398. # Optional. Enable Prometheus metrics. If this is enabled, you MUST install `prom-client`:
  399. # $ npm install prom-client@6.3.0
  400. # Metrics will then be available via GET /metrics on the bridge listening port (-p).
  401. metrics:
  402. # Whether to actually enable the metric endpoint. Default: false
  403. enabled: true
  404. # When collecting remote user active times, which "buckets" should be used. Defaults are given below.
  405. # The bucket name is formed of a duration and a period. (h=hours,d=days,w=weeks).
  406. remoteUserAgeBuckets:
  407. - "1h"
  408. - "1d"
  409. - "1w"
  410. # Configuration for the provisioning API.
  411. #
  412. # GET /_matrix/provision/link
  413. # GET /_matrix/provision/unlink
  414. # GET /_matrix/provision/listlinks
  415. #
  416. provisioning:
  417. # True to enable the provisioning HTTP endpoint. Default: false.
  418. enabled: false
  419. # The number of seconds to wait before giving up on getting a response from
  420. # an IRC channel operator. If the channel operator does not respond within the
  421. # allotted time period, the provisioning request will fail.
  422. # Default: 300 seconds (5 mins)
  423. requestTimeoutSeconds: 300
  424. # Options here are generally only applicable to large-scale bridges and may have
  425. # consequences greater than other options in this configuration file.
  426. advanced:
  427. # The maximum number of HTTP(S) sockets to maintain. Usually this is unlimited
  428. # however for large bridges it is important to rate limit the bridge to avoid
  429. # accidentally overloading the homeserver. Defaults to 1000, which should be
  430. # enough for the vast majority of use cases.
  431. maxHttpSockets: 1000
  432. # Use an external database to store bridge state.
  433. database:
  434. # database engine (must be 'postgres' or 'nedb'). Default: nedb
  435. engine: "nedb"
  436. # Either a PostgreSQL connection string, or a path to the NeDB storage directory.
  437. # For postgres, it must start with postgres://
  438. # For NeDB, it must start with nedb://. The path is relative to the project directory.
  439. connectionString: "nedb:///data"
  440. matrix_appservice_irc_configuration_extension_yaml: |
  441. # Your custom YAML configuration for Appservice IRC servers goes here.
  442. # This configuration extends the default starting configuration (`matrix_appservice_irc_configuration_yaml`).
  443. #
  444. # You can override individual variables from the default configuration, or introduce new ones.
  445. #
  446. # If you need something more special, you can take full control by
  447. # completely redefining `matrix_appservice_irc_configuration_yaml`.
  448. 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 {} }}"
  449. matrix_appservice_irc_configuration: "{{ matrix_appservice_irc_configuration_yaml|from_yaml|combine(matrix_appservice_irc_configuration_extension, recursive=True) }}"
  450. # The original registration.yaml file generated by AppService IRC is merged with this config override,
  451. # to produce the final registration.yaml file ultimately used by both the bridge and the homeserver.
  452. #
  453. # We do this to ensure consistency:
  454. # - always having an up-to-date registration.yaml file (synced with the configuration file)
  455. # - always having the same AS/HS token and appservice id in the registration.yaml file
  456. #
  457. # Learn more about this in `setup_install.yml`
  458. matrix_appservice_irc_registration_override_yaml: |
  459. id: appservice-irc
  460. as_token: "{{ matrix_appservice_irc_appservice_token }}"
  461. hs_token: "{{ matrix_appservice_irc_homeserver_token }}"
  462. matrix_appservice_irc_registration_override: "{{ matrix_appservice_irc_registration_override_yaml|from_yaml }}"