UNPKG

2.97 kBJavaScriptView Raw
1/**
2/**
3 * Created by liub on 2017-04-03.
4 *
5 * 本文件为模板文件,请在本地复制一份并改名为 gameconfig.js (因含有敏感信息,请本地使用,不要上传)
6 */
7
8/**
9 * 统一的数据库连接串,如果不同服务器连接不同数据库,需要改写 config 中各个 mysql 字段
10 */
11let mysql = {
12 "logging" : false, //记录日志
13 "db": "gamecloud", //数据库名称
14 "sa": "dev", //数据库用户名
15 "pwd": "", //数据库用户密码
16 "host": "127.0.0.1", //数据库服务器IP地址
17 "port": 3306 //数据库服务器端口号
18};
19
20let redis = {
21 "host": "127.0.0.1",
22 "port": 6379,
23 "opts": {}
24};
25
26let config = {
27 "servers":{
28 "Index":{
29 "1":{
30 "debug": true, //本地测试模式
31 "UrlHead": "http", //协议选择: http/https
32 "MaxConnection": 3000, //最大并发连接
33 "MaxRegister": 12000, //单服最大注册用户数
34 "PoolMax": 500, //最大数据库并发连接
35 "game_secret": "",
36 "game_name": "鸡小德",
37 "redis": redis,
38 "mysql": mysql,
39 "webserver": {
40 "mapping": "127.0.0.1",
41 "host": "127.0.0.1",
42 "port": 9901
43 },
44 "auth": {
45 "openid": "18681223392",
46 "openkey": "",
47 "domain": "tx.IOS",
48 "tokenExp": 600,
49 "sessionExp": 7200,
50 "pf": "wanba_ts"
51 },
52 "admin":{
53 "role":{
54 "default": "chick.server",
55 "system": "chick.server"
56 },
57 "game_secret": ""
58 },
59 "tx": {
60 "appid": "1105943531",
61 "appkey": "",
62 "pay_appid": "1450011656",
63 "pay_appkey": "",
64 "reportApiUrl": "http://tencentlog.com",
65 "openApiUrl": "https://api.urlshare.cn",
66 "openApiUrlWithPay":"https://api.urlshare.cn"
67 },
68 "360":{
69 "appid":"203500811",
70 "game_key": "f075d0f4cab79b4df2ff690b4e0d96c4",
71 "game_secret": ""
72 }
73 }
74 },
75 "IOS":{
76 "1":{
77 "mysql": mysql,
78 "webserver": {
79 "mapping": "127.0.0.1",
80 "host": "127.0.0.1",
81 "port": 9101
82 }
83 }
84 }
85 },
86}
87
88module.exports = config;
\No newline at end of file