Skip to content

Commit

Permalink
quanta配置模块梳理
Browse files Browse the repository at this point in the history
1、配置模块梳理
2、配置模板功能支持
3、一些接口优化
  • Loading branch information
xiyoo0812 committed Nov 15, 2023
1 parent 233908b commit 1c033cf
Show file tree
Hide file tree
Showing 70 changed files with 643 additions and 2,214 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ cd bin
- lua-protobuf

# 数据库支持
- etcd
- mongo
- mysql
- redis
- influx
- clickhouse

# 支持功能
Expand All @@ -98,7 +96,8 @@ cd bin
- 星型分布式服务器框架

# 辅助工具
- graylog日志系统
- GMWeb工具
- 协议测试Web工具
- redis服务发现系统
- zipkin/jager调用链系统
- nacos配置管理和服务发现系统
- dingding/wechat/lark等webhook通知
33 changes: 0 additions & 33 deletions bin/accord.conf

This file was deleted.

19 changes: 0 additions & 19 deletions bin/cache.conf

This file was deleted.

20 changes: 0 additions & 20 deletions bin/cachesvr.conf

This file was deleted.

16 changes: 16 additions & 0 deletions bin/config/quanta.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--eufaula配置参数

--服务器集群,对应后台的服务器id
QUANTA_CLUSTER = 2

--主机IP
QUANTA_HOST_IP = "10.98.8.59"

--mongo地址
QUANTA_MONGO_URL = "mongodb://root:MTAE379673#@10.96.8.100:27017"

--redis地址
QUANTA_REDIS_URL = "redis://root:[email protected]:6379"

--企业微信地址
QUANTA_WECHAT_URL = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=ee6d97c5-477d-436f-83db-dd5361a5e8bd"
24 changes: 24 additions & 0 deletions bin/configure.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@


@echo off
setlocal enabledelayedexpansion

set /p CONF=please input your conf name:

set RootDir=%~dp0

set ConfDir=%RootDir%quanta
rmdir /Q /S %ConfDir%
md %ConfDir%

set TplDir=%RootDir%template
cd %TplDir%

set SCRIPT=../../extend/lmake/ltemplate.lua
set ENVIRON=../config/%CONF%.conf
for %%i in (*.conf) do (
..\lua.exe %SCRIPT% %%i %ConfDir%\%%i %ENVIRON%
)

pause

27 changes: 0 additions & 27 deletions bin/database.conf

This file was deleted.

20 changes: 0 additions & 20 deletions bin/luapath.conf

This file was deleted.

20 changes: 0 additions & 20 deletions bin/mongo.conf

This file was deleted.

41 changes: 0 additions & 41 deletions bin/monitor.conf

This file was deleted.

21 changes: 0 additions & 21 deletions bin/mysql.conf

This file was deleted.

20 changes: 0 additions & 20 deletions bin/online.conf

This file was deleted.

11 changes: 11 additions & 0 deletions bin/quanta.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
taskkill /f /im quanta.exe

::start "accord" quanta.exe quanta\accord.conf --index=1 --port=1
start "monitor" quanta.exe quanta\monitor.conf --index=1 --port=1
start "router1" quanta.exe quanta\router.conf --index=1 --port=1
start "cache1" quanta.exe quanta\cache.conf --index=1 --port=1
start "mongo" quanta.exe quanta\mongo.conf --index=1 --port=1
start "redis" quanta.exe quanta\redis.conf --index=1 --port=1
start "gate1" quanta.exe quanta\gateway.conf --index=1 --port=1
start "center" quanta.exe quanta\center.conf --index=1 --port=1
start "login" quanta.exe quanta\login.conf --index=1 --port=1
Loading

0 comments on commit 1c033cf

Please sign in to comment.