-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
61 lines (51 loc) · 4.12 KB
/
Copy path.env.example
File metadata and controls
61 lines (51 loc) · 4.12 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
61
# ── StackResume — Configuration ───────────────────────────────────────────
# Copy this file to .env. Everything here can ALSO be edited live from the
# in-app Settings → API Keys / AI Models modal (the DB overlay takes
# precedence over these defaults at runtime).
# ── LLM provider ──────────────────────────────────────────────────────────────
# One of: openai | anthropic | google | ollama | custom
# Default is Google Gemini — set GOOGLE_API_KEY below.
LLM_PROVIDER=google
LLM_MODEL=gemini-2.5-flash
LLM_TEMPERATURE=0.7
# ── Provider API keys ─────────────────────────────────────────────────────────
# Set the one matching LLM_PROVIDER. All can also be entered in the UI.
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
GOOGLE_API_KEY=
# ── Custom OpenAI-compatible endpoint (optional) ─────────────────────────────
# Only used when LLM_PROVIDER=custom. Point at any OpenAI-compatible API
# (Azure OpenAI, vLLM, Together.ai, …). Auth still uses OPENAI_API_KEY.
# OPENAI_BASE_URL=https://your-host/v1
# ── Ollama (optional) ─────────────────────────────────────────────────────────
# Only used if LLM_PROVIDER=ollama. Point at a host-installed Ollama server.
# Inside Docker, use http://host.docker.internal:11434 to reach the host.
OLLAMA_BASE_URL=http://host.docker.internal:11434
# ── LangSmith tracing (optional) ──────────────────────────────────────────────
# Set LANGSMITH_TRACING=true AND LANGSMITH_API_KEY to stream every LLM call
# to LangSmith. Verify the connection from Settings → Test trace.
LANGSMITH_API_KEY=
LANGSMITH_PROJECT=stackresume
LANGSMITH_TRACING=false
# ── Quality settings ──────────────────────────────────────────────────────────
MAX_REVIEW_ITERATIONS=3 # How many times to refine the resume (1-5)
MIN_QUALITY_SCORE=82.0 # Stop refining when this score is reached (0-100)
# ── Database ──────────────────────────────────────────────────────────────────
# SQLAlchemy URL. The Docker compose file already sets this to the bind-mounted
# /data path so you don't normally need to change it. For a local pip run:
# DATABASE_URL=sqlite+aiosqlite:///./stackresume.db
# DATABASE_URL=sqlite+aiosqlite:////data/resume_builder.db
# ── Optional admin auth (single user, session-based) ─────────────────────────
# Off by default. Flip AUTH_ENABLED=true AND set AUTH_PASSWORD to require login.
# Uses SHA-512 client-side hashing + 24h server-issued session tokens.
# Login will return 503 if AUTH_ENABLED=true but AUTH_PASSWORD is empty.
AUTH_ENABLED=false
AUTH_USERNAME=admin
AUTH_PASSWORD=
# ── CORS ──────────────────────────────────────────────────────────────────────
# Comma-separated list of allowed origins, or * to allow all (dev default).
# Production example: CORS_ORIGINS=https://myapp.example.com
# When AUTH_ENABLED=true and CORS_ORIGINS=* the server collapses to same-origin only.
CORS_ORIGINS=*
# ── App ───────────────────────────────────────────────────────────────────────
DEBUG=false # Enables FastAPI debug + SQL echo when true