init
This commit is contained in:
36
server/.env.example
Normal file
36
server/.env.example
Normal file
@@ -0,0 +1,36 @@
|
||||
# 环境变量配置示例文件
|
||||
# 复制此文件为 .env 并根据实际情况修改配置
|
||||
|
||||
# 应用环境 (development/dev, test/testing, production/prod)
|
||||
GO_ENV=development
|
||||
# 或者使用以下任一变量名
|
||||
# APP_ENV=development
|
||||
# ENVIRONMENT=development
|
||||
|
||||
# 数据库配置 (生产环境使用)
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=your_password_here
|
||||
DB_NAME=ai_dianshang
|
||||
|
||||
# Redis配置 (生产环境使用)
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
REDIS_DB=0
|
||||
|
||||
# JWT配置 (生产环境使用)
|
||||
JWT_SECRET=your-super-secret-jwt-key-for-production
|
||||
JWT_EXPIRE=7200
|
||||
|
||||
# 日志配置 (生产环境使用)
|
||||
LOG_LEVEL=info
|
||||
|
||||
# 微信小程序配置 (生产环境使用)
|
||||
WECHAT_APP_ID=wx430b70d696b4dbd7
|
||||
WECHAT_APP_SECRET=your_wechat_app_secret_here
|
||||
|
||||
# 服务器配置
|
||||
SERVER_PORT=8080
|
||||
SERVER_MODE=release
|
||||
Reference in New Issue
Block a user