forked from mahmoudsamy7729/fastapi-saas-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (51 loc) · 3.19 KB
/
.env.example
File metadata and controls
60 lines (51 loc) · 3.19 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# ── App ──────────────────────────────────────────────────
APP_NAME=FastAPI Auth System
APP_ENV=development
APP_DEBUG=True
APP_URL=http://localhost:8000
# ── Database ─────────────────────────────────────────────
DATABASE_URL=postgresql+asyncpg://dev_user:dev_pass@localhost:5432/fastapi_saas
SYNC_DATABASE_URL=postgresql+psycopg://dev_user:dev_pass@localhost:5432/fastapi_saas
TEST_DATABASE_URL=postgresql+asyncpg://dev_user:dev_pass@localhost:5432/fastapi_saas_test
# ── JWT ──────────────────────────────────────────────────
ALGORITHM=HS256
ACCESS_SECRET_KEY=change-me-access
ACCESS_TOKEN_EXPIRE=900
REFRESH_SECRET_KEY=change-me-refresh
REFRESH_TOKEN_EXPIRE=2592000
VALIDATION_SECRET_KEY=change-me-validation
VALIDATION_TOKEN_EXPIRE=900
# ── Mail (SMTP) ─────────────────────────────────────────
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=noreply@example.com
SMTP_PASSWORD=change-me
# ── OAuth – Google ───────────────────────────────────────
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_REDIRECT_URI=http://localhost:8000/auth/social/callback/google
GOOGLE_AUTH_URL=https://accounts.google.com/o/oauth2/v2/auth
GOOGLE_TOKEN_URL=https://oauth2.googleapis.com/token
GOOGLE_USERINFO_URL=https://www.googleapis.com/oauth2/v2/userinfo
# ── OAuth – GitHub ───────────────────────────────────────
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GITHUB_REDIRECT_URI=http://localhost:8000/auth/social/callback/github
GITHUB_AUTHORIZE_URL=https://github.com/login/oauth/authorize
GITHUB_TOKEN_URL=https://github.com/login/oauth/access_token
GITHUB_USER_API=https://api.github.com/user
GITHUB_EMAILS=https://api.github.com/user/emails
# ── Redis ────────────────────────────────────────────────
REDIS_URL=redis://localhost:6379/0
# ── Celery ───────────────────────────────────────────────
CELERY_WORKER_URL=redis://localhost:6379/1
CELERY_BEAT_URL=redis://localhost:6379/2
# ── Stripe ───────────────────────────────────────────────
STRIPE_PUBLIC_KEY=pk_test_xxx
STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_WEBHOOK_SECRET=whsec_xxx
# ── AI ───────────────────────────────────────────────────
AI_PROVIDER=groq
GROQ_API_KEY=your-groq-api-key
GROQ_BASE_URL=https://api.groq.com/openai/v1
AI_MODEL=openai/gpt-oss-120b