temp
This commit is contained in:
108
Server/common/config/common-config-branch-dev.json
Normal file
108
Server/common/config/common-config-branch-dev.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"logger": {
|
||||
"level": "debug",
|
||||
"max_age": 7,
|
||||
"max_back_up": 128,
|
||||
"max_size": 128,
|
||||
"debug": false
|
||||
},
|
||||
"redis": {
|
||||
"host": "10.0.40.3",
|
||||
"port": 6379,
|
||||
"auth": "123456",
|
||||
"max_idle": 20,
|
||||
"max_active": 100,
|
||||
"db": 0,
|
||||
"tls": false,
|
||||
"user_name": "default"
|
||||
},
|
||||
"etcd": {
|
||||
"host": "http://10.0.40.3",
|
||||
"port": 2379,
|
||||
"ttl": 10,
|
||||
"key_discover": "/discover"
|
||||
},
|
||||
"mysql": {
|
||||
"driver": "mysql",
|
||||
"host": "10.0.40.3",
|
||||
"port": "3306",
|
||||
"user": "root",
|
||||
"password": "123456"
|
||||
},
|
||||
"mongo": {
|
||||
"user": "root",
|
||||
"password": "superhmm",
|
||||
"ssl_ca_file": "",
|
||||
"host": "10.0.40.3",
|
||||
"port": 27017
|
||||
},
|
||||
"kafka": {
|
||||
"chunkSize": 0,
|
||||
"flushInterval": 1,
|
||||
"brokers": [
|
||||
"10.0.40.3:9092"
|
||||
]
|
||||
},
|
||||
"jwt": {
|
||||
"secret": "ZMpy1gIxRevtcIwoW1qA84YAcWj4cjrEhPUebOiB8hUXkiwOfobJxeklH4ZO1VE1",
|
||||
"expires": 30
|
||||
},
|
||||
"tencent_video_call": {
|
||||
"appID": 1600034485,
|
||||
"secretKey": "9c2e7aab5c318194ee815ee0a5162ea9ab0b0bce981311d5ce08d26c5e9df9e0",
|
||||
"callBackKey": "Pv3JD4RJXBCo",
|
||||
"prefix": "branch_dev",
|
||||
"tencent_asr_cloud_os": {
|
||||
"bucket": "meeting-test-1306984848",
|
||||
"region": "ap-guangzhou",
|
||||
"bucketURL": "https://meeting-test-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://meeting-test-1306984848.ci.ap-guangzhou.myqcloud.com",
|
||||
"CIWorkflows": {
|
||||
"asr_workflow": {
|
||||
"name": "cover_asr",
|
||||
"workflowId": "wc700505871f849908f56f30533cb54ce"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tencent_cloud_os": {
|
||||
"bucketURL": "https://ecosmos-test-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"serviceURL": "https://cos.ap-guangzhou.myqcloud.com",
|
||||
"batchURL": "https://AKID27MnCY2eFsWCnKlItThxt1EubMriDewC.cos-control.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://ecosmos-test-1306984848.ci.ap-guangzhou.myqcloud.com"
|
||||
},
|
||||
"tencent_sdk_common": {
|
||||
"secretId": "AKID27MnCY2eFsWCnKlItThxt1EubMriDewC",
|
||||
"secretKey": "IWdfaTTN8Y6g8Q4qdRH3BUsQySCjOKiC"
|
||||
},
|
||||
"back_http": {
|
||||
"scheme": "http",
|
||||
"host": "10.0.40.9:7098",
|
||||
"xkey": "lkAsgl2sShgfnDweJLJSNGLSNG1234sKE58dgd"
|
||||
},
|
||||
"us": {
|
||||
"public_key": "4eZBdZBQvR7JdD3Q3WMHna67b0BPf7U6O",
|
||||
"private_key": "FugwvTjts8rJ2eYiLTatH0FK2n3zjhhWP9EsXXbmDhvy",
|
||||
"bucket_name": "ecosmos-test",
|
||||
"file_host": "cn-wlcb.ufileos.com",
|
||||
"bucket_host": "api.ucloud.cn",
|
||||
"verfiy_upload_md5": true,
|
||||
"us_host_path": "https"
|
||||
},
|
||||
"ai_server": {
|
||||
"scheme": "http",
|
||||
"host": "106.52.14.61:15002"
|
||||
},
|
||||
"elecnest": {
|
||||
"scheme": "https",
|
||||
"host": "id.elecnest.cn"
|
||||
},
|
||||
"open_log": true,
|
||||
"wechat_mini": {
|
||||
"scheme": "https",
|
||||
"host": "api.weixin.qq.com",
|
||||
"envVersion": "trial",
|
||||
"getWxACodeUnLimitPath": "/wxa/getwxacodeunlimit",
|
||||
"generateUrlLinkPath": "/wxa/generate_urllink"
|
||||
}
|
||||
}
|
||||
108
Server/common/config/common-config-branch-test.json
Normal file
108
Server/common/config/common-config-branch-test.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"logger": {
|
||||
"level": "debug",
|
||||
"max_age": 7,
|
||||
"max_back_up": 128,
|
||||
"max_size": 128,
|
||||
"debug": false
|
||||
},
|
||||
"redis": {
|
||||
"host": "10.0.0.12",
|
||||
"port": 6379,
|
||||
"auth": "Q3GNWg!TEsmkURuSYe9",
|
||||
"max_idle": 20,
|
||||
"max_active": 100,
|
||||
"db": 0,
|
||||
"tls": false,
|
||||
"user_name": "default"
|
||||
},
|
||||
"etcd": {
|
||||
"host": "http://10.0.0.12",
|
||||
"port": 2379,
|
||||
"ttl": 10,
|
||||
"key_discover": "/discover"
|
||||
},
|
||||
"mysql": {
|
||||
"driver": "mysql",
|
||||
"host": "10.0.0.12",
|
||||
"port": "3306",
|
||||
"user": "root",
|
||||
"password": "MwrC5zcZ8HQ7BB=qb4K8"
|
||||
},
|
||||
"mongo": {
|
||||
"user": "root",
|
||||
"password": "eExeaWF=dQzJpkMtc9kb",
|
||||
"ssl_ca_file": "",
|
||||
"host": "10.0.0.12",
|
||||
"port": 27017
|
||||
},
|
||||
"kafka": {
|
||||
"chunkSize": 0,
|
||||
"flushInterval": 1,
|
||||
"brokers": [
|
||||
"10.0.0.12:9092"
|
||||
]
|
||||
},
|
||||
"jwt": {
|
||||
"secret": "ZMpy1gIxRevtcIwoW1qA84YAcWj4cjrEhPUebOiB8hUXkiwOfobJxeklH4ZO1VE4",
|
||||
"expires": 30
|
||||
},
|
||||
"tencent_video_call": {
|
||||
"appID": 1600034485,
|
||||
"secretKey": "9c2e7aab5c318194ee815ee0a5162ea9ab0b0bce981311d5ce08d26c5e9df9e0",
|
||||
"callBackKey": "Pv3JD4RJXBCo",
|
||||
"prefix": "branch_test",
|
||||
"tencent_asr_cloud_os": {
|
||||
"bucket": "meeting-test-1306984848",
|
||||
"region": "ap-guangzhou",
|
||||
"bucketURL": "https://meeting-test-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://meeting-test-1306984848.ci.ap-guangzhou.myqcloud.com",
|
||||
"CIWorkflows": {
|
||||
"asr_workflow": {
|
||||
"name": "cover_asr",
|
||||
"workflowId": "wc700505871f849908f56f30533cb54ce"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tencent_cloud_os": {
|
||||
"bucketURL": "https://ecosmos-test-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"serviceURL": "https://cos.ap-guangzhou.myqcloud.com",
|
||||
"batchURL": "https://AKID27MnCY2eFsWCnKlItThxt1EubMriDewC.cos-control.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://ecosmos-test-1306984848.ci.ap-guangzhou.myqcloud.com"
|
||||
},
|
||||
"tencent_sdk_common": {
|
||||
"secretId": "AKID27MnCY2eFsWCnKlItThxt1EubMriDewC",
|
||||
"secretKey": "IWdfaTTN8Y6g8Q4qdRH3BUsQySCjOKiC"
|
||||
},
|
||||
"back_http": {
|
||||
"scheme": "http",
|
||||
"host": "10.0.0.12:7098",
|
||||
"xkey": "lkAsgl2sShgfnDweJLJSNGLSNG1234sKE58dgd"
|
||||
},
|
||||
"us": {
|
||||
"public_key": "4eZBdZBQvR7JdD3Q3WMHna67b0BPf7U6O",
|
||||
"private_key": "FugwvTjts8rJ2eYiLTatH0FK2n3zjhhWP9EsXXbmDhvy",
|
||||
"bucket_name": "ecosmos-test",
|
||||
"file_host": "cn-wlcb.ufileos.com",
|
||||
"bucket_host": "api.ucloud.cn",
|
||||
"verfiy_upload_md5": true,
|
||||
"us_host_path": "https"
|
||||
},
|
||||
"ai_server": {
|
||||
"scheme": "http",
|
||||
"host": "106.52.14.61:15002"
|
||||
},
|
||||
"elecnest": {
|
||||
"scheme": "https",
|
||||
"host": "id.elecnest.cn"
|
||||
},
|
||||
"open_log": true,
|
||||
"wechat_mini": {
|
||||
"scheme": "https",
|
||||
"host": "api.weixin.qq.com",
|
||||
"envVersion": "trial",
|
||||
"getWxACodeUnLimitPath": "/wxa/getwxacodeunlimit",
|
||||
"generateUrlLinkPath": "/wxa/generate_urllink"
|
||||
}
|
||||
}
|
||||
108
Server/common/config/common-config-prod.json
Normal file
108
Server/common/config/common-config-prod.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"logger": {
|
||||
"level": "debug",
|
||||
"max_age": 7,
|
||||
"max_back_up": 128,
|
||||
"max_size": 128,
|
||||
"debug": false
|
||||
},
|
||||
"redis": {
|
||||
"host": "10.0.10.9",
|
||||
"port": 6379,
|
||||
"auth": "ZzC2gCVuR52!z",
|
||||
"max_idle": 20,
|
||||
"max_active": 100,
|
||||
"db": 1,
|
||||
"tls": false,
|
||||
"user_name": "default"
|
||||
},
|
||||
"etcd": {
|
||||
"host": "http://10.0.0.7",
|
||||
"port": 2379,
|
||||
"ttl": 20,
|
||||
"key_discover": "/discover"
|
||||
},
|
||||
"mysql": {
|
||||
"driver": "mysql",
|
||||
"host": "10.0.5.10",
|
||||
"port": "3306",
|
||||
"user": "root",
|
||||
"password": "d3tnt4J2aWRg7fZ52M"
|
||||
},
|
||||
"mongo": {
|
||||
"user": "mongouser",
|
||||
"password": "xEti2JhEgI!m",
|
||||
"ssl_ca_file": "",
|
||||
"host": "10.0.2.9",
|
||||
"port": 27017
|
||||
},
|
||||
"kafka": {
|
||||
"chunkSize": 0,
|
||||
"flushInterval": 1,
|
||||
"brokers": [
|
||||
"10.0.12.16:9092"
|
||||
]
|
||||
},
|
||||
"jwt": {
|
||||
"secret": "ZMpy1gIxRevtcIwoW1qA84YAcWj4cjrEhPUebOiB8hUXkiwOfobJxeklH4ZO1VE3",
|
||||
"expires": 30
|
||||
},
|
||||
"tencent_video_call": {
|
||||
"appID": 1600003528,
|
||||
"secretKey": "8188013dbe9f35305c58a2f8964fbf330f9e1de4a60827966c91a47b9f2ae607",
|
||||
"callBackKey": "MzPBm3csloMHkXmEcvl",
|
||||
"prefix": "prod",
|
||||
"tencent_asr_cloud_os": {
|
||||
"bucket": "meeting-prod-1306984848",
|
||||
"region": "ap-guangzhou",
|
||||
"bucketURL": "https://meeting-prod-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://meeting-prod-1306984848.ci.ap-guangzhou.myqcloud.com",
|
||||
"CIWorkflows": {
|
||||
"asr_workflow": {
|
||||
"name": "prod_cover_asr",
|
||||
"workflowId": "w2d30647561e341f19342d684c92e483a"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tencent_cloud_os": {
|
||||
"bucketURL": "https://ecosmos-prod-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"serviceURL": "https://cos.ap-guangzhou.myqcloud.com",
|
||||
"batchURL": "https://AKID27MnCY2eFsWCnKlItThxt1EubMriDewC.cos-control.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://ecosmos-prod-1306984848.ci.ap-guangzhou.myqcloud.com"
|
||||
},
|
||||
"tencent_sdk_common": {
|
||||
"secretId": "AKID27MnCY2eFsWCnKlItThxt1EubMriDewC",
|
||||
"secretKey": "IWdfaTTN8Y6g8Q4qdRH3BUsQySCjOKiC"
|
||||
},
|
||||
"back_http": {
|
||||
"scheme": "http",
|
||||
"host": "10.0.0.7:7098",
|
||||
"xkey": "lkAsgl2sShgfnDweJLJSNGLSNG1234sKE58dgd"
|
||||
},
|
||||
"us": {
|
||||
"public_key": "4eZBdZBQvR7JdD3Q3WMHna67b0BPf7U6O",
|
||||
"private_key": "FugwvTjts8rJ2eYiLTatH0FK2n3zjhhWP9EsXXbmDhvy",
|
||||
"bucket_name": "ecosmos",
|
||||
"file_host": "cn-wlcb.ufileos.com",
|
||||
"bucket_host": "api.ucloud.cn",
|
||||
"verfiy_upload_md5": true,
|
||||
"us_host_path": "https"
|
||||
},
|
||||
"ai_server": {
|
||||
"scheme": "http",
|
||||
"host": "106.52.14.61:15002"
|
||||
},
|
||||
"elecnest": {
|
||||
"scheme": "https",
|
||||
"host": "identify.elecnest.com"
|
||||
},
|
||||
"open_log": true,
|
||||
"wechat_mini": {
|
||||
"scheme": "https",
|
||||
"host": "api.weixin.qq.com",
|
||||
"envVersion": "release",
|
||||
"getWxACodeUnLimitPath": "/wxa/getwxacodeunlimit",
|
||||
"generateUrlLinkPath": "/wxa/generate_urllink"
|
||||
}
|
||||
}
|
||||
108
Server/common/config/common-config-trunk-dev.json
Normal file
108
Server/common/config/common-config-trunk-dev.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"logger": {
|
||||
"level": "debug",
|
||||
"max_age": 7,
|
||||
"max_back_up": 128,
|
||||
"max_size": 128,
|
||||
"debug": false
|
||||
},
|
||||
"redis": {
|
||||
"host": "10.0.40.9",
|
||||
"port": 6379,
|
||||
"auth": "superhmm",
|
||||
"max_idle": 20,
|
||||
"max_active": 100,
|
||||
"db": 0,
|
||||
"tls": false,
|
||||
"user_name": "default"
|
||||
},
|
||||
"etcd": {
|
||||
"host": "http://10.0.40.9",
|
||||
"port": 2379,
|
||||
"ttl": 10,
|
||||
"key_discover": "/discover"
|
||||
},
|
||||
"mysql": {
|
||||
"driver": "mysql",
|
||||
"host": "10.0.40.9",
|
||||
"port": "3306",
|
||||
"user": "root",
|
||||
"password": "123456"
|
||||
},
|
||||
"mongo": {
|
||||
"user": "root",
|
||||
"password": "superhmm",
|
||||
"ssl_ca_file": "",
|
||||
"host": "10.0.40.9",
|
||||
"port": 27017
|
||||
},
|
||||
"kafka": {
|
||||
"chunkSize": 0,
|
||||
"flushInterval": 1,
|
||||
"brokers": [
|
||||
"10.0.40.9:9092"
|
||||
]
|
||||
},
|
||||
"jwt": {
|
||||
"secret": "ZMpy1gIxRevtcIwoW1qA84YAcWj4cjrEhPUebOiB8hUXkiwOfobJxeklH4ZO1VE1",
|
||||
"expires": 30
|
||||
},
|
||||
"tencent_video_call": {
|
||||
"appID": 1600034485,
|
||||
"secretKey": "9c2e7aab5c318194ee815ee0a5162ea9ab0b0bce981311d5ce08d26c5e9df9e0",
|
||||
"callBackKey": "RSHRgskxwUauX6JyTb7m",
|
||||
"prefix": "dev",
|
||||
"tencent_asr_cloud_os": {
|
||||
"bucket": "meeting-dev-1306984848",
|
||||
"region": "ap-guangzhou",
|
||||
"bucketURL": "https://meeting-dev-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://meeting-dev-1306984848.ci.ap-guangzhou.myqcloud.com",
|
||||
"CIWorkflows": {
|
||||
"asr_workflow": {
|
||||
"name": "cover_asr",
|
||||
"workflowId": "w8b3ece33cd2d4b28a373779dc3a93941"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tencent_cloud_os": {
|
||||
"bucketURL": "https://ecosmos-dev-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"serviceURL": "https://cos.ap-guangzhou.myqcloud.com",
|
||||
"batchURL": "https://AKID27MnCY2eFsWCnKlItThxt1EubMriDewC.cos-control.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://ecosmos-dev-1306984848.ci.ap-guangzhou.myqcloud.com"
|
||||
},
|
||||
"tencent_sdk_common": {
|
||||
"secretId": "AKID27MnCY2eFsWCnKlItThxt1EubMriDewC",
|
||||
"secretKey": "IWdfaTTN8Y6g8Q4qdRH3BUsQySCjOKiC"
|
||||
},
|
||||
"back_http": {
|
||||
"scheme": "http",
|
||||
"host": "10.0.40.9:7098",
|
||||
"xkey": "lkAsgl2sShgfnDweJLJSNGLSNG1234sKE58dgd"
|
||||
},
|
||||
"us": {
|
||||
"public_key": "4eZBdZBQvR7JdD3Q3WMHna67b0BPf7U6O",
|
||||
"private_key": "FugwvTjts8rJ2eYiLTatH0FK2n3zjhhWP9EsXXbmDhvy",
|
||||
"bucket_name": "ecosmos-test",
|
||||
"file_host": "cn-wlcb.ufileos.com",
|
||||
"bucket_host": "api.ucloud.cn",
|
||||
"verfiy_upload_md5": true,
|
||||
"us_host_path": "https"
|
||||
},
|
||||
"ai_server": {
|
||||
"scheme": "http",
|
||||
"host": "106.52.14.61:15002"
|
||||
},
|
||||
"elecnest": {
|
||||
"scheme": "https",
|
||||
"host": "id.elecnest.cn"
|
||||
},
|
||||
"openLog": false,
|
||||
"wechat_mini": {
|
||||
"scheme": "https",
|
||||
"host": "api.weixin.qq.com",
|
||||
"envVersion": "develop",
|
||||
"getWxACodeUnLimitPath": "/wxa/getwxacodeunlimit",
|
||||
"generateUrlLinkPath": "/wxa/generate_urllink"
|
||||
}
|
||||
}
|
||||
108
Server/common/config/common-config-trunk-test.json
Normal file
108
Server/common/config/common-config-trunk-test.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"logger": {
|
||||
"level": "debug",
|
||||
"max_age": 7,
|
||||
"max_back_up": 128,
|
||||
"max_size": 128,
|
||||
"debug": false
|
||||
},
|
||||
"redis": {
|
||||
"host": "10.0.0.15",
|
||||
"port": 6379,
|
||||
"auth": "Q3GNWg!TEsmkURuSYe9",
|
||||
"max_idle": 20,
|
||||
"max_active": 100,
|
||||
"db": 0,
|
||||
"tls": false,
|
||||
"user_name": "default"
|
||||
},
|
||||
"etcd": {
|
||||
"host": "http://10.0.0.15",
|
||||
"port": 2379,
|
||||
"ttl": 10,
|
||||
"key_discover": "/discover"
|
||||
},
|
||||
"mysql": {
|
||||
"driver": "mysql",
|
||||
"host": "10.0.0.15",
|
||||
"port": "3306",
|
||||
"user": "root",
|
||||
"password": "MwrC5zcZ8HQ7BB=qb4K8"
|
||||
},
|
||||
"mongo": {
|
||||
"user": "root",
|
||||
"password": "eExeaWF=dQzJpkMtc9kb",
|
||||
"ssl_ca_file": "",
|
||||
"host": "134.175.247.234",
|
||||
"port": 27017
|
||||
},
|
||||
"kafka": {
|
||||
"chunkSize": 0,
|
||||
"flushInterval": 1,
|
||||
"brokers": [
|
||||
"10.0.0.15:9092"
|
||||
]
|
||||
},
|
||||
"jwt": {
|
||||
"secret": "ZMpy1gIxRevtcIwoW1qA84YAcWj4cjrEhPUebOiB8hUXkiwOfobJxeklH4ZO1VE2",
|
||||
"expires": 30
|
||||
},
|
||||
"tencent_video_call": {
|
||||
"appID": 1600034485,
|
||||
"secretKey": "9c2e7aab5c318194ee815ee0a5162ea9ab0b0bce981311d5ce08d26c5e9df9e0",
|
||||
"callBackKey": "Pv3JD4RJXBCo",
|
||||
"prefix": "test",
|
||||
"tencent_asr_cloud_os": {
|
||||
"bucket": "meeting-test-1306984848",
|
||||
"region": "ap-guangzhou",
|
||||
"bucketURL": "https://meeting-test-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://meeting-test-1306984848.ci.ap-guangzhou.myqcloud.com",
|
||||
"CIWorkflows": {
|
||||
"asr_workflow": {
|
||||
"name": "cover_asr",
|
||||
"workflowId": "wc700505871f849908f56f30533cb54ce"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tencent_cloud_os": {
|
||||
"bucketURL": "https://ecosmos-test-1306984848.cos.ap-guangzhou.myqcloud.com",
|
||||
"serviceURL": "https://cos.ap-guangzhou.myqcloud.com",
|
||||
"batchURL": "https://AKID27MnCY2eFsWCnKlItThxt1EubMriDewC.cos-control.ap-guangzhou.myqcloud.com",
|
||||
"CIURL": "https://ecosmos-test-1306984848.ci.ap-guangzhou.myqcloud.com"
|
||||
},
|
||||
"tencent_sdk_common": {
|
||||
"secretId": "AKID27MnCY2eFsWCnKlItThxt1EubMriDewC",
|
||||
"secretKey": "IWdfaTTN8Y6g8Q4qdRH3BUsQySCjOKiC"
|
||||
},
|
||||
"back_http": {
|
||||
"scheme": "http",
|
||||
"host": "10.0.0.15:7098",
|
||||
"xkey": "lkAsgl2sShgfnDweJLJSNGLSNG1234sKE58dgd"
|
||||
},
|
||||
"us": {
|
||||
"public_key": "4eZBdZBQvR7JdD3Q3WMHna67b0BPf7U6O",
|
||||
"private_key": "FugwvTjts8rJ2eYiLTatH0FK2n3zjhhWP9EsXXbmDhvy",
|
||||
"bucket_name": "ecosmos-test",
|
||||
"file_host": "cn-wlcb.ufileos.com",
|
||||
"bucket_host": "api.ucloud.cn",
|
||||
"verfiy_upload_md5": true,
|
||||
"us_host_path": "https"
|
||||
},
|
||||
"ai_server": {
|
||||
"scheme": "http",
|
||||
"host": "106.52.14.61:15002"
|
||||
},
|
||||
"elecnest": {
|
||||
"scheme": "https",
|
||||
"host": "id.elecnest.cn"
|
||||
},
|
||||
"open_log": true,
|
||||
"wechat_mini": {
|
||||
"scheme": "https",
|
||||
"host": "api.weixin.qq.com",
|
||||
"envVersion": "trial",
|
||||
"getWxACodeUnLimitPath": "/wxa/getwxacodeunlimit",
|
||||
"generateUrlLinkPath": "/wxa/generate_urllink"
|
||||
}
|
||||
}
|
||||
166
Server/common/config/config.go
Normal file
166
Server/common/config/config.go
Normal file
@@ -0,0 +1,166 @@
|
||||
package config
|
||||
|
||||
type (
|
||||
LoggerConfig struct {
|
||||
Level string `json:"level"`
|
||||
MaxAge int `json:"max_age"`
|
||||
MaxBackUp int `json:"max_back_up"`
|
||||
MaxSize int `json:"max_size"`
|
||||
Debug bool `json:"debug"`
|
||||
}
|
||||
|
||||
RedisConfig struct {
|
||||
Host string `json:"host" env:"REDIS_HOST"`
|
||||
Port int `json:"port" env:"REDIS_PORT"`
|
||||
Auth string `json:"auth" env:"REDIS_AUTH"`
|
||||
MaxIdle int `json:"max_idle" env:"REDIS_MAX_IDLE"`
|
||||
MaxActive int `json:"max_active" env:"REDIS_MAX_ACTIVE"`
|
||||
Db int `json:"db" env:"REDIS_DB"`
|
||||
Tls bool `json:"tls"`
|
||||
UserName string `json:"user_name"`
|
||||
}
|
||||
|
||||
EtcdConfig struct {
|
||||
Host string `json:"host"`
|
||||
Port int `json:"port"`
|
||||
TTL int64 `json:"ttl"`
|
||||
}
|
||||
|
||||
JWTConfig struct {
|
||||
Secret string `json:"secret"`
|
||||
Expires int `json:"expires"`
|
||||
}
|
||||
|
||||
TableConfig struct {
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
||||
ConnectionInfo struct {
|
||||
WebSocket string `json:"web_socket"`
|
||||
HttpAddr string `json:"http_addr"`
|
||||
GameSocketHost string `json:"game_socket_host"`
|
||||
GameSocketPort int `json:"game_socket_port"`
|
||||
}
|
||||
|
||||
MysqlConfig struct {
|
||||
Driver string `json:"driver"`
|
||||
Host string `json:"host"`
|
||||
Port string `json:"port"`
|
||||
User string `json:"user"`
|
||||
Password string `json:"password"`
|
||||
DbName string `json:"db_name"`
|
||||
}
|
||||
|
||||
MongoConfig struct {
|
||||
User string `json:"user"`
|
||||
Password string `json:"password"`
|
||||
SSLCaFile string `json:"ssl_ca_file"`
|
||||
Host string `json:"host"`
|
||||
Port int `json:"port"`
|
||||
}
|
||||
|
||||
GamesInfo struct {
|
||||
ConnectInfo []ConnectionInfo `json:"connect_info"`
|
||||
}
|
||||
TencentVideo struct {
|
||||
AppID int `json:"appID"`
|
||||
Key string `json:"secretKey"`
|
||||
CallBackKey string `json:"callBackKey"`
|
||||
Prefix string `json:"prefix"`
|
||||
TencentAsrCloudOS TencentAsrCloudOS `json:"tencent_asr_cloud_os"`
|
||||
}
|
||||
TencentAsr struct {
|
||||
AppID string `json:"appID"`
|
||||
Key string `json:"secretKey"`
|
||||
CallBackKey string `json:"callBackKey"`
|
||||
Prefix string `json:"prefix"`
|
||||
}
|
||||
TencentAsrCloudOS struct {
|
||||
Bucket string `json:"bucket"`
|
||||
|
||||
Region string `json:"region"`
|
||||
|
||||
BucketURL string `json:"bucketURL"`
|
||||
|
||||
CIURL string `json:"CIURL"`
|
||||
|
||||
CIWorkflows map[string]TencentCIWorkflows `json:"CIWorkflows"`
|
||||
}
|
||||
TencentCIWorkflows struct {
|
||||
Name string `json:"name"`
|
||||
|
||||
WorkflowId string `json:"workflowId"`
|
||||
}
|
||||
|
||||
TencentCloudOS struct {
|
||||
BucketURL string `json:"bucketURL"`
|
||||
ServiceURL string `json:"serviceURL"`
|
||||
BatchURL string `json:"batchURL"`
|
||||
CIURL string `json:"CIURL"`
|
||||
}
|
||||
|
||||
TencentSdkCommon struct {
|
||||
SecretId string `json:"secretId"`
|
||||
SecretKey string `json:"secretKey"`
|
||||
}
|
||||
BackHttp struct {
|
||||
Scheme string `json:"scheme"`
|
||||
Host string `json:"host"`
|
||||
Xkey string `json:"xkey"`
|
||||
}
|
||||
Us struct {
|
||||
PublicKey string `json:"public_key"`
|
||||
PrivateKey string `json:"private_key"`
|
||||
BucketHost string `json:"bucket_host"`
|
||||
BucketName string `json:"bucket_name"`
|
||||
FileHost string `json:"file_host"`
|
||||
VerifyUploadMD5 bool `json:"verfiy_upload_md5"`
|
||||
Endpoint string `json:"endpoint"`
|
||||
UsHostPath string `json:"us_host_path"`
|
||||
}
|
||||
|
||||
AIServer struct {
|
||||
Scheme string `json:"scheme"`
|
||||
Host string `json:"host"`
|
||||
}
|
||||
|
||||
KafkaConfig struct {
|
||||
Brokers []string `json:"brokers"`
|
||||
ChunkSize int `json:"chunkSize"`
|
||||
FlushInterval int `json:"flushInterval"`
|
||||
}
|
||||
|
||||
Elecnest struct {
|
||||
Scheme string `json:"scheme"`
|
||||
Host string `json:"host"`
|
||||
}
|
||||
|
||||
WechatMini struct {
|
||||
Scheme string `json:"scheme"`
|
||||
Host string `json:"host"`
|
||||
EnvVersion string `json:"envVersion"`
|
||||
GetWxACodeUnLimitPath string `json:"getWxACodeUnLimitPath"`
|
||||
GenerateUrlLinkPath string `json:"generateUrlLinkPath"`
|
||||
}
|
||||
|
||||
CommonConfig struct {
|
||||
Logger LoggerConfig `json:"logger"`
|
||||
Redis RedisConfig `json:"redis"`
|
||||
Etcd EtcdConfig `json:"etcd"`
|
||||
Tables TableConfig `json:"tables"`
|
||||
JWT JWTConfig `json:"jwt"`
|
||||
MysqlConfig MysqlConfig `json:"mysql"`
|
||||
MongoConfig MongoConfig `json:"mongo"`
|
||||
Kafka KafkaConfig `json:"kafka"`
|
||||
TencentVideo TencentVideo `json:"tencent_video_call"`
|
||||
TencentCloudOS TencentCloudOS `json:"tencent_cloud_os"`
|
||||
TencentSdkCommon TencentSdkCommon `json:"tencent_sdk_common"`
|
||||
GamesInfo GamesInfo `json:"games"`
|
||||
Back BackHttp `json:"back_http"`
|
||||
Us Us `json:"us"`
|
||||
AIServer AIServer `json:"ai_server"`
|
||||
Elecnest *Elecnest `json:"elecnest"`
|
||||
OpenLog bool `json:"open_log"`
|
||||
WechatMini *WechatMini `json:"wechat_mini"`
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user