1c7fa781ad
- Fix database configuration to use PostgreSQL in production - Add knexfile.js to support both SQLite (dev) and PostgreSQL (prod) - Create admin user creation script (scripts/create-admin.js) - Clean up docker-compose files: - Remove redundant docker-compose.yml and docker-compose.local.yml - Create docker-compose.dev.yml for development - Update docker-compose.prod.yml with proper DB configuration - Clean up environment files: - Update .env.example for development - Update .env.production.example with proper settings - Remove redundant .env.local - Update backend .env.example with database configuration options - Create comprehensive DEPLOYMENT.md with admin setup instructions - Fix production database name consistency (picpeak instead of photoapp)
32 lines
939 B
Bash
32 lines
939 B
Bash
# Production Environment Configuration Template
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# Application URLs
|
|
ADMIN_URL=https://yourdomain.com
|
|
FRONTEND_URL=https://yourdomain.com
|
|
|
|
# Security - CRITICAL: Generate a secure random JWT secret
|
|
# You can generate one with: openssl rand -base64 32
|
|
JWT_SECRET=your-secure-random-jwt-secret-here
|
|
|
|
# Database Configuration (PostgreSQL)
|
|
DB_USER=picpeak
|
|
DB_PASSWORD=your-secure-database-password
|
|
DB_NAME=picpeak
|
|
|
|
# Email Configuration
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_SECURE=true
|
|
SMTP_USER=your-email@gmail.com
|
|
SMTP_PASS=your-app-password
|
|
EMAIL_FROM=noreply@yourdomain.com
|
|
|
|
# Umami Analytics (Optional)
|
|
UMAMI_URL=https://analytics.yourdomain.com
|
|
UMAMI_WEBSITE_ID=your-website-id
|
|
UMAMI_HASH_SALT=your-random-hash-salt
|
|
|
|
# First Admin User (for initial setup)
|
|
# Run: docker-compose exec backend node scripts/create-admin.js --email admin@yourdomain.com
|
|
ADMIN_EMAIL=admin@yourdomain.com |