_launch_server.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doc>
  3. <!-- #################################################################################### -->
  4. <define name="GameNodeDefine" param1="" param2="">
  5. </define>
  6. <!-- #################################################################################### -->
  7. <!-- IService全局配置 -->
  8. <GlobalConfig>
  9. <Env>dev</Env>
  10. <Realm>1</Realm>
  11. <Mysql></Mysql>
  12. <AcceptClientVersion>0.0.0</AcceptClientVersion>
  13. <TemplateRoot>../../data/ServerData/</TemplateRoot>
  14. <NoticeErrorUrl>https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=d9d262b8-17c8-4297-8b9f-bb1b7f72ac89</NoticeErrorUrl>
  15. <DebugPay>true</DebugPay>
  16. <BattleRecordURLPrefix>https://zqtfcn.oss-cn-shanghai.aliyuncs.com/apollo_dev/server/playback/</BattleRecordURLPrefix>
  17. </GlobalConfig>
  18. <!-- #################################################################################### -->
  19. <!-- 根节点配置,负责管理所有的ServiceNode,全局唯一节点 -->
  20. <NameServer>
  21. <RpcConfig>
  22. <LocalEndPoint>127.0.0.1:17000</LocalEndPoint>
  23. <NetworkTimeoutMS>15000</NetworkTimeoutMS>
  24. <RpcCodec>OpenCards.Server.Core.Serializer</RpcCodec>
  25. </RpcConfig>
  26. </NameServer>
  27. <!-- #################################################################################### -->
  28. <!-- 所有服务节点配置,服务节点为具体服务的容器 -->
  29. <ServiceNodes>
  30. <!-- 账号服务节点 -->
  31. <AccountNode1>
  32. <Redis>127.0.0.1,password=tmKjD1ENs3HfZ7adzLJO!,allowAdmin=true,syncTimeout=30000,responseTimeout=30000,connectRetry=1000,connectTimeout=10000;db=1</Redis>
  33. <RpcConfig>
  34. <LocalNodeType>AccountNode</LocalNodeType>
  35. <LocalNodeName>AccountNode1</LocalNodeName>
  36. <LocalEndPoint>127.0.0.1:17010</LocalEndPoint>
  37. <NameServerEndPoint>127.0.0.1:17000</NameServerEndPoint>
  38. <RequestTickTimeMS>5000</RequestTickTimeMS>
  39. <NetworkTimeoutMS>30000</NetworkTimeoutMS>
  40. <DefaultTaskExecuteTimeout>60000</DefaultTaskExecuteTimeout>
  41. <RpcCodec>OpenCards.Server.Core.Serializer</RpcCodec>
  42. <AcceptTypeMappings>
  43. <AccountServer>OpenCards.Server.Account.AccountServer</AccountServer>
  44. </AcceptTypeMappings>
  45. </RpcConfig>
  46. <StartService>
  47. <AccountServer>
  48. <ServiceName>AccountServer</ServiceName>
  49. <ServiceType>AccountServer</ServiceType>
  50. <Config>
  51. <HttpListen>http://+:18081/account/</HttpListen>
  52. <SecretKey>3dbf6b137a80d10953507929a0216d8b</SecretKey>
  53. <ServerListUrl>http://43.226.57.217:8007/apollo_60000/serverlist.json</ServerListUrl>
  54. <YmnCheckUrl>https://heimdall.vgplay.vn/check</YmnCheckUrl>
  55. <client_storage_url>http://43.226.57.217:8007/apollo_60000/</client_storage_url>
  56. <apply_app_verison>0.0.0</apply_app_verison>
  57. <apply_server_id>2</apply_server_id>
  58. <StopServerDataURL>http://43.226.57.217:8007/apollo_60000/stop_server_list.json</StopServerDataURL>
  59. <UpdateServerConfig>http://43.226.57.217:8007/apollo_60000/update_server_config.json</UpdateServerConfig>
  60. </Config>
  61. </AccountServer>
  62. </StartService>
  63. </AccountNode1>
  64. <!-- 公共服务节点 -->
  65. <PublicNode>
  66. <Redis>127.0.0.1,password=tmKjD1ENs3HfZ7adzLJO!,allowAdmin=true,syncTimeout=30000,responseTimeout=30000,connectRetry=1000,connectTimeout=10000;db=1</Redis>
  67. <Mysql>server=127.0.0.1;User ID=root;Password=CmASfW98lOKbFieqEQox;database=orm</Mysql>
  68. <RpcConfig>
  69. <LocalNodeType>PublicNode</LocalNodeType>
  70. <LocalNodeName>PublicNode</LocalNodeName>
  71. <LocalEndPoint>127.0.0.1:17060</LocalEndPoint>
  72. <NameServerEndPoint>127.0.0.1:17000</NameServerEndPoint>
  73. <RequestTickTimeMS>5000</RequestTickTimeMS>
  74. <NetworkTimeoutMS>30000</NetworkTimeoutMS>
  75. <DefaultTaskExecuteTimeout>60000</DefaultTaskExecuteTimeout>
  76. <RpcCodec>OpenCards.Server.Core.Serializer</RpcCodec>
  77. <AcceptTypeMappings>
  78. <GuildService>OpenCards.Service.Guild.GuildService</GuildService>
  79. <!-- <CenterService>OpenCards.Service.Center.CenterService</CenterService> -->
  80. <PublicService>OpenCards.Service.Public.PublicService</PublicService>
  81. <PayServer>OpenCards.Service.Pay.PayServer</PayServer>
  82. <FriendService>OpenCards.Service.Friend.FriendService</FriendService>
  83. <ChatService>OpenCards.Service.Chat.ChatService</ChatService>
  84. <ArenaPinnacleService>OpenCards.Server.Arena.ArenaPinnacleService</ArenaPinnacleService>
  85. <AdminService>OpenCards.Service.Admin.AdminService</AdminService>
  86. <BillService>OpenCards.Service.Bill.BillService</BillService>
  87. <AccountServer>OpenCards.Server.Account.AccountServer</AccountServer>
  88. </AcceptTypeMappings>
  89. </RpcConfig>
  90. <StartService>
  91. <AccountServer>
  92. <ServiceName>AccountServer</ServiceName>
  93. <ServiceType>AccountServer</ServiceType>
  94. <Config>
  95. <HttpListen>http://+:18081/account/</HttpListen>
  96. <SecretKey>3dbf6b137a80d10953507929a0216d8b</SecretKey>
  97. <ServerListUrl>http://43.226.57.217:8007/apollo_60000/serverlist.json</ServerListUrl>
  98. <YmnCheckUrl>https://heimdall.vgplay.vn/check</YmnCheckUrl>
  99. <client_storage_url>http://43.226.57.217:8007/apollo_60000/</client_storage_url>
  100. <apply_app_verison>0.0.0</apply_app_verison>
  101. <apply_server_id>2</apply_server_id>
  102. <!-- <Apply_Server_ID_URL>47.250.46.43:19821</Apply_Server_ID_URL>
  103. <Apply_Bind_Verison>0.1.9</Apply_Bind_Verison> -->
  104. <StopServerDataURL>http://43.226.57.217:8007/apollo_60000/stop_server_list.json</StopServerDataURL>
  105. <UpdateServerConfig>http://43.226.57.217:8007/apollo_60000/update_server_config.json</UpdateServerConfig>
  106. </Config>
  107. </AccountServer>
  108. <BillService>
  109. <ServiceName>BillService</ServiceName>
  110. <ServiceType>BillService</ServiceType>
  111. <Config>
  112. <platform>oss</platform>
  113. <accessKeyId>LTAI4GF8sN2RpWMyfqRy1swY</accessKeyId>
  114. <accessKeySecret>2vuPQ4eBoWYAZLsCNCbfJmVNP1EIxv</accessKeySecret>
  115. <endpoint>https://oss-cn-shanghai.aliyuncs.com/</endpoint>
  116. <path>apollo_60000/server/playback/{0}/{1}</path>
  117. <bucketName>zqtfcn</bucketName>
  118. </Config>
  119. </BillService>
  120. <GuildService>
  121. <ServiceName>GuildService</ServiceName>
  122. <ServiceType>GuildService</ServiceType>
  123. <Config></Config>
  124. </GuildService>
  125. <PublicService>
  126. <ServiceName>PublicService</ServiceName>
  127. <ServiceType>PublicService</ServiceType>
  128. <Config></Config>
  129. </PublicService>
  130. <PayServer>
  131. <ServiceName>PayServer</ServiceName>
  132. <ServiceType>PayServer</ServiceType>
  133. <Config>
  134. <HttpListen>http://+:18082/pay/</HttpListen>
  135. <SecretKey>643752757fde484d03adc694b2462322</SecretKey>
  136. <NotifyUrl>http://127.0.0.1:18082/pay/deliver</NotifyUrl>
  137. <Mysql>server=127.0.0.1;User ID=root;Password=CmASfW98lOKbFieqEQox;database=dbpay;</Mysql>
  138. </Config>
  139. </PayServer>
  140. <FriendService>
  141. <ServiceName>FriendService</ServiceName>
  142. <ServiceType>FriendService</ServiceType>
  143. <Config></Config>
  144. </FriendService>
  145. <ChatService>
  146. <ServiceName>ChatService</ServiceName>
  147. <ServiceType>ChatService</ServiceType>
  148. <Config>
  149. <HttpListen>http://+:18089/chat/</HttpListen>
  150. <AppKey>YOUME77489D86AE5330CCFFB62E3BB8B4C6B4F48AA54A</AppKey>
  151. <AppSecret>rItImoJh1R593aBuzrVzzq4yDSFAxHwEDH2EXp40nX8ISeb2Tn/xVAjGreDuFILst50JIlpFRCStbOHk8h9XyLZ5Pcd992f8L0D6GUg60gQyxr9gCvrR/HF0QQHdWN2KxAOTYhVP6G/htOY/bxmtJbQw0Yn/+Yd3T9n69cCQS+0BAAE=</AppSecret>
  152. </Config>
  153. </ChatService>
  154. <ArenaPinnacleService>
  155. <ServiceName>ArenaPinnacleService</ServiceName>
  156. <ServiceType>ArenaPinnacleService</ServiceType>
  157. <Config></Config>
  158. </ArenaPinnacleService>
  159. <AdminService>
  160. <ServiceName>AdminService</ServiceName>
  161. <ServiceType>AdminService</ServiceType>
  162. <Config>
  163. <HttpListen>http://+:18088/api/</HttpListen>
  164. <APIKey>SeaOfVanGuard</APIKey>
  165. <GMTBaseUrl>http://127.0.0.1:7001</GMTBaseUrl>
  166. <AccountUrl>http://127.0.0.1:18081/account/</AccountUrl>
  167. <PayUrl>http://127.0.0.1:18082/pay/</PayUrl>
  168. </Config>
  169. </AdminService>
  170. </StartService>
  171. </PublicNode>
  172. <!-- 游戏服节点 -->
  173. <GameNode1>
  174. <Redis>127.0.0.1,password=tmKjD1ENs3HfZ7adzLJO!,allowAdmin=true,syncTimeout=30000,responseTimeout=30000,connectRetry=1000,connectTimeout=10000;db=1</Redis>
  175. <Mysql>server=127.0.0.1;User ID=root;Password=CmASfW98lOKbFieqEQox;database=orm</Mysql>
  176. <Ip>127.0.0.1</Ip>
  177. <RpcConfig>
  178. <LocalNodeType>GameNode</LocalNodeType>
  179. <LocalNodeName>GameNode1</LocalNodeName>
  180. <LocalEndPoint>127.0.0.1:17020</LocalEndPoint>
  181. <NameServerEndPoint>127.0.0.1:17000</NameServerEndPoint>
  182. <RequestTickTimeMS>5000</RequestTickTimeMS>
  183. <NetworkTimeoutMS>30000</NetworkTimeoutMS>
  184. <DefaultTaskExecuteTimeout>60000</DefaultTaskExecuteTimeout>
  185. <RpcCodec>OpenCards.Server.Core.Serializer</RpcCodec>
  186. <AcceptTypeMappings>
  187. <CenterService>OpenCards.Service.Center.CenterService</CenterService>
  188. <AccountServer>OpenCards.Server.Account.AccountServer</AccountServer>
  189. <ConnectorService>OpenCards.Server.Connector.ConnectorService</ConnectorService>
  190. <ArenaPinnacleGameService>OpenCards.Server.Arena.ArenaPinnacleGameService</ArenaPinnacleGameService>
  191. <ArenaManagerService>OpenCards.Server.Arena.ArenaManagerService</ArenaManagerService>
  192. <ArenaValorService>OpenCards.Server.Arena.ArenaValorService</ArenaValorService>
  193. <ArenaHighendService>OpenCards.Server.Arena.ArenaHighendService</ArenaHighendService>
  194. <SessionService>OpenCards.Server.Connector.SessionService</SessionService>
  195. <LogicService>OpenCards.Server.Logic.LogicService</LogicService>
  196. <LogicManagerService>OpenCards.Server.Logic.LogicManagerService</LogicManagerService>
  197. <StageRankService>OpenCards.Service.StageRank.StageRankService</StageRankService>
  198. </AcceptTypeMappings>
  199. </RpcConfig>
  200. <StartService>
  201. <!-- LogicManagerService -->
  202. <LogicManagerService>
  203. <ServiceName>LogicManagerService_1</ServiceName>
  204. <ServiceType>LogicManagerService</ServiceType>
  205. <Config>
  206. <FightPostURL>http://127.0.0.1:8088/fight/reqstartbattle</FightPostURL>
  207. <serverID>1</serverID>
  208. </Config>
  209. </LogicManagerService>
  210. <!-- Center -->
  211. <CenterService>
  212. <ServiceName>CenterService_1</ServiceName>
  213. <ServiceType>CenterService</ServiceType>
  214. <Config>
  215. <serverID>1</serverID>
  216. </Config>
  217. </CenterService>
  218. <StageRankService>
  219. <ServiceName>StageRankService</ServiceName>
  220. <ServiceType>StageRankService</ServiceType>
  221. <Config>
  222. <serverID>1</serverID>
  223. </Config>
  224. </StageRankService>
  225. <!-- ArenaManager -->
  226. <ArenaManagerService>
  227. <ServiceName>ArenaPinnacleGameService_1</ServiceName>
  228. <ServiceType>ArenaPinnacleGameService</ServiceType>
  229. <Config>
  230. <ServerID>1</ServerID>
  231. </Config>
  232. </ArenaManagerService>
  233. <!-- ArenaManager -->
  234. <ArenaManagerService>
  235. <ServiceName>ArenaManagerService_1</ServiceName>
  236. <ServiceType>ArenaManagerService</ServiceType>
  237. <Config>
  238. <ServerID>1</ServerID>
  239. </Config>
  240. </ArenaManagerService>
  241. <!-- ArenaHighend -->
  242. <ArenaHighendService>
  243. <ServiceName>ArenaHighendService_1</ServiceName>
  244. <ServiceType>ArenaHighendService</ServiceType>
  245. <Config></Config>
  246. </ArenaHighendService>
  247. <!-- Connector -->
  248. <ConnectorService>
  249. <ServiceName>ConnectorService_1</ServiceName>
  250. <ServiceType>ConnectorService</ServiceType>
  251. <Config>
  252. <ServerId>1</ServerId>
  253. <Host>0.0.0.0</Host>
  254. <Port>19821</Port>
  255. <NetCodec>OpenCards.Core.Serializer</NetCodec>
  256. <KeepAlive>true</KeepAlive>
  257. <KeepAliveInterval>30000</KeepAliveInterval>
  258. <RecvBufferSize>16384</RecvBufferSize>
  259. <SendBufferSize>16384</SendBufferSize>
  260. <MaxConnections>300000</MaxConnections>
  261. </Config>
  262. </ConnectorService>
  263. </StartService>
  264. </GameNode1>
  265. <!-- 游戏服节点 -->
  266. <GameNode2>
  267. <Redis>127.0.0.1,password=tmKjD1ENs3HfZ7adzLJO!,allowAdmin=true,syncTimeout=30000,responseTimeout=30000,connectRetry=1000,connectTimeout=10000;db=2</Redis>
  268. <Mysql>server=127.0.0.1;User ID=root;Password=CmASfW98lOKbFieqEQox;database=orm</Mysql>
  269. <Ip>127.0.0.1</Ip>
  270. <RpcConfig>
  271. <LocalNodeType>GameNode</LocalNodeType>
  272. <LocalNodeName>GameNode2</LocalNodeName>
  273. <LocalEndPoint>127.0.0.1:17021</LocalEndPoint>
  274. <NameServerEndPoint>127.0.0.1:17000</NameServerEndPoint>
  275. <RequestTickTimeMS>5000</RequestTickTimeMS>
  276. <NetworkTimeoutMS>30000</NetworkTimeoutMS>
  277. <DefaultTaskExecuteTimeout>60000</DefaultTaskExecuteTimeout>
  278. <RpcCodec>OpenCards.Server.Core.Serializer</RpcCodec>
  279. <AcceptTypeMappings>
  280. <CenterService>OpenCards.Service.Center.CenterService</CenterService>
  281. <AccountServer>OpenCards.Server.Account.AccountServer</AccountServer>
  282. <ConnectorService>OpenCards.Server.Connector.ConnectorService</ConnectorService>
  283. <ArenaManagerService>OpenCards.Server.Arena.ArenaManagerService</ArenaManagerService>
  284. <ArenaValorService>OpenCards.Server.Arena.ArenaValorService</ArenaValorService>
  285. <ArenaHighendService>OpenCards.Server.Arena.ArenaHighendService</ArenaHighendService>
  286. <SessionService>OpenCards.Server.Connector.SessionService</SessionService>
  287. <LogicService>OpenCards.Server.Logic.LogicService</LogicService>
  288. <LogicManagerService>OpenCards.Server.Logic.LogicManagerService</LogicManagerService>
  289. </AcceptTypeMappings>
  290. </RpcConfig>
  291. <StartService>
  292. <!-- LogicManagerService -->
  293. <LogicManagerService>
  294. <ServiceName>LogicManagerService_2</ServiceName>
  295. <ServiceType>LogicManagerService</ServiceType>
  296. <Config>
  297. <FightPostURL>http://127.0.0.1:8088/fight/reqstartbattle</FightPostURL>
  298. <serverID>2</serverID>
  299. </Config>
  300. </LogicManagerService>
  301. <!-- Center -->
  302. <CenterService>
  303. <ServiceName>CenterService_2</ServiceName>
  304. <ServiceType>CenterService</ServiceType>
  305. <Config>
  306. <serverID>2</serverID>
  307. </Config>
  308. </CenterService>
  309. <!-- ArenaManager -->
  310. <ArenaManagerService>
  311. <ServiceName>ArenaManagerService_2</ServiceName>
  312. <ServiceType>ArenaManagerService</ServiceType>
  313. <Config>
  314. <ServerID>2</ServerID>
  315. </Config>
  316. </ArenaManagerService>
  317. <!-- ArenaHighend -->
  318. <ArenaHighendService>
  319. <ServiceName>ArenaHighendService_2</ServiceName>
  320. <ServiceType>ArenaHighendService</ServiceType>
  321. <Config></Config>
  322. </ArenaHighendService>
  323. <!-- Connector -->
  324. <ConnectorService>
  325. <ServiceName>ConnectorService_2</ServiceName>
  326. <ServiceType>ConnectorService</ServiceType>
  327. <Config>
  328. <ServerId>2</ServerId>
  329. <Host>0.0.0.0</Host>
  330. <Port>19822</Port>
  331. <NetCodec>OpenCards.Core.Serializer</NetCodec>
  332. <KeepAlive>true</KeepAlive>
  333. <KeepAliveInterval>30000</KeepAliveInterval>
  334. <RecvBufferSize>16384</RecvBufferSize>
  335. <SendBufferSize>16384</SendBufferSize>
  336. <MaxConnections>300000</MaxConnections>
  337. </Config>
  338. </ConnectorService>
  339. </StartService>
  340. </GameNode2>
  341. </ServiceNodes>
  342. </doc>