* feat(dx): implement worktree DB orchestration and graceful dev teardown - feat(dx): [Minor] Implement deterministic port binding per git worktree to mitigate Docker port conflicts during parallel development. - feat(dx): [Minor] Implement graceful development environment teardown using a custom node orchestrator (scripts/dev.mjs) replacing CLI concurrently, enabling cross-platform tree-kill and optional DB stopping on exit. - build(deps): Add tree-kill for process termination. - fix(dx): Prevent rm -rf from orphaning Docker volumes by adding a db:prune script and tying volume cleanup to git-wt remove. * fix: update openid-client api usage to v6 and resolve db import - Migrated processAuthCodeResponse to authorizationCodeGrant - Updated db import to export prisma client correctly - Updated unit tests with v6 openid-client mocks - Bumped version to 2.13.1 * fix(ci): setup .env from example in local dev CI test
67 lines
2.6 KiB
Bash
67 lines
2.6 KiB
Bash
# ============================================================
|
|
# .env — committed to git (non-secret defaults)
|
|
# ============================================================
|
|
# This file is tracked by git. Only put non-secret values here.
|
|
# Prisma reads DATABASE_URL from this file.
|
|
|
|
# Database (PostgreSQL)
|
|
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/worldwideview
|
|
|
|
# ============================================================
|
|
# .env.local — NOT committed (secrets & API keys)
|
|
# ============================================================
|
|
# Copy everything below into a new file called .env.local
|
|
# .env.local is gitignored and overrides .env values.
|
|
|
|
# Auth Secret (REQUIRED — generate with: openssl rand -hex 32)
|
|
# Must remain stable across restarts to preserve sessions and tokens.
|
|
# For Docker: also set this in the host environment or a .env file
|
|
# at the project root so docker-compose can inject it.
|
|
AUTH_SECRET=
|
|
|
|
# Cesium Ion Access Token (optional — get one free at https://ion.cesium.com/)
|
|
NEXT_PUBLIC_CESIUM_ION_TOKEN=
|
|
|
|
# Bing Maps API Key (Optional, for high-res imagery)
|
|
# Get your key at https://www.bingmapsportal.com/
|
|
NEXT_PUBLIC_BING_MAPS_KEY=
|
|
|
|
# Supabase Configuration (Optional — cloud-only features)
|
|
# Found in your Supabase Project Settings > API
|
|
NEXT_PUBLIC_SUPABASE_URL=
|
|
NEXT_PUBLIC_SUPABASE_ANON_KEY=
|
|
SUPABASE_SERVICE_ROLE_KEY=
|
|
SUPABASE_DATABASE_URL=
|
|
|
|
# OpenSky Network — multi-account credential rotation
|
|
# Comma-separated clientId:clientSecret pairs.
|
|
# Example: OPENSKY_CREDENTIALS=acct1-id:acct1-secret,acct2-id:acct2-secret
|
|
OPENSKY_CREDENTIALS=
|
|
|
|
# ACLED API — Civil Unrest & Conflict data (free for non-commercial use)
|
|
# Register at https://developer.acleddata.com/ to obtain credentials.
|
|
# Data is updated weekly (Mondays) with global protest, riot, and violence events.
|
|
ACLED_EMAIL=
|
|
ACLED_PASSWORD=
|
|
|
|
# Marketplace Bridge Token — shared secret for marketplace → WWV install requests
|
|
# Generate any random string, then set the same value in the marketplace instance config.
|
|
WWV_BRIDGE_TOKEN=
|
|
|
|
# Default plugins enabled on boot for demo edition
|
|
# Comma-separated list of plugin IDs
|
|
NEXT_PUBLIC_DEMO_DEFAULT_PLUGINS=
|
|
|
|
# Edition: "local" | "cloud" | "demo"
|
|
NEXT_PUBLIC_WWV_EDITION=local
|
|
|
|
# Optional Database Teardown
|
|
# If set to true, terminating 'pnpm run dev' (Ctrl+C) will automatically
|
|
# stop the local database container (freeing up port 5432).
|
|
WWV_TEARDOWN_DB_ON_EXIT=false
|
|
|
|
# Demo Admin Secret (demo edition only)
|
|
# Allows operator plugin management on the demo instance via x-wwv-admin-secret header.
|
|
# Generate any random string. Only set this on the demo deployment.
|
|
# WWV_DEMO_ADMIN_SECRET=
|