-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
27 lines (23 loc) · 728 Bytes
/
env.example
File metadata and controls
27 lines (23 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Example environment variables
# Copy to .env for local dev, or export in your platform
# App
APP_NAME=fastapi-auth
APP_ENV=prod
SECRET_KEY=CHANGE_ME_GENERATE_A_RANDOM_32B_SECRET
API_HOST=0.0.0.0
API_PORT=8000
COOKIE_SECURE=true
COOKIE_SAMESITE=lax
# Database (choose one)
# Use Postgres in production
DB_BACKEND=postgres
DATABASE_URL=postgresql+psycopg://postgres:postgres@db:5432/app
# For SQLite (dev/testing), comment DATABASE_URL and set:
# DB_BACKEND=sqlite
# SQLITE_PATH=./app.db
# Redis (optional, for rate limiting). Leave empty to use in-memory fallback
# REDIS_URL=redis://redis:6379
# Email sender (for logs/stubs)
EMAIL_FROM=no-reply@example.com
EMAIL_TOKEN_EXPIRE_HOURS=24
PASSWORD_RESET_TOKEN_EXPIRE_HOURS=2