# 环境变量配置示例
# 复制此文件为 .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

# PayPal配置
PAYPAL_CLIENT_ID=your_paypal_client_id
PAYPAL_CLIENT_SECRET=your_paypal_client_secret
PAYPAL_RETURN_URL=https://yourdomain.com/api/payments/paypal/return
PAYPAL_CANCEL_URL=https://yourdomain.com/api/payments/paypal/cancel

# 日志配置
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


