chore: 更新配置文件和依赖
This commit is contained in:
14
config.yml
14
config.yml
@@ -12,7 +12,9 @@ server:
|
|||||||
rate:
|
rate:
|
||||||
limit: 200
|
limit: 200
|
||||||
burst: 300
|
burst: 300
|
||||||
|
cache:
|
||||||
|
localTTL: 60
|
||||||
|
redisTTL: 300
|
||||||
# Database.
|
# Database.
|
||||||
database:
|
database:
|
||||||
default:
|
default:
|
||||||
@@ -22,6 +24,7 @@ database:
|
|||||||
user: "postgres"
|
user: "postgres"
|
||||||
pass: "Bjang09@686^*^"
|
pass: "Bjang09@686^*^"
|
||||||
name: "assets"
|
name: "assets"
|
||||||
|
prefix: "assets_" # (可选)表名前缀
|
||||||
role: "master" # (可选)数据库主从角色(master/slave),默认为master。如果不使用应用主从机制请不配置或留空即可。
|
role: "master" # (可选)数据库主从角色(master/slave),默认为master。如果不使用应用主从机制请不配置或留空即可。
|
||||||
debug: false # (可选)开启调试模式
|
debug: false # (可选)开启调试模式
|
||||||
dryRun: false # (可选)ORM空跑(只读不写)
|
dryRun: false # (可选)ORM空跑(只读不写)
|
||||||
@@ -41,6 +44,7 @@ database:
|
|||||||
user: "postgres"
|
user: "postgres"
|
||||||
pass: "Bjang09@686^*^"
|
pass: "Bjang09@686^*^"
|
||||||
name: "assets"
|
name: "assets"
|
||||||
|
prefix: "assets_" # (可选)表名前缀
|
||||||
role: "slave" # (可选)数据库主从角色(master/slave),默认为master。如果不使用应用主从机制请不配置或留空即可。
|
role: "slave" # (可选)数据库主从角色(master/slave),默认为master。如果不使用应用主从机制请不配置或留空即可。
|
||||||
debug: false # (可选)开启调试模式
|
debug: false # (可选)开启调试模式
|
||||||
dryRun: false # (可选)ORM空跑(只读不写)
|
dryRun: false # (可选)ORM空跑(只读不写)
|
||||||
@@ -60,9 +64,9 @@ database:
|
|||||||
port: "15432"
|
port: "15432"
|
||||||
user: "postgres"
|
user: "postgres"
|
||||||
pass: "Bjang09@686^*^"
|
pass: "Bjang09@686^*^"
|
||||||
name: "tenant"
|
name: "tenant-1"
|
||||||
role: "master"
|
|
||||||
prefix: "assets_" # (可选)表名前缀
|
prefix: "assets_" # (可选)表名前缀
|
||||||
|
role: "master"
|
||||||
debug: true # (可选)开启调试模式
|
debug: true # (可选)开启调试模式
|
||||||
dryRun: false # (可选)ORM空跑(只读不写)
|
dryRun: false # (可选)ORM空跑(只读不写)
|
||||||
charset: "utf8" # (可选)数据库编码(如: utf8mb4/utf8/gbk/gb2312),一般设置为utf8mb4。默认为utf8。
|
charset: "utf8" # (可选)数据库编码(如: utf8mb4/utf8/gbk/gb2312),一般设置为utf8mb4。默认为utf8。
|
||||||
@@ -112,10 +116,6 @@ nats:
|
|||||||
# 文件上传服务地址,与oss模块minio中的endpoint一致
|
# 文件上传服务地址,与oss模块minio中的endpoint一致
|
||||||
filePrefix: "http://116.204.74.41:9000"
|
filePrefix: "http://116.204.74.41:9000"
|
||||||
|
|
||||||
cache:
|
|
||||||
localTTL: 60
|
|
||||||
redisTTL: 300
|
|
||||||
|
|
||||||
gmq:
|
gmq:
|
||||||
redis:
|
redis:
|
||||||
primary:
|
primary:
|
||||||
|
|||||||
4
go.mod
4
go.mod
@@ -12,9 +12,9 @@ require (
|
|||||||
go.mongodb.org/mongo-driver/v2 v2.5.0
|
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
|
//replace github.com/bjang03/gmq => ../gmq
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/BurntSushi/toml v1.5.0 // indirect
|
github.com/BurntSushi/toml v1.5.0 // indirect
|
||||||
|
|||||||
Reference in New Issue
Block a user