-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
71 lines (61 loc) · 2.96 KB
/
Copy path.env.example
File metadata and controls
71 lines (61 loc) · 2.96 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
62
63
64
65
66
67
68
69
70
71
# WorkspaceOS — environment template
#
# Copy this file to .env and fill in your keys, then `docker compose up
# --build -d`. Frontend at http://localhost:4000, backend at
# http://localhost:9000.
#
# Minimum required for a usable bench: GEMINI_API_KEY. Everything else
# has a sensible default or is optional. The wizard's extension matcher
# works fully offline — you only need a Gemini key for the long-tail
# fallback path (unusual domains with no extension match).
#
# Optional integrations (Twitter / LinkedIn / Anthropic / extended GitHub
# sync) are supported by the backend services but not surfaced in the
# default bench UI. Add the env var and wire UI if you want them.
# --- Database (internal only; defaults work as-is) ---
POSTGRES_DB=pr_secretary
POSTGRES_USER=pr_secretary
POSTGRES_PASSWORD=pr_secretary
DATABASE_URL=postgresql+asyncpg://pr_secretary:pr_secretary@db:5432/pr_secretary
# --- App security ---
# Used as the X-API-Key header. Frontend uses it via NEXT_PUBLIC_API_KEY
# below, so the value ends up in the browser bundle — keep it demo-scoped.
API_SECRET_KEY=dev-secret-key
# --- AI providers ---
# Local model (Ollama) handles embeddings + classification when available.
# If you don't run Ollama, set LOCAL_AI_PROVIDER=gemini to use Gemini for
# embeddings too (slightly costlier; works fine).
LOCAL_AI_PROVIDER=ollama
CLOUD_AI_PROVIDER=gemini
# --- Onboarding wizard ---
# When set to true|1|yes, /onboarding's Gemini fallback path is forced
# off — useful for testing the deterministic stub. Default unset.
# FORCE_WIZARD_STUB=false
# When set to true|1|yes, seed.py populates a demo user + 2 demo projects
# on first boot. Default off — fresh deploys boot empty for real users.
# SEED_DEMO_DATA=false
# Ollama — optional. Defaults assume Ollama running on the host at port 11434.
OLLAMA_BASE_URL=http://host.docker.internal:11434
OLLAMA_CHAT_MODEL=qwen3:8b
OLLAMA_EMBED_MODEL=nomic-embed-text
# Gemini — REQUIRED for chat / drafts / papers / extraction / embeddings-fallback.
GEMINI_API_KEY=<your-gemini-key>
GEMINI_CHAT_MODEL=gemini-2.5-flash
GEMINI_EMBED_MODEL=gemini-embedding-001
# OpenAI — optional. Used only by the paper roundtable reviewers.
# Papers still generate without it; you just won't get the 6-reviewer critique.
OPENAI_API_KEY=<your-openai-key>
OPENAI_CHAT_MODEL=gpt-4o
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
# --- In-app feedback ---
# The bench shows a floating "Feedback" button. Clicking it files a
# GitHub issue with the user's text + auto-captured page context.
# Requires GITHUB_TOKEN with `issues:write` on the target repo.
# Override FEEDBACK_REPO if you've forked WorkspaceOS — issues go to
# the upstream Chesterguan/WorkspaceOS by default.
# GITHUB_TOKEN=ghp_yourpersonalaccesstoken
# FEEDBACK_REPO=Chesterguan/WorkspaceOS
# --- Frontend (build-time) ---
# Where the browser talks to the backend. Matches the docker-compose port mapping.
NEXT_PUBLIC_API_BASE_URL=http://localhost:9000/api/v1
NEXT_PUBLIC_API_KEY=dev-secret-key