-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
47 lines (41 loc) · 1.9 KB
/
.env.example
File metadata and controls
47 lines (41 loc) · 1.9 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
# =============================================================================
# Raph Search (jlc-search) environment configuration
# Copy to .env and fill in values: cp .env.example .env
# Or run the setup script: ./setup.sh [your-domain.com]
# =============================================================================
# --- PostgreSQL ---
POSTGRES_PASSWORD=changeme
DATABASE_URL=postgres://jlc:changeme@localhost:5432/jlc
# --- Backend ---
PORT=3001
# Comma-separated list of origins allowed by CORS. Include every public
# hostname the frontend is served from (primary + any legacy aliases).
ALLOWED_ORIGINS=http://localhost:3000
# --- Analytics (PostHog) ---
# Project API key (client-side, safe to expose). Leave blank to fall back to
# the default key baked into the source. Override per-deployment if desired.
POSTHOG_KEY=
POSTHOG_HOST=https://us.i.posthog.com
# Frontend (Vite) reads VITE_-prefixed vars at build time.
VITE_POSTHOG_KEY=
VITE_POSTHOG_HOST=https://us.i.posthog.com
# --- Ingestion ---
JLCPARTS_BASE=https://yaqwsx.github.io/jlcparts
INGEST_CONCURRENCY=4
# --- Deployment (used by deploy.sh and configure-npm.sh) ---
# Canonical domain that the site is served from.
DOMAIN=search.raph.io
# Space-separated list of legacy hostnames that should ALSO serve the site
# (each gets its own NPM proxy host + Let's Encrypt cert). Listing them here
# keeps old share-BOM links working AND lets existing MCP clients (which POST
# to /mcp-api/mcp and do not follow HTTP redirects) continue to function
# against their previously-configured URLs while users migrate.
# Leave empty for fresh deployments.
DOMAIN_ALIASES=
NPM_ADMIN_EMAIL=admin@example.com
NPM_ADMIN_PASS=changeme
LETSENCRYPT_EMAIL=you@example.com
# --- Kibrary integration ---
# Public base URL used to construct absolute photo_url values in the
# /api/kibrary/search response. Defaults to https://search.raph.io.
PUBLIC_BASE_URL=https://search.raph.io