pulse/.env.example
Edo Limburg 40ccbbad1a Add storage, dedup modules and infrastructure configuration
- Add storage module with SQLite persistence via better-sqlite3
- Add deduplication module for feed item dedup
- Add infrastructure directory for deployment config
- Add .env.example for environment variables
- Update dependencies: kysely, better-sqlite3, pg
2026-05-05 21:59:50 +02:00

53 lines
1.9 KiB
Plaintext

# Pulse RSS Feed Aggregator - Environment Configuration
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================
# Required: Database type - 'sqlite' or 'postgres'
# Default: sqlite
PULSE_DATABASE_TYPE=sqlite
# -----------------------------------------------------------------------------
# SQLite Configuration (used when PULSE_DATABASE_TYPE=sqlite)
# -----------------------------------------------------------------------------
# Path to SQLite database file
# Default: ./data/pulse.db
PULSE_SQLITE_PATH=./data/pulse.db
# -----------------------------------------------------------------------------
# PostgreSQL Configuration (used when PULSE_DATABASE_TYPE=postgres)
# -----------------------------------------------------------------------------
# Option 1: Connection string (simplest)
# Format: postgresql://user:password@host:port/database
PULSE_DATABASE_URL=postgresql://pulse:password@localhost:5432/pulse
# Option 2: Individual connection parameters (alternative to connection string)
# PULSE_POSTGRES_HOST=localhost
# PULSE_POSTGRES_PORT=5432
# PULSE_POSTGRES_DATABASE=pulse
# PULSE_POSTGRES_USER=pulse
# PULSE_POSTGRES_PASSWORD=secret
# =============================================================================
# EXAMPLES
# =============================================================================
# Local development with SQLite (default):
# PULSE_DATABASE_TYPE=sqlite
# PULSE_SQLITE_PATH=./data/pulse.db
# Production with PostgreSQL using connection string:
# PULSE_DATABASE_TYPE=postgres
# PULSE_DATABASE_URL=postgresql://pulse:secret@db.example.com:5432/pulse
# Production with PostgreSQL using individual params:
# PULSE_DATABASE_TYPE=postgres
# PULSE_POSTGRES_HOST=db.example.com
# PULSE_POSTGRES_PORT=5432
# PULSE_POSTGRES_DATABASE=pulse
# PULSE_POSTGRES_USER=pulse
# PULSE_POSTGRES_PASSWORD=secret