扫码登录,获取cookies
This commit is contained in:
23
backend/.env.local
Normal file
23
backend/.env.local
Normal file
@@ -0,0 +1,23 @@
|
||||
# 本地开发环境配置
|
||||
|
||||
# 数据库配置 (SQLite - 相对于 backend 目录)
|
||||
DATABASE_URL=sqlite+aiosqlite:///../weibo_hotsign.db
|
||||
|
||||
# Redis 配置 (可选,本地开发可以不启用)
|
||||
USE_REDIS=false
|
||||
# REDIS_URL=redis://localhost:6379
|
||||
|
||||
# JWT 配置
|
||||
JWT_SECRET_KEY=dev-secret-key-change-in-production
|
||||
JWT_ALGORITHM=HS256
|
||||
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=60
|
||||
|
||||
# Cookie 加密密钥 (32字节)
|
||||
COOKIE_ENCRYPTION_KEY=dev-cookie-encryption-key-32b
|
||||
|
||||
# 服务端口
|
||||
AUTH_SERVICE_PORT=8001
|
||||
API_SERVICE_PORT=8000
|
||||
|
||||
# 环境
|
||||
ENVIRONMENT=development
|
||||
Reference in New Issue
Block a user