Skip to content

Commit

Permalink
Update config.yaml (#519)
Browse files Browse the repository at this point in the history
* Update config.yaml

* Update admin.pb.go

* Update config.yaml

* Update scripts-test.yml
  • Loading branch information
wxuanF authored Apr 24, 2024
1 parent f60a82f commit 43cb62e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 32 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/scripts-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
sudo mage start
sudo mage check
sudo cat _output/logs/chat_$(date '+%Y%m%d').log 2>/dev/null
echo "pwd = $(pwd)"
cd ..
ls -al && pwd
Expand All @@ -87,7 +86,5 @@ jobs:
- name: Print chat_$(date '+%Y%m%d').log
run: |
ls -al && echo "pwd = $(pwd)"
sudo cat ./_output/logs/* 2>/dev/null
sudo cat ./_output/logs/* 2>/dev/null >> "$GITHUB_OUTPUT"
shell: bash
continue-on-error: true
50 changes: 25 additions & 25 deletions deployments/helm-charts/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ config:
listenIP:

rpc:
registerIP: #作为rpc启动时,注册到zookeeper的IP,api/gateway能访问到此ip和对应的rpcPort中的端口
listenIP: #默认为0.0.0.0
registerIP:
listenIP:

rpcPort:
openImAdminPort: [ 80 ]
Expand All @@ -61,25 +61,25 @@ config:
openImAdminName: openimchat-admin-rpc:80
openImChatName: openimchat-chat-rpc:80

# 没有配置表示和OpenIM一致

mysql:
address: [ im-mysql:3306 ] #目前仅支持单机
username: root #用户名
password: openIM123 #密码
#database: openIM_v2 #不建议修改
maxOpenConn: 1000 #最大连接数
maxIdleConn: 100 #最大空闲连接数
maxLifeTime: 60 #连接可以重复使用的最长时间(秒)
logLevel: 4 #日志级别 1=slient 2=error 3=warn 4=info
slowThreshold: 500 #慢语句阈值 (毫秒)
address: [ im-mysql:3306 ]
username: root
password: openIM123
#database: openIM_v2
maxOpenConn: 1000
maxIdleConn: 100
maxLifeTime: 60
logLevel: 4
slowThreshold: 500
database: openim_enterprise

# 没有配置表示和OpenIM一致

log:
storageLocation: ../_output/logs/ #存放目录
rotationTime: 24 #日志旋转时间
remainRotationCount: 2 #日志数量
remainLogLevel: 6 #日志级别 6表示全都打印,
storageLocation: ../_output/logs/
rotationTime: 24
remainRotationCount: 2
remainLogLevel: 6
isStdout: true
isJson: false
withStack: false
Expand All @@ -91,21 +91,21 @@ config:
expire: 86400

verifyCode:
validTime: 300 # 验证码有效时间
validCount: 5 # 验证码有效次数
uintTime: 86400 # 单位时间间隔
maxCount: 10 # 单位时间内最大获取次数
superCode: "666666" # 超级验证码(只有use为空时使用)
len: 6 # 验证码长度
use: "" # 使用的验证码服务(use: "ali")
validTime: 300
validCount: 5
uintTime: 86400
maxCount: 10
superCode: "666666"
len: 6
use: ""
ali:
endpoint: "dysmsapi.aliyuncs.com"
accessKeyId: ""
accessKeySecret: ""
signName: ""
verificationCodeTemplateCode: ""

# 获取ip的header,没有配置直接获取远程地址

#proxyHeader: "X-Forwarded-For"

adminList:
Expand Down
8 changes: 4 additions & 4 deletions pkg/protocol/admin/admin.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 43cb62e

Please sign in to comment.