""" project configs """


# mysql relative configure section
my_host = '192.168.0.168'
my_port = 3306
my_user = 'root'
my_password = '123456'
my_database_platm = 'platm'  # where stores user game history
my_tbl_history = 't_log_platform_money_tj'


# redis relative configure section
rds_host = '192.168.0.198'
rds_port = 6379
rds_password = ''
# redis slave
rds_slave_host = '192.168.0.199'
rds_slave_port = 6379
rds_slave_password = rds_password
#  conf should configured with 'appendonly no'
#  script should runs in the same machine with the redis
rds_rdb = '/tmp/dump.rdb'
rds_db_game = 8
# redis keys
rds_key_ua = 'rt:user_active'
rds_key_map_agent_user = 'map:agent_user'
rds_key_map_user_agent = 'map:user_agent'
rds_key_map_logic_user = 'map:logic_user'
rds_key_map_user_logic = 'map:user_logic'


# smtp configure section
smtp_host = 'smtp.gmail.com'
smtp_port = 587   # TLS (465 SSL)
smtp_user = 'grant.vanderwaal1996@gmail.com'
smtp_password = 'oemfneoisimfwndm'
email_backup = 'grant.vanderwaal1996@gmail.com'     # receiver


# log consumer
js_conf = 'e:/projects/golang/kingame/lobby/conf.json'
subject = 'kg.log'
queue_name = 'kg_log'
lobbies = ['lobby-1010101', 'lobby-1010106']
client_id = 'consumer_log'
log_db_name = 'logic_logs'
log_table_name = 'kg_lobbies'

# backup
dest_tar_file = '/tmp/dump.tar.gz'
