A community based topic aggregation platform built on atproto
1# Coves Local Development Environment Configuration 2# This file contains all environment variables for the local atProto development stack 3# DO NOT commit secrets to version control in production! 4 5# ============================================================================= 6# PostgreSQL Configuration (Development Database) 7# ============================================================================= 8# Development database for Coves AppView (runs on port 5433) 9POSTGRES_HOST=localhost 10POSTGRES_PORT=5433 11POSTGRES_DB=coves_dev 12POSTGRES_USER=dev_user 13POSTGRES_PASSWORD=dev_password 14 15# ============================================================================= 16# PDS (Personal Data Server) Configuration 17# ============================================================================= 18# PDS runs on port 3001 (to avoid conflict with production PDS on :3000) 19PDS_HOSTNAME=localhost 20PDS_PORT=3001 21 22# DID PLC Directory (use Bluesky's for development) 23PDS_DID_PLC_URL=https://plc.directory 24 25# JWT Secret (for signing tokens - change in production!) 26PDS_JWT_SECRET=local-dev-jwt-secret-change-in-production 27 28# Admin password for PDS management 29PDS_ADMIN_PASSWORD=admin 30 31# Handle domains (users will get handles like alice.local.coves.dev) 32PDS_SERVICE_HANDLE_DOMAINS=.local.coves.dev 33 34# PLC Rotation Key (k256 private key in hex format - for local dev only) 35# This is a randomly generated key for testing - DO NOT use in production 36PDS_PLC_ROTATION_KEY=af514fb84c4356241deed29feb392d1ee359f99c05a7b8f7bff2e5f2614f64b2 37 38# ============================================================================= 39# AppView Configuration (Your Go Application) 40# ============================================================================= 41# AppView runs on port 8081 (to avoid conflicts) 42APPVIEW_PORT=8081 43 44# PDS Firehose URL (WebSocket connection - direct to PDS, no relay) 45FIREHOSE_URL=ws://localhost:3001/xrpc/com.atproto.sync.subscribeRepos 46 47# PDS URL (for XRPC calls) 48PDS_URL=http://localhost:3001 49 50# ============================================================================= 51# Test Database Configuration 52# ============================================================================= 53# Test database runs on port 5434 (separate from dev on 5433) 54POSTGRES_TEST_DB=coves_test 55POSTGRES_TEST_USER=test_user 56POSTGRES_TEST_PASSWORD=test_password 57POSTGRES_TEST_PORT=5434 58 59# ============================================================================= 60# Development Settings 61# ============================================================================= 62# Environment 63ENV=development 64NODE_ENV=development 65 66# Logging 67LOG_LEVEL=debug 68LOG_ENABLED=true 69 70# ============================================================================= 71# Notes 72# ============================================================================= 73# All local development configuration in one file! 74# - Dev PostgreSQL: port 5433 75# - Test PostgreSQL: port 5434 (via --profile test) 76# - PDS: port 3001 (avoids conflict with production on :3000) 77# - AppView: port 8081 78# - PDS is self-contained (SQLite + CAR files) 79# - PostgreSQL is only for Coves AppView indexing 80# - AppView subscribes directly to PDS firehose (no relay needed) 81# - PDS firehose: ws://localhost:3001/xrpc/com.atproto.sync.subscribeRepos