2024-01-17 09:22:28 +08:00
|
|
|
# server base
|
|
|
|
PORT=9520
|
|
|
|
PREFIX=/docs
|
|
|
|
APIPREFIX=/api
|
|
|
|
|
2024-04-21 09:10:56 +08:00
|
|
|
# MySQL
|
|
|
|
# MySQL数据库主机地址
|
|
|
|
DB_HOST=localhost
|
|
|
|
# MySQL数据库端口号
|
2024-01-17 09:22:28 +08:00
|
|
|
DB_PORT=3306
|
2024-04-21 09:10:56 +08:00
|
|
|
# MySQL数据库用户名
|
2024-01-17 09:22:28 +08:00
|
|
|
DB_USER=root
|
2024-04-21 09:10:56 +08:00
|
|
|
# MySQL数据库密码
|
2024-01-17 09:22:28 +08:00
|
|
|
DB_PASS=
|
2024-04-21 09:10:56 +08:00
|
|
|
# 要使用的MySQL数据库名称
|
2024-01-17 09:22:28 +08:00
|
|
|
DB_DATABASE=chatgpt
|
|
|
|
DB_SYNC=true
|
|
|
|
|
2024-04-21 09:10:56 +08:00
|
|
|
|
2024-01-17 09:22:28 +08:00
|
|
|
# jwt key token过期时间
|
|
|
|
JWT_SECRET=chat-cooper
|
|
|
|
JWT_EXPIRESIN=7d
|
|
|
|
|
|
|
|
# Redis
|
|
|
|
REDIS_PORT=6379
|
2024-04-21 09:10:56 +08:00
|
|
|
REDIS_HOST=127.0.0.1
|
2024-01-17 09:22:28 +08:00
|
|
|
REDIS_PASSWORD=
|
|
|
|
REDIS_USER=
|
|
|
|
|
|
|
|
# 是否测试环境
|
|
|
|
ISDEV=FALSE
|
|
|
|
|
2024-04-21 09:11:14 +08:00
|
|
|
NAMESPACE=AIWEB
|