Files
solon/.env.example

61 lines
2.7 KiB
Bash

# Copy to .env and fill in. Nothing here is a real secret.
# --- Required ---------------------------------------------------------------
# PostgreSQL. `npm run db:migrate` creates the schema against this.
DATABASE_URL="postgresql://solon:solon@localhost:5432/solon"
# Signs session cookies (@bitbaum/accountkit/auth). At least 32 characters in
# production. Generate with: openssl rand -base64 32. BETTER_AUTH_SECRET wins
# when both are set.
AUTH_SECRET=""
# The app's own public origin. Same-origin checks on one-click acts compare
# against it, so pin it in every deployed environment.
AUTH_URL="http://localhost:3000"
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# --- Continue with OrangeCat (optional) ---------------------------------------
# One way in among several; without the pair the button is not shown.
ORANGECAT_OAUTH_ISSUER="https://orangecat.ch"
ORANGECAT_OAUTH_CLIENT_ID=""
ORANGECAT_OAUTH_CLIENT_SECRET=""
# --- Founder of a seeded organization ---------------------------------------
# An organization founded through /orgs/new seats its founder in the same step.
# Organization #1 was seeded by a migration with no human seat; its founding
# seat may be claimed ONLY by this account id (shown at /account once signed
# in; for someone whose first way in was OrangeCat it is their OrangeCat actor id). Unset, the seat is closed to everyone, /join says so in plain
# words, and /api/health lists the organization under "warnings".
SOLON_FOUNDER_ACTOR_ID=""
# --- Optional ---------------------------------------------------------------
# Watch-only treasury balances are read from a mempool.space-compatible API.
# Defaults to the public instance when unset.
MEMPOOL_API_BASE="https://mempool.space/api"
# Where `pnpm run places:import` keeps each source's raw bytes, under their
# sha256, so every imported number links back to what the source published.
# Defaults to ./data/snapshots. On the box, point it at persistent storage
# outside the release directory.
PLACES_SNAPSHOT_DIR=""
# Outbound notification of a recorded decision (OrangeCat re-verifies the
# signatures itself; this only tells it there is something new to read).
SOLON_WEBHOOK_URL=""
# Also verifies the grant Loki attaches when a project owner founds an
# organization from their project page (src/lib/loki-grant.ts). Must equal
# Loki's SOLON_WEBHOOK_SECRET. Unset, founding still works — it just cannot be
# attributed to a project.
SOLON_WEBHOOK_SECRET=""
# Bearer token the box's cron sends to /api/cron/places. Unset = the route refuses every call.
CRON_SECRET=""
# Optional. OrangeCat base URL for group lookups (src/lib/orangecat-group.ts); defaults to production.
ORANGECAT_URL=""
# Ask Solon uses the shared ai-kit model chain. Set at least one server key.
GROQ_API_KEY=""
OPENROUTER_API_KEY=""