change: 数据库连接信息使用本地环境变量
This commit is contained in:
1 parent
b43c31a12b
commit
b34def5f32
1 file changed
+4
-4
+4
-4
@@ -9,10 +9,10 @@ const appTmp = new Hono()
|
|||||||
const app = appTmp.basePath("/auth")
|
const app = appTmp.basePath("/auth")
|
||||||
const db = new SQL({
|
const db = new SQL({
|
||||||
"adapter": "mariadb",
|
"adapter": "mariadb",
|
||||||
"host": "localhost",
|
"host": Bun.env.DB_HOST ?? "localhost",
|
||||||
"user": "root",
|
"user": Bun.env.DB_USER_NAME ?? "root",
|
||||||
"password": "root",
|
"password": Bun.env.DB_USER_PASSWD ?? "root",
|
||||||
"database": "user_auth",
|
"database": Bun.env.DB_NAME ?? "user_auth",
|
||||||
"allowPublicKeyRetrieval": true
|
"allowPublicKeyRetrieval": true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user