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 (Shared Database) 7# ============================================================================= 8# Uses existing database from internal/db/local_dev_db_compose/ 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# Development Settings 52# ============================================================================= 53# Environment 54ENV=development 55NODE_ENV=development 56 57# Logging 58LOG_LEVEL=debug 59LOG_ENABLED=true 60 61# ============================================================================= 62# Notes 63# ============================================================================= 64# - PDS port 3001 avoids conflict with your production PDS on :3000 65# - AppView port 8081 avoids conflicts 66# - PostgreSQL port 5433 matches your existing local dev database 67# - All services connect to the shared PostgreSQL database 68# - AppView subscribes directly to PDS firehose (no relay needed for local dev) 69# - PDS firehose: ws://localhost:3001/xrpc/com.atproto.sync.subscribeRepos