ci(config): update database configuration and docker registry
- Update docker registry URL from 101.201.61.151:3000 to 113.44.68.213:3000 - Update database host from 113.44.68.213 to 101.201.61.151 - Update database credentials: - User: from 'catface' to 'root' - Pass: from 'catface2024WHU#' to 'Havoc420'
This commit is contained in:
parent
3e4f9841a6
commit
72658a2ba7
@ -12,7 +12,7 @@ on:
|
||||
branches: ["main"]
|
||||
|
||||
env:
|
||||
REGISTRY: 101.201.61.151:3000
|
||||
REGISTRY: 113.44.68.213:3000
|
||||
IMAGE_NAME: ${{ gitea.repository }}
|
||||
|
||||
jobs:
|
||||
|
@ -5,13 +5,13 @@ Gormv2: # 只针对 gorm 操作数据库有效
|
||||
IsInitGlobalGormMysql: 1 # 随项目启动为gorm db初始化一个全局 variable.GormDbMysql(完全等于*gorm.Db),正确配置数据库,该值必须设置为: 1
|
||||
SlowThreshold: 30 # 慢 SQL 阈值(sql执行时间超过此时间单位(秒),就会触发系统日志记录)
|
||||
Write:
|
||||
Host: "113.44.68.213"
|
||||
Host: "101.201.61.151"
|
||||
# Host: "127.0.0.1"
|
||||
DataBase: "hav_cats"
|
||||
Port: 3306
|
||||
Prefix: "tb_" # 目前没有用到该配置项
|
||||
User: "catface"
|
||||
Pass: "catface2024WHU#"
|
||||
User: "root"
|
||||
Pass: "Havoc420"
|
||||
Charset: "utf8"
|
||||
SetMaxIdleConns: 10
|
||||
SetMaxOpenConns: 128
|
||||
@ -20,7 +20,7 @@ Gormv2: # 只针对 gorm 操作数据库有效
|
||||
#PingFailRetryTimes: 3 # 保留项,最大重连次数
|
||||
IsOpenReadDb: 0 # INFO 是否开启读写分离配置(1=开启、0=关闭),IsOpenReadDb=1,Read 部分参数有效,否则Read部分参数直接忽略
|
||||
Read:
|
||||
Host: "113.44.68.213"
|
||||
Host: "101.201.61.151"
|
||||
DataBase: "hav_cats"
|
||||
Port: 3308 #注意,非3306,请自行调整 # TODO
|
||||
Prefix: "tb_"
|
||||
|
Loading…
x
Reference in New Issue
Block a user