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:
Havoc420Mac 2025-04-05 05:40:59 +08:00
parent 3e4f9841a6
commit 72658a2ba7
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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_"