39 lines
821 B
Python
39 lines
821 B
Python
import json
|
|
|
|
|
|
class Config:
|
|
CK_CONFIG = {'host': '119.29.176.224',
|
|
'send_receive_timeout': 3}
|
|
|
|
SUBSCRIBE_TOPIC = ['test','test2']
|
|
|
|
KAFKA_CONSUMER_CONF = {
|
|
'bootstrap_servers': ["192.168.0.30:9092", "192.168.0.71:9092", "192.168.0.229:9092"],
|
|
'value_deserializer': json.loads,
|
|
'group_id': 'legu_group'
|
|
}
|
|
|
|
TOPIC_TO_LEGU = {
|
|
'a77703e24e6643d08b74a4163a14f74c': 'legu_test',
|
|
'c3e0409ac18341149877b08f087db640': 'legu_test'
|
|
}
|
|
|
|
APPID_TO_CKDB = {
|
|
'a77703e24e6643d08b74a4163a14f74c': 'shjy',
|
|
'c3e0409ac18341149877b08f087db640': 'shjy'
|
|
}
|
|
|
|
REDIS_CONF = {
|
|
'host': '192.168.0.161',
|
|
'port': 6379,
|
|
'password': 'd1Gh*zp5',
|
|
'ck': 10 # ck
|
|
}
|
|
|
|
|
|
class Debug(Config):
|
|
pass
|
|
|
|
|
|
settings = Debug
|