commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# ==================================
|
||||
# Footprint 环境变量配置示例
|
||||
# ==================================
|
||||
# 复制此文件为 .env 并填入真实的配置值
|
||||
|
||||
# -----------------------------------
|
||||
# 域名配置
|
||||
# -----------------------------------
|
||||
# 前端访问地址
|
||||
FRONTEND_URL=https://your-frontend-domain.com
|
||||
|
||||
# 后端 API 地址
|
||||
API_URL=https://your-api-domain.com
|
||||
|
||||
# -----------------------------------
|
||||
# 安全密钥(请修改为随机生成的密钥)
|
||||
# -----------------------------------
|
||||
# 可以使用以下命令生成随机密钥:
|
||||
# openssl rand -base64 32
|
||||
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
|
||||
SESSION_SECRET=your-session-secret-change-this-in-production
|
||||
|
||||
# -----------------------------------
|
||||
# OAuth2 - Google
|
||||
# -----------------------------------
|
||||
# 获取地址: https://console.cloud.google.com/
|
||||
# 1. 创建项目 → API和服务 → 凭据
|
||||
# 2. 创建 OAuth 2.0 客户端ID
|
||||
# 3. 授权的重定向 URI: https://your-api-domain.com/auth/google/callback
|
||||
GOOGLE_CLIENT_ID=your-google-client-id
|
||||
GOOGLE_CLIENT_SECRET=your-google-client-secret
|
||||
GOOGLE_CALLBACK_URL=https://your-api-domain.com/auth/google/callback
|
||||
|
||||
# -----------------------------------
|
||||
# OAuth2 - GitHub
|
||||
# -----------------------------------
|
||||
# 获取地址: https://github.com/settings/developers
|
||||
# 1. New OAuth App
|
||||
# 2. Homepage URL: https://your-frontend-domain.com
|
||||
# 3. Authorization callback URL: https://your-api-domain.com/auth/github/callback
|
||||
GITHUB_CLIENT_ID=your-github-client-id
|
||||
GITHUB_CLIENT_SECRET=your-github-client-secret
|
||||
GITHUB_CALLBACK_URL=https://your-api-domain.com/auth/github/callback
|
||||
|
||||
# -----------------------------------
|
||||
# API 速率限制(可选)
|
||||
# -----------------------------------
|
||||
RATE_LIMIT_WINDOW_MS=900000
|
||||
RATE_LIMIT_MAX_REQUESTS=100
|
||||
Reference in New Issue
Block a user