-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (47 loc) · 2.61 KB
/
Copy path.env.example
File metadata and controls
60 lines (47 loc) · 2.61 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
# =============================================================================
# SRS — Environment Variable Reference
# =============================================================================
# Copy this file to .env and fill in real values before running the app.
# NEVER commit a populated .env to version control.
#
# Variables marked (required) have no default and MUST be set.
# Variables marked (optional) have a sensible default shown after the =.
# =============================================================================
# ---- Application runtime ----------------------------------------------------
ENV=development # development | staging | production
DEBUG=true # false in production
LOG_LEVEL=INFO # DEBUG | INFO | WARNING | ERROR | CRITICAL
# ---- Security (required) ----------------------------------------------------
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY= # (required) min 32-character random hex string
ACCESS_TOKEN_EXPIRE_MINUTES=60
# Refresh tokens let a client get a new access token without re-logging in.
# POST /auth/refresh rotates them (old one revoked, new one issued); see
# POST /auth/logout to revoke one early.
REFRESH_TOKEN_EXPIRE_DAYS=30
# ---- Database (required) ----------------------------------------------------
# Development — SQLite, no server needed
DATABASE_URL=sqlite:///./support.db
# Production — PostgreSQL (uncomment and fill in)
# DATABASE_URL=postgresql://srs_user:CHANGE_ME@localhost:5432/srs_db?sslmode=require
# Docker Compose DB credentials (used by docker-compose.yml)
# Generate with: python -c "import secrets; print(secrets.token_urlsafe(24))"
POSTGRES_DB=srs_db
POSTGRES_USER=srs_user
POSTGRES_PASSWORD= # (required for Docker) strong random password
# ---- AI (required for LLM features) ----------------------------------------
AI_PROVIDER=openai
OPENAI_API_KEY= # (required) sk-...
OPENAI_MODEL=gpt-4o-mini
# Decision engine — tickets below this confidence score are escalated
CONFIDENCE_THRESHOLD_AUTO_RESOLVE=0.75
# ---- Email / OTP ------------------------------------------------------------
RESEND_API_KEY= # (required for OTP emails) re_...
# ---- Redis (optional) -------------------------------------------------------
# Leave blank to disable caching; the app runs fine without Redis
REDIS_URL=
# ---- Rate limiting (optional overrides) ------------------------------------
AUTH_RATE_LIMIT_LOGIN=10/minute
AUTH_RATE_LIMIT_FORGOT_PASSWORD=5/minute
# ---- Error tracking (optional) ----------------------------------------------
SENTRY_DSN=