扫码登录,获取cookies
This commit is contained in:
19
backend/.env
Normal file
19
backend/.env
Normal file
@@ -0,0 +1,19 @@
|
||||
# 本地开发环境配置 - 使用绝对路径
|
||||
|
||||
# 数据库配置 (SQLite - 绝对路径)
|
||||
# 请根据你的实际路径修改
|
||||
DATABASE_URL=sqlite+aiosqlite:///D:/code/weibo/weibo_hotsign.db
|
||||
|
||||
# Redis 配置 (可选,本地开发可以不启用)
|
||||
USE_REDIS=false
|
||||
|
||||
# JWT 配置
|
||||
JWT_SECRET_KEY=dev-secret-key-change-in-production
|
||||
JWT_ALGORITHM=HS256
|
||||
JWT_EXPIRATION_HOURS=24
|
||||
|
||||
# Cookie 加密密钥 (32字节)
|
||||
COOKIE_ENCRYPTION_KEY=dev-cookie-encryption-key-32b
|
||||
|
||||
# 环境
|
||||
ENVIRONMENT=development
|
||||
Reference in New Issue
Block a user