User Tools

Site Tools


matrix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

matrix [2020/06/09 13:48] (current)
admin created
Line 1: Line 1:
 +====== Matrix ======
 +  * See [[Matrix tools]] for a brief guide for devs I wrote
  
 +===== IRC Bridge How To =====
 +
 +Basic steps:
 +<code bash>
 +git clone https://​github.com/​matrix-org/​matrix-appservice-irc.git
 +cd matrix-appservice-irc
 +npm install
 +npm test
 +</​code>​
 +
 +Example config.yaml:​
 +<code yaml config.yaml>​
 +homeserver:
 +  url: "​http://​localhost:​8008"​
 +  domain: "​glasgow.social"​
 +  ​
 +ircService:
 +  servers:
 +    irc.glasgow.social:​
 +      name: "​Glasgow Social"​
 +      port: 6697
 +      ssl: true
 +      ​
 +       ​mappings:​
 +         "#​glasgow":​
 +           ​roomIds:​ ["​!roomid:​glasgow.social"​]
 +</​code>​
 +
 +Create registration file for homeserver:
 +<code bash>
 +node app.js -r -f irc_registration.yaml -u "​http://​glasgow.social:​9999"​ -c config.yaml -l my_bot
 +</​code>​
 +
 +Add a reference to the registration file in the ''​homeserver.yaml''​ config file:
 +<code yaml>
 +app_service_config_files:​
 +- /​home/​ubuntu/​matrix/​matrix-appservice-irc/​irc_registration.yaml
 +</​code>​
 +
 +Restart the homeserver:
 +<code bash>
 +sudo service matrix-synapse restart
 +</​code>​
 +
 +Start the IRC bridge:
 +<code bash>
 +node app.js -c config.yaml -f irc_registration.yaml -p 9999
 +</​code>​
matrix.txt ยท Last modified: 2020/06/09 13:48 by admin