diff options
| author | Georg | 2021-08-26 13:51:26 +0200 |
|---|---|---|
| committer | Georg | 2021-08-26 13:51:26 +0200 |
| commit | 415d5df94ce6ed024302852dd3fca6bc07dcaf99 (patch) | |
| tree | 1c84180901a8e4616524265614d85ce032a9de35 /config.py | |
| parent | f796a296911f71edc80e9e24e33413ce91af9003 (diff) | |
| download | snoparser-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.py | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -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: |
