Commit 59b56f33dda0fae553c35347a51ba1da43ffa3c7
1 parent
aa84432f
修改配置
Showing
3 changed files
with
32 additions
and
4 deletions
Show diff stats
config/basic.lua
| 1 | 1 | root = "./" |
| 2 | -logger = "server.log" | |
| 2 | +-- logger = "server.log" | |
| 3 | +logger = "services/errorlog" | |
| 4 | +logservice = "snlua" | |
| 5 | + | |
| 3 | 6 | harbor = 0 |
| 4 | 7 | start = "main" -- main script |
| 5 | 8 | bootstrap = "snlua bootstrap" -- The service for bootstrap |
| ... | ... | @@ -9,4 +12,23 @@ lualoader = "skynet/lualib/loader.lua" |
| 9 | 12 | preload = "./src/preload.lua" -- run preload.lua before every lua service run |
| 10 | 13 | cpath = root.."skynet/cservice/?.so" |
| 11 | 14 | lua_cpath = "skynet/luaclib/?.so" |
| 12 | -cluster = "./config/nodenames.lua" | |
| 13 | 15 | \ No newline at end of file |
| 16 | +cluster = "./config/nodenames.lua" | |
| 17 | + | |
| 18 | +codeurl = "10.204.50.34:9001" | |
| 19 | +logd = 1 -- 是否开启日志 | |
| 20 | +thread = 4 | |
| 21 | +max_client = 5000 | |
| 22 | +debug_port = 10001 | |
| 23 | +httpweb_port = 11001 | |
| 24 | + | |
| 25 | +serverType = "cb" | |
| 26 | +max_queue = 500 | |
| 27 | + | |
| 28 | +redis_port = 6379 | |
| 29 | +redis_db = 0 | |
| 30 | +redis_auth = "H3&Gm4MGhcPui%a" | |
| 31 | +server_port = 20001 | |
| 32 | + | |
| 33 | +mysql_port = 3306 | |
| 34 | +mysql_user = "was_prod" | |
| 35 | +mysql_password = "nitfbcPtR32!rC" | ... | ... |
config/nodenames.lua