etsy-finance-tracker/server/.env.example
dlawler489 4759db4c5b Store Etsy API credentials in the database instead of env vars
- New EtsySettings model holds the per-user API keystring and callback URL,
  managed via GET/PUT /api/etsy/config; env vars remain as optional fallback
- Settings UI gains an API Configuration form (masked saved key, callback URL
  prefilled with this origin's /api/etsy/callback); Connect is enabled once
  configuration is saved
- OAuth and sync resolve the key per user; post-callback redirect derives
  from the stored callback URL origin instead of CLIENT_URL

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 08:02:05 +10:00

18 lines
No EOL
575 B
Text

# Environment Variables
NODE_ENV=development
PORT=3001
CLIENT_URL=http://localhost:3000
# Database
MONGODB_URI=mongodb://localhost:27017/etsy-tracker
# JWT Secret (change in production)
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
# Session Secret (change in production)
SESSION_SECRET=your-super-secret-session-key-change-this-in-production
# Etsy API (optional fallback — normally configured per user in the
# Settings UI and stored in the database)
# ETSY_API_KEY=your-etsy-keystring
# ETSY_REDIRECT_URI=https://etsy.plexultra.com/api/etsy/callback