Compare commits

..

2 Commits

Author SHA1 Message Date
qhd
91f3956496 chore: 更新配置文件和依赖 2026-04-03 15:19:11 +08:00
qhd
2058e360d6 chore: 更新配置文件和依赖 2026-04-03 15:16:14 +08:00
3 changed files with 10 additions and 8 deletions

View File

@@ -12,7 +12,9 @@ server:
rate:
limit: 200
burst: 300
cache:
localTTL: 60
redisTTL: 300
# Database.
database:
default:
@@ -22,6 +24,7 @@ database:
user: "postgres"
pass: "Bjang09@686^*^"
name: "assets"
prefix: "assets_" # (可选)表名前缀
role: "master" # (可选)数据库主从角色(master/slave)默认为master。如果不使用应用主从机制请不配置或留空即可。
debug: false # (可选)开启调试模式
dryRun: false # (可选)ORM空跑(只读不写)
@@ -41,6 +44,7 @@ database:
user: "postgres"
pass: "Bjang09@686^*^"
name: "assets"
prefix: "assets_" # (可选)表名前缀
role: "slave" # (可选)数据库主从角色(master/slave)默认为master。如果不使用应用主从机制请不配置或留空即可。
debug: false # (可选)开启调试模式
dryRun: false # (可选)ORM空跑(只读不写)
@@ -60,9 +64,9 @@ database:
port: "15432"
user: "postgres"
pass: "Bjang09@686^*^"
name: "tenant"
role: "master"
name: "tenant-1"
prefix: "assets_" # (可选)表名前缀
role: "master"
debug: true # (可选)开启调试模式
dryRun: false # (可选)ORM空跑(只读不写)
charset: "utf8" # (可选)数据库编码(如: utf8mb4/utf8/gbk/gb2312)一般设置为utf8mb4。默认为utf8。
@@ -112,10 +116,6 @@ nats:
# 文件上传服务地址与oss模块minio中的endpoint一致
filePrefix: "http://116.204.74.41:9000"
cache:
localTTL: 60
redisTTL: 300
gmq:
redis:
primary:

2
go.mod
View File

@@ -12,7 +12,7 @@ require (
go.mongodb.org/mongo-driver/v2 v2.5.0
)
replace gitea.com/red-future/common v0.0.11 => ../common
//replace gitea.com/red-future/common v0.0.11 => ../common
replace github.com/bjang03/gmq => ../gmq

2
go.sum
View File

@@ -1,4 +1,6 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
gitea.com/red-future/common v0.0.11 h1:AV7W3G0uZ8aPpHHSHd4ZHmLWe5+2STPKe/AYPoPCWVc=
gitea.com/red-future/common v0.0.11/go.mod h1:B8syUI4XbLCDQSeRHURYxEwnWw8mEFgmqCxjC+lM+NU=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=