- 使用 pgx/sqlx 建立连接,从环境变量读取数据库密码 - 添加本地 PostgreSQL Compose 配置与初始迁移 - 补充 Goose 操作手册和连接串排错说明
18 lines
333 B
TOML
18 lines
333 B
TOML
[app]
|
|
name = "lyra"
|
|
env = "debug" #gin支持 release | test | debug 3种mode,如果需要自定义,需要映射到这3种mode中去,gin的默认模式是debug模式
|
|
|
|
[http]
|
|
host = "0.0.0.0"
|
|
port = 7777
|
|
|
|
[database]
|
|
driver = "pgx"
|
|
host = "localhost"
|
|
port = 5432
|
|
user = "admin"
|
|
name = "lab"
|
|
|
|
[redis]
|
|
host = "localhost"
|
|
port = 6379 |