Make the Redis socket configurable

pull/1/head
Mark Veidemanis 6 years ago
parent 36105c7e9a
commit ad00e0c07d

@ -6,6 +6,7 @@
"Key": "key.pem",
"Certificate": "cert.pem"
},
"RedisSocket": "/tmp/redis.sock",
"UsePassword": true,
"ConnectOnCreate": false,
"Notifications": {

@ -3,8 +3,6 @@ import redis
from utils.loaders.command_loader import loadCommands
from utils.logging.log import *
r = redis.StrictRedis(unix_socket_path='/tmp/redis.sock', db=0)
configPath = "conf/"
certPath = "cert/"
@ -49,5 +47,9 @@ def initConf():
loadConf(i)
def initMain():
global r
initConf()
loadCommands(register)
r = redis.StrictRedis(unix_socket_path=config["RedisSocket"], db=0)

@ -14,7 +14,6 @@ def getWho(query):
f = getWhoSingle(i, query)
if f:
result[i] = f
print(result)
return result
def getNumWhoEntries(name):

Loading…
Cancel
Save