Files
AIGC/demo/config/examples/env.example

44 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 环境变量配置示例
# 复制此文件为 .env 并根据实际情况修改
# 数据库配置
DB_URL=jdbc:mysql://localhost:3306/aigc?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
DB_USERNAME=root
DB_PASSWORD=your_database_password
# JWT配置
JWT_SECRET=your-very-long-and-secure-jwt-secret-key-at-least-256-bits-long
JWT_EXPIRATION=604800000
# 支付宝配置
ALIPAY_APP_ID=your_alipay_app_id
ALIPAY_PRIVATE_KEY=your_alipay_private_key
ALIPAY_PUBLIC_KEY=alipay_public_key
ALIPAY_NOTIFY_URL=https://yourdomain.com/api/payments/alipay/notify
ALIPAY_RETURN_URL=https://yourdomain.com/api/payments/alipay/return
# 日志配置
LOG_FILE_PATH=./logs/application.log
# 服务器配置
SERVER_PORT=8080
SERVER_CONTEXT_PATH=/
# 邮件配置(可选)
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=your_email@gmail.com
MAIL_PASSWORD=your_email_password
# Redis配置可选
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password
# 文件上传配置
UPLOAD_PATH=./uploads
MAX_FILE_SIZE=10MB