matrix: irc: rizon: enable SASL

with this (and a registered username), i'm able to connect to
channels which require auth.

i haven't actually received any messages yet, but i can view the user list
so it's working better than before :-)
This commit is contained in:
2022-05-08 08:44:31 +00:00
parent 56f93cfb53
commit fd26b200e9

View File

@@ -61,11 +61,12 @@
name = "Rizon"; name = "Rizon";
port = 6697; # SSL port port = 6697; # SSL port
ssl = true; ssl = true;
sasl = false; # just use plain auth sasl = true; # appservice doesn't support NickServ identification
botConfig = { botConfig = {
# bot has no presence in IRC channel; only real Matrix users # bot has no presence in IRC channel; only real Matrix users
enabled = false; enabled = false;
nick = "UninsaneDotOrg"; # nick = "UninsaneDotOrg";
nick = "uninsane";
username = "uninsane"; username = "uninsane";
}; };
dynamicChannels = { dynamicChannels = {
@@ -73,7 +74,7 @@
aliasTemplate = "#irc_rizon_$CHANNEL"; aliasTemplate = "#irc_rizon_$CHANNEL";
}; };
ircClients = { ircClients = {
nickTemplate = "$LOCALPART_uninsane"; nickTemplate = "$LOCALPARTsane";
# by default, Matrix will convert messages greater than (3) lines into a pastebin-like URL to send to IRC. # by default, Matrix will convert messages greater than (3) lines into a pastebin-like URL to send to IRC.
lineLimit = 20; lineLimit = 20;
}; };
@@ -81,6 +82,9 @@
userTemplate = "@irc_rizon_$NICK"; # the :uninsane.org part is appended automatically userTemplate = "@irc_rizon_$NICK"; # the :uninsane.org part is appended automatically
}; };
# this will let this user message the appservice with `!join #<IRCChannel>` and the rest "Just Works"
"@colin:uninsane.org" = "admin";
membershipLists = { membershipLists = {
enabled = true; enabled = true;
global = { global = {
@@ -101,13 +105,20 @@
initial = true; initial = true;
}; };
# hardcoded mappings, for when dynamicChannels fails us :-( # hardcoded mappings, for when dynamicChannels fails us. TODO: probably safe to remove these.
mappings = { mappings = {
"#chat" = { "#chat" = {
roomIds = [ "!GXJSOTdbtxRboGtDep:uninsane.org" ]; roomIds = [ "!GXJSOTdbtxRboGtDep:uninsane.org" ];
}; };
# BakaBT requires account registration, which i think means my user needs to be added before the appservice user
"#BakaBT" = {
roomIds = [ "!feZKttuYuHilqPFSkD:uninsane.org" ];
}; };
# passwordEncryptionKeyPath = "/path/to/privkey"; };
# for per-user IRC password:
# invite @irc_rizon_NickServ:uninsane.org to a DM and type `help` => register
# invite the matrix-appservice-irc user to a DM and type `!help` => add PW to database
# passwordEncryptionKeyPath = "/path/to/privkey"; # appservice will generate its own if unspecified
}; };
}; };
}; };