add: 新增端口环境变量
This commit is contained in:
1 parent
d6b753e405
commit
49567a2469
3 files changed
+4
No files matched your search
@@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
||||
|
||||
# Finder (MacOS) folder config
|
||||
.DS_Store
|
||||
|
||||
build/
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
# Project env
|
||||
# DB_HOST
|
||||
# DB_PORT
|
||||
# DB_USER_NAME
|
||||
# DB_USER_PASSWD
|
||||
# DB_NAME
|
||||
|
||||
@@ -12,6 +12,7 @@ const app = appTmp.basePath("/auth")
|
||||
const db = new SQL({
|
||||
"adapter": "mariadb",
|
||||
"host": Bun.env.DB_HOST ?? "localhost",
|
||||
"port": Bun.env.DB_PORT ?? "3306",
|
||||
"user": Bun.env.DB_USER_NAME ?? "root",
|
||||
"password": Bun.env.DB_USER_PASSWD ?? "root",
|
||||
"database": Bun.env.DB_NAME ?? "user_auth",
|
||||
|
||||
Reference in new issue
Block a user