# Database
DATABASE_URL=postgres://postgres:postgres@localhost:5432/wisp
# Server
PORT=3001
# Base domain (e.g., "localhost" for sites.localhost, "wisp.place" for sites.wisp.place)
BASE_HOST=localhost
# Redis (cache invalidation + revalidation queue)
REDIS_URL=redis://localhost:6379
WISP_REVALIDATE_DEDUPE_TTL_SECONDS=60
WISP_REVALIDATE_STORAGE_MISS_DEDUPE_TTL_SECONDS=600
# Privacy-minimal, aggregate site analytics (disabled by default)
ANALYTICS_ENABLED=false
ANALYTICS_FLUSH_INTERVAL_MS=60000
ANALYTICS_MAX_PENDING_BUCKETS=10000
# S3 Storage (leave empty for local disk fallback)
S3_BUCKET=
S3_REGION=auto
S3_ENDPOINT=
S3_PREFIX=sites/
S3_FORCE_PATH_STYLE=true
# AWS Credentials (required if using S3)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
# For local disk fallback (when S3_BUCKET is empty)
CACHE_DIR=./cache/sites