upgrade server.conf and webapi.conf in docker environment

This commit is contained in:
Ulric Qin 2022-05-21 18:10:22 +08:00
parent d6d2639e3a
commit 6ba93527ba
2 changed files with 6 additions and 50 deletions

View File

@ -120,7 +120,9 @@ Password = ""
# # db # # db
# DB = 0 # DB = 0
[Gorm] [DB]
# postgres: host=%s port=%s user=%s dbname=%s password=%s sslmode=%s
DSN="root:1234@tcp(mysql:3306)/n9e_v5?charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true"
# enable debug mode or not # enable debug mode or not
Debug = false Debug = false
# mysql postgres # mysql postgres
@ -136,30 +138,6 @@ TablePrefix = ""
# enable auto migrate or not # enable auto migrate or not
EnableAutoMigrate = false EnableAutoMigrate = false
[MySQL]
# mysql address host:port
Address = "mysql:3306"
# mysql username
User = "root"
# mysql password
Password = "1234"
# database name
DBName = "n9e_v5"
# connection params
Parameters = "charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true"
[Postgres]
# pg address host:port
Address = "postgres:5432"
# pg user
User = "root"
# pg password
Password = "1234"
# database name
DBName = "n9e_v5"
# ssl mode
SSLMode = "disable"
[Reader] [Reader]
# prometheus base url # prometheus base url
Url = "http://prometheus:9090" Url = "http://prometheus:9090"

View File

@ -129,7 +129,9 @@ Password = ""
# # db # # db
# DB = 0 # DB = 0
[Gorm] [DB]
# postgres: host=%s port=%s user=%s dbname=%s password=%s sslmode=%s
DSN="root:1234@tcp(mysql:3306)/n9e_v5?charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true"
# enable debug mode or not # enable debug mode or not
Debug = true Debug = true
# mysql postgres # mysql postgres
@ -145,30 +147,6 @@ TablePrefix = ""
# enable auto migrate or not # enable auto migrate or not
EnableAutoMigrate = false EnableAutoMigrate = false
[MySQL]
# mysql address host:port
Address = "mysql:3306"
# mysql username
User = "root"
# mysql password
Password = "1234"
# database name
DBName = "n9e_v5"
# connection params
Parameters = "charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true"
[Postgres]
# pg address host:port
Address = "postgres:5432"
# pg user
User = "root"
# pg password
Password = "1234"
# database name
DBName = "n9e_v5"
# ssl mode
SSLMode = "disable"
[[Clusters]] [[Clusters]]
# Prometheus cluster name # Prometheus cluster name
Name = "Default" Name = "Default"