summaryrefslogtreecommitdiff
path: root/baserock_webserver
diff options
context:
space:
mode:
authorPedro Alvarez <palvarez89@gmail.com>2018-08-15 11:58:55 +0100
committerPedro Alvarez <palvarez89@gmail.com>2018-08-15 12:09:09 +0100
commit0a29208060eae370f2171017d78d1396b6355c86 (patch)
tree21a10c3a153bbe52d380cbb09b19f85d140e0d12 /baserock_webserver
parent0876c564124c35f88937d1bf4d2e46f8f2e78a98 (diff)
downloadinfrastructure-0a29208060eae370f2171017d78d1396b6355c86.tar.gz
gitlab-bot: configure auth for networkspedro/fix-gnome-irc-connection
The connection with irc.gnome.org was failing because it doesn't support SASL authentication. The bot was modified to allow different auth configurations per network.
Diffstat (limited to 'baserock_webserver')
-rw-r--r--baserock_webserver/gitlab-bot/config.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/baserock_webserver/gitlab-bot/config.js b/baserock_webserver/gitlab-bot/config.js
index b94f34c3..a017e232 100644
--- a/baserock_webserver/gitlab-bot/config.js
+++ b/baserock_webserver/gitlab-bot/config.js
@@ -1,8 +1,18 @@
module.exports = {
// IRC server to connect to.
servers: {
- gimp: 'irc.gimp.org',
- freenode: 'irc.freenode.net'
+ gimp: {
+ url: 'irc.gimp.org',
+ nick: 'gitlab-br-bot',
+ password: '{{ gitlab_bot_password }}',
+ sasl: false
+ },
+ freenode: {
+ url: 'irc.freenode.net',
+ nick: 'gitlab-br-bot',
+ password: '{{ gitlab_bot_password }}',
+ sasl: true
+ }
},
// List of channels / people to report to.
@@ -122,8 +132,6 @@ module.exports = {
],
// IRC nick/names for the bot
- nick: 'gitlab-br-bot',
- password: '{{ gitlab_bot_password }}',
userName: 'gitlab-br-bot',
realName: 'Gitlab Bot provided by Baserock',