summaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorGeorg2021-08-26 13:51:26 +0200
committerGeorg2021-08-26 13:51:26 +0200
commit415d5df94ce6ed024302852dd3fca6bc07dcaf99 (patch)
tree1c84180901a8e4616524265614d85ce032a9de35 /config.py
parentf796a296911f71edc80e9e24e33413ce91af9003 (diff)
downloadsnoparser-415d5df94ce6ed024302852dd3fca6bc07dcaf99.tar.gz
snoparser-415d5df94ce6ed024302852dd3fca6bc07dcaf99.tar.bz2
snoparser-415d5df94ce6ed024302852dd3fca6bc07dcaf99.zip
First prettifications of Redis cached whois
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'config.py')
-rw-r--r--config.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/config.py b/config.py
index a3a96e9..4c4f08d 100644
--- a/config.py
+++ b/config.py
@@ -61,4 +61,53 @@ conf.registerGlobalValue(SnoParser, 'AutoVhost',
conf.registerGlobalValue(SnoParser, 'preventHighlight',
registry.Boolean(True, ("""Toggles in channel highlights with ZWSP""")))
+conf.registerGroup(SnoParser, 'whois')
+conf.registerGlobalValue(SnoParser.whois, 'debug',
+ registry.Boolean('false',
+ """
+ SnoParser: True: Very verbose console output. False: Mostly silent operation.
+ """
+ , private=True
+))
+conf.registerGroup(SnoParser.whois, 'redis')
+conf.registerGlobalValue(SnoParser.whois.redis, 'host',
+ registry.String('127.0.0.1',
+ """
+ Redis: IP address or hostname.
+ """
+ , private=True
+))
+conf.registerGlobalValue(SnoParser.whois.redis, 'port',
+ registry.String('6379',
+ """
+ Redis: Port.
+ """
+ , private=True
+))
+conf.registerGlobalValue(SnoParser.whois.redis, 'username',
+ registry.String('',
+ """
+ Redis: Username. This is optional and has not been tested. It is recommended to perform initial tests on a local instance with no username and password.
+ """
+ , private=True
+))
+conf.registerGlobalValue(SnoParser.whois.redis, 'password',
+ registry.String('',
+ """
+ Redis: Password. This is optional and has not been tested. It is recommended to perform initial tests on a local instance with no username and password.
+ """
+))
+conf.registerGlobalValue(SnoParser.whois.redis, 'db',
+ registry.String('0',
+ """
+ Redis: Database number. It is recommended to use a dedicated, isolated, Redis instance for SnoParser instead of using an existing one with a different database.
+ """
+))
+conf.registerGlobalValue(SnoParser.whois.redis, 'timeout',
+ registry.String('5',
+ """
+ Redis: Socket Timeout. The developer does not know what to recommend here, but `5` seems to yield good results.
+ """
+))
+
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: