You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
761 B

# 环境变量配置示例
# 复制此文件为 .env 并填入真实配置
# 阿里云OSS配置
ALIYUN_OSS_ENDPOINT=your-endpoint
ALIYUN_OSS_ACCESS_KEY_ID=your-access-key-id
ALIYUN_OSS_ACCESS_KEY_SECRET=your-access-key-secret
ALIYUN_OSS_BUCKET_NAME=your-bucket-name
ALIYUN_OSS_URL_PREFIX=https://your-bucket-name.oss-region.aliyuncs.com/
# 数据库配置
DB_URL=jdbc:mysql://localhost:3306/UniLife?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=UTC&characterEncoding=UTF-8
DB_USERNAME=root
DB_PASSWORD=123456
# Redis配置
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
# JWT配置
JWT_SECRET=qwertyuiopasdfghjklzxcvbnm
JWT_EXPIRATION=86400
# 邮箱配置
MAIL_HOST=smtp.163.com
MAIL_PORT=465
MAIL_USERNAME=your-email@163.com
MAIL_PASSWORD=your-auth-code