This commit is contained in:
wuaho 2021-05-08 19:13:31 +08:00
parent 9aa46f12a8
commit 738650578f

View File

@ -2,26 +2,30 @@ import json
class Config: class Config:
# ck数据库连接
CK_CONFIG = {'host': '119.29.176.224', CK_CONFIG = {'host': '119.29.176.224',
'send_receive_timeout': 30} 'send_receive_timeout': 30}
#每个游戏不一样 游戏上报 kafka 主题
SUBSCRIBE_TOPIC = 'test2' SUBSCRIBE_TOPIC = 'test2'
KAFKA_CONSUMER_CONF = { KAFKA_CONSUMER_CONF = {
'bootstrap_servers': ["192.168.0.30:9092", "192.168.0.71:9092", "192.168.0.229:9092"], 'bootstrap_servers': ["192.168.0.30:9092", "192.168.0.71:9092", "192.168.0.229:9092"],
'value_deserializer': json.loads, 'value_deserializer': json.loads,
'auto_offset_reset': 'earliest', 'auto_offset_reset': 'earliest',
# 每个游戏不一样
'group_id': 'legu_group3' 'group_id': 'legu_group3'
} }
GAME = 'shjy' GAME = 'shjy'
REDIS_CONF = { # REDIS_CONF = {
'host': '192.168.0.161', # 'host': '192.168.0.161',
'port': 6379, # 'port': 6379,
'password': 'd1Gh*zp5', # 'password': 'd1Gh*zp5',
'ck': 10 # ck # 'ck': 10 # ck
} # }
class Debug(Config): class Debug(Config):