mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 04:50:14 +09:00
chore: compatible zeabur env
This commit is contained in:
parent
4e408d110d
commit
c9a0d9c40e
@ -41,7 +41,7 @@ func getConn() *sql.DB {
|
|||||||
viper.GetString("mysql.password"),
|
viper.GetString("mysql.password"),
|
||||||
viper.GetString("mysql.host"),
|
viper.GetString("mysql.host"),
|
||||||
viper.GetInt("mysql.port"),
|
viper.GetInt("mysql.port"),
|
||||||
utils.GetStringConfs("mysql.db", "mysql.database"),
|
utils.GetStringConfs("mysql.database", "mysql.db"),
|
||||||
)
|
)
|
||||||
if viper.GetBool("mysql.tls") {
|
if viper.GetBool("mysql.tls") {
|
||||||
mysql.RegisterTLSConfig("tls", &tls.Config{
|
mysql.RegisterTLSConfig("tls", &tls.Config{
|
||||||
|
Loading…
Reference in New Issue
Block a user