Compare commits
2
Commits
d6b753e405
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d778aaabf5 | ||
|
|
49567a2469 |
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/
|
||||
@@ -21,6 +21,7 @@ source /your/sql/file/path/init_table.sql # sql在 ./sql/init_table.sql中
|
||||
|
||||
# 设置环境变量,根据实际修改
|
||||
export DB_HOST="localhost" # 数据库主机名/ip
|
||||
export DB_PORT="3306" # 数据库端口
|
||||
export DB_USER_NAME="root" # 数据库用户名
|
||||
export DB_USER_PASSWD="root" # 数据库密码
|
||||
export DB_NAME="user_auth" # 数据库名字
|
||||
|
||||
@@ -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