Commit 032a6e58b726004dd4fe5614142b76a6bbadcc97
1 parent
d81f1a3d
提交自运营游戏服配置
Showing
5 changed files
with
63 additions
and
4 deletions
Show diff stats
config/basic.lua
| 1 | 1 | root = "./" |
| 2 | 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,22 @@ 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 = "172.16.83.194:9001" | |
| 19 | +logd = 1 -- 是否开启日志 | |
| 20 | +thread = 4 | |
| 21 | +max_client = 3000 | |
| 22 | + | |
| 23 | +serverType = "cb" | |
| 24 | +max_queue = 500 | |
| 25 | + | |
| 26 | +redis_db = 0 | |
| 27 | +redis_auth = "H3&Gm4MGhcPui%a" | |
| 28 | + | |
| 29 | +redis_host = "127.0.0.1" | |
| 30 | + | |
| 31 | +mysql_host = "rm-bp1p5518oj8boxzci2o.mysql.rds.aliyuncs.com" | |
| 32 | +mysql_port = 3306 | |
| 33 | +mysql_user = "zhaolu" | |
| 34 | +mysql_password = "Zhaolu1234!@#$" | ... | ... |
config/nodenames.lua
| ... | ... | @@ -0,0 +1,23 @@ |
| 1 | +include("basic.lua") | |
| 2 | + | |
| 3 | +logd = 0 -- 是否开启日志 | |
| 4 | +thread = 4 | |
| 5 | +codeurl = "127.0.0.1:9001" | |
| 6 | +servId = 1 | |
| 7 | + | |
| 8 | +max_client = 2000 | |
| 9 | +max_queue = 1000 | |
| 10 | + | |
| 11 | +server_port = 20001 | |
| 12 | +debug_port = 10001 | |
| 13 | +httpweb_port = 11001 | |
| 14 | + | |
| 15 | +redis_host = "10.204.0.136" | |
| 16 | +redis_port = 6379 | |
| 17 | +redis_db = 1 | |
| 18 | +redis_auth = "H3&Gm4MGhcPui%a" | |
| 19 | + | |
| 20 | +mysql_host = "10.204.64.252" | |
| 21 | +mysql_port = 3306 | |
| 22 | +mysql_user = "wasteland_test" | |
| 23 | +mysql_password = "P6BrXVAZYkYn#s" | ... | ... |