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:
Colin 2022-05-08 08:44:31 +00:00
parent 56f93cfb53
commit fd26b200e9

View File

@ -61,11 +61,12 @@
name = "Rizon";
port = 6697; # SSL port
ssl = true;
sasl = false; # just use plain auth
sasl = true; # appservice doesn't support NickServ identification
botConfig = {
# bot has no presence in IRC channel; only real Matrix users
enabled = false;
nick = "UninsaneDotOrg";
# nick = "UninsaneDotOrg";
nick = "uninsane";
username = "uninsane";
};
dynamicChannels = {
@ -73,7 +74,7 @@
aliasTemplate = "#irc_rizon_$CHANNEL";
};
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.
lineLimit = 20;
};
@ -81,6 +82,9 @@
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 = {
enabled = true;
global = {
@ -101,13 +105,20 @@
initial = true;
};
# hardcoded mappings, for when dynamicChannels fails us :-(
# hardcoded mappings, for when dynamicChannels fails us. TODO: probably safe to remove these.
mappings = {
"#chat" = {
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
};
};
};