🚀 Complete Production Setup
✨ Features: - Analytics Dashboard with real-time metrics - Redis caching for performance optimization - Import/Export functionality for projects - Complete admin system with security - Production-ready Docker setup 🔧 Technical: - Removed Ghost CMS dependencies - Added Redis container with caching - Implemented API response caching - Enhanced admin interface with analytics - Optimized for dk0.dev domain 🛡️ Security: - Admin authentication with Basic Auth - Protected analytics endpoints - Secure environment configuration 📊 Analytics: - Performance metrics dashboard - Project statistics visualization - Real-time data with caching - Umami integration for GDPR compliance 🎯 Production Ready: - Multi-container Docker setup - Health checks for all services - Automatic restart policies - Resource limits configured - Ready for Nginx Proxy Manager
This commit is contained in:
24
env.example
24
env.example
@@ -5,27 +5,31 @@
|
||||
NODE_ENV=production
|
||||
NEXT_PUBLIC_BASE_URL=https://dki.one
|
||||
|
||||
# Ghost CMS
|
||||
GHOST_API_URL=https://your-ghost-instance.com
|
||||
GHOST_API_KEY=your-ghost-api-key
|
||||
# Ghost CMS (removed - using built-in project management)
|
||||
# GHOST_API_URL=https://your-ghost-instance.com
|
||||
# GHOST_API_KEY=your-ghost-api-key
|
||||
|
||||
# Email Configuration
|
||||
# Email Configuration (optional - for contact form)
|
||||
MY_EMAIL=your-email@example.com
|
||||
MY_INFO_EMAIL=your-info-email@example.com
|
||||
MY_PASSWORD=your-email-password
|
||||
MY_INFO_PASSWORD=your-info-email-password
|
||||
|
||||
# Database (if using external database)
|
||||
# DATABASE_URL=postgresql://username:password@localhost:5432/portfolio
|
||||
# Database (automatically set by Docker Compose)
|
||||
# DATABASE_URL=postgresql://portfolio_user:portfolio_pass@postgres:5432/portfolio_db?schema=public
|
||||
|
||||
# Redis (automatically set by Docker Compose)
|
||||
# REDIS_URL=redis://:portfolio_redis_pass@redis:6379
|
||||
|
||||
# Analytics
|
||||
# NEXT_PUBLIC_UMAMI_URL=https://analytics.dk0.dev
|
||||
# NEXT_PUBLIC_UMAMI_WEBSITE_ID=your-website-id
|
||||
NEXT_PUBLIC_UMAMI_URL=https://analytics.dk0.dev
|
||||
NEXT_PUBLIC_UMAMI_WEBSITE_ID=b3665829-927a-4ada-b9bb-fcf24171061e
|
||||
|
||||
# Security
|
||||
# JWT_SECRET=your-jwt-secret
|
||||
# ENCRYPTION_KEY=your-encryption-key
|
||||
ADMIN_BASIC_AUTH=admin:your_secure_password_here
|
||||
|
||||
# Monitoring
|
||||
# Monitoring (optional)
|
||||
# SENTRY_DSN=your-sentry-dsn
|
||||
# LOG_LEVEL=info
|
||||
LOG_LEVEL=info
|
||||
|
||||
Reference in New Issue
Block a user