Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
53 lines (46 loc) · 2.27 KB
/
Copy path.env.example
File metadata and controls
53 lines (46 loc) · 2.27 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
# Database
# The default password matches docker-compose.yml's POSTGRES_PASSWORD fallback.
# When you override POSTGRES_PASSWORD, mirror the change here.
DATABASE_URL=postgres://primer:primer_local_dev@localhost:5432/primer
DATABASE_URL_TEST=postgres://primer:primer_local_dev@localhost:5432/primer_test
# Server
PORT=3000
STORAGE_ROOT=./storage
# Storage backend: filesystem (default; uses STORAGE_ROOT) | gcs (production on
# GKE; uses GCS_BUCKET and authenticates via Workload Identity — no key file).
# STORAGE_BACKEND=gcs
# GCS_BUCKET=
LOG_LEVEL=info
# Authentication — REQUIRED.
# AUTH_MODE: mock | okta
# mock = always sign in as MOCK_USER (local dev only; refused when NODE_ENV=production)
# okta = real Polygon Okta OIDC flow (requires OKTA_* vars below)
AUTH_MODE=mock
# Cookie Secure flag. Leave unset for local HTTP dev. In production, derived
# automatically when AUTH_BASE_URL starts with https://.
# COOKIE_SECURE=true
# Required only when AUTH_MODE=okta:
# OKTA_ISSUER=https://<polygon-tenant>.okta.com
# OKTA_CLIENT_ID=
# OKTA_CLIENT_SECRET=
# AUTH_BASE_URL=http://localhost:3000
# SESSION_COOKIE_NAME=primer_sid
# SESSION_TTL_DAYS=14
# Admin allowlist — comma-separated emails, case-insensitive. Admins see the
# "Service account (Claude)" section on /settings/tokens and can mint/revoke
# API tokens that act as the Claude service user. Empty/unset = no admins
# (service-token endpoints return 403 for everyone).
# For local dev with AUTH_MODE=mock, the mock user's email is mock@polygon.technology.
# ADMIN_EMAILS=you@polygon.technology,teammate@polygon.technology
# OAuth 2.1 (required for remote MCP access via /mcp endpoint)
# OAUTH_ISSUER=http://localhost:3000 # Set to the API base URL when enabling OAuth
# The OAuth 2.1 endpoint will serve metadata at /.well-known/oauth-authorization-server
# and /.well-known/oauth-protected-resource
# Email notifications (optional)
# Mailgun API key + verified sender. Falls back to NoopNotifier when unset.
# MAILGUN_DOMAIN defaults to the host of EMAIL_FROM (the part after `@`).
# MAILGUN_API_BASE_URL defaults to https://api.mailgun.net (use https://api.eu.mailgun.net for EU).
# MAILGUN_API_KEY=
# EMAIL_FROM=primer@dashboard.polygon.technology
# MAILGUN_DOMAIN=dashboard.polygon.technology
# MAILGUN_API_BASE_URL=https://api.mailgun.net