# =========================================== # LNPaywall Backend Environment Configuration # =========================================== # Server Configuration NODE_ENV=development PORT=3001 API_URL=http://localhost:3001 FRONTEND_URL=http://localhost:5173 # Database Configuration (SQLite - easy setup) DATABASE_URL="file:./dev.db" # Alternative: PostgreSQL (for production) # DATABASE_URL="postgresql://user:password@localhost:5432/lnpaywall?schema=public" # Redis Configuration REDIS_URL="redis://localhost:6379" # JWT Configuration JWT_SECRET="your-super-secret-jwt-key-change-in-production" JWT_REFRESH_SECRET="your-super-secret-refresh-key-change-in-production" JWT_ACCESS_EXPIRES_IN="15m" JWT_REFRESH_EXPIRES_IN="7d" # OAuth Configuration (Optional) GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET="" GITHUB_CLIENT_ID="" GITHUB_CLIENT_SECRET="" # Payment Provider - LNbits Configuration LNBITS_URL="https://legend.lnbits.com" LNBITS_ADMIN_KEY="your-lnbits-admin-key" LNBITS_INVOICE_KEY="your-lnbits-invoice-key" # Payment Provider - BTCPay Server Configuration (Alternative) BTCPAY_URL="" BTCPAY_STORE_ID="" BTCPAY_API_KEY="" # Platform Fee Configuration PLATFORM_FEE_PERCENT=10 PLATFORM_FEE_PERCENT_PRO=0 PRO_PRICE_SATS=50000 PLATFORM_LIGHTNING_ADDRESS="" # Security COOKIE_SECRET="your-cookie-secret-change-in-production" ALLOWED_ORIGINS="http://localhost:5173,http://localhost:3000" # Rate Limiting RATE_LIMIT_WINDOW_MS=900000 RATE_LIMIT_MAX_REQUESTS=100