2025-10-30 12:18:57 +01:00
|
|
|
# ========================================
|
|
|
|
|
# ENVIRONMENT VARIABLES TEMPLATE
|
|
|
|
|
# ========================================
|
|
|
|
|
# Copy this file to .env and fill in your actual values
|
|
|
|
|
# NEVER commit .env with real secrets to git!
|
|
|
|
|
|
|
|
|
|
# === Frontend Variables ===
|
|
|
|
|
VITE_API_BASE_URL=https://puffinoffset.com/api
|
|
|
|
|
VITE_WREN_API_TOKEN=your_wren_api_token_here
|
|
|
|
|
VITE_FORMSPREE_CONTACT_ID=your_formspree_contact_id
|
|
|
|
|
VITE_FORMSPREE_OFFSET_ID=your_formspree_offset_id
|
|
|
|
|
VITE_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key_here
|
|
|
|
|
|
|
|
|
|
# === Backend Variables ===
|
|
|
|
|
NODE_ENV=production
|
|
|
|
|
PORT=3001
|
|
|
|
|
FRONTEND_URL=https://puffinoffset.com
|
|
|
|
|
|
|
|
|
|
# === Stripe Configuration ===
|
|
|
|
|
# Use sk_test_* keys for testing (no real charges)
|
|
|
|
|
# Use sk_live_* keys for production (real charges)
|
|
|
|
|
STRIPE_SECRET_KEY=your_stripe_secret_key_here
|
|
|
|
|
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret_here
|
|
|
|
|
|
|
|
|
|
# === Wren API Configuration ===
|
|
|
|
|
WREN_API_TOKEN=your_wren_api_token_here
|
|
|
|
|
# Set to true for testing (no real offsets purchased)
|
|
|
|
|
# Set to false for production (real offsets purchased)
|
|
|
|
|
WREN_DRY_RUN=true
|
|
|
|
|
|
|
|
|
|
# === Database Configuration ===
|
|
|
|
|
DATABASE_PATH=/app/data/orders.db
|
|
|
|
|
|
|
|
|
|
# ========================================
|
|
|
|
|
# NOTES
|
|
|
|
|
# ========================================
|
|
|
|
|
#
|
|
|
|
|
# STRIPE TEST MODE:
|
|
|
|
|
# - Use sk_test_* and pk_test_* keys
|
|
|
|
|
# - Test card: 4242 4242 4242 4242 (any future date, any CVC)
|
|
|
|
|
# - No real money charged
|
|
|
|
|
#
|
|
|
|
|
# WREN DRY RUN:
|
|
|
|
|
# - WREN_DRY_RUN=true means no real carbon offsets purchased
|
|
|
|
|
# - Switch to false when ready for production
|
|
|
|
|
#
|
|
|
|
|
# PORT MAPPING:
|
|
|
|
|
# - PORT=3001 is the internal container port
|
|
|
|
|
# - Host exposes backend on port 3801 (3801:3001)
|
|
|
|
|
# - Frontend exposed on port 3800
|
|
|
|
|
#
|