From bfefb19100ed9d18342dae927167e4bd64fa3898 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 6 Oct 2025 21:36:52 +0000 Subject: [PATCH] docs: Update production deployment with actual infrastructure details MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - PostgreSQL on dedicated server: 10.0.0.207 (postgres:a3ppq@10.0.0.207:5432/parentflow) - Application server: 10.0.0.240 with SSH access (root/a3pq5t50yA@#) - Nginx and SSL already configured on dedicated proxy server - Updated ecosystem.config.js with production database credentials - Updated .env.production.example with correct server details - Redis, MongoDB, MinIO remain as Docker containers on 10.0.0.240 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .env.production.example | 20 ++++++++++---------- docs/REMAINING_FEATURES.md | 7 ++++--- ecosystem.config.js | 32 ++++++++++++++++++++++---------- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/.env.production.example b/.env.production.example index c56be7e..6216c7a 100644 --- a/.env.production.example +++ b/.env.production.example @@ -1,16 +1,16 @@ # ParentFlow Production Environment Variables # Copy this file to .env.production and update with your secure values -# Database Configuration (PostgreSQL) -POSTGRES_PASSWORD=parentflow_secure_password_2024 +# Database Configuration (Dedicated PostgreSQL Server at 10.0.0.207) +DATABASE_URL=postgresql://postgres:a3ppq@10.0.0.207:5432/parentflow -# Redis Configuration +# Redis Configuration (Docker on 10.0.0.240) REDIS_PASSWORD=parentflow_redis_password_2024 -# MongoDB Configuration +# MongoDB Configuration (Docker on 10.0.0.240) MONGO_PASSWORD=parentflow_mongo_password_2024 -# MinIO (Object Storage) Configuration +# MinIO (Object Storage) Configuration (Docker on 10.0.0.240) MINIO_ROOT_USER=parentflow_minio_admin MINIO_ROOT_PASSWORD=parentflow_minio_password_2024 @@ -19,12 +19,12 @@ NODE_ENV=production API_PORT=3020 PORT=3020 -# Database Connection -DATABASE_HOST=parentflow-postgres-prod +# Database Connection (Dedicated PostgreSQL Server) +DATABASE_HOST=10.0.0.207 DATABASE_PORT=5432 -DATABASE_NAME=parentflow_production -DATABASE_USER=parentflow_user -DATABASE_PASSWORD=parentflow_secure_password_2024 +DATABASE_NAME=parentflow +DATABASE_USER=postgres +DATABASE_PASSWORD=a3ppq DATABASE_SSL=false # Redis Connection diff --git a/docs/REMAINING_FEATURES.md b/docs/REMAINING_FEATURES.md index 0a8a0cc..5bd5185 100644 --- a/docs/REMAINING_FEATURES.md +++ b/docs/REMAINING_FEATURES.md @@ -562,10 +562,11 @@ The following critical features have been successfully implemented: **Remaining Tasks** (Deployment to 10.0.0.240): - ⏳ Create Gitea Actions workflow for automated deployment -- ⏳ Configure SSH access to 10.0.0.240 +- ✅ SSH access configured: root@10.0.0.240 (password: a3pq5t50yA@#) - ⏳ Deploy to production server 10.0.0.240 -- ⏳ Set up Nginx on production server -- ⏳ Configure SSL certificates on production server +- ✅ Nginx reverse proxy already configured (dedicated proxy server) +- ✅ SSL certificates already configured (dedicated proxy server) +- ✅ Dedicated PostgreSQL server: postgresql://postgres:a3ppq@10.0.0.207:5432/parentflow --- diff --git a/ecosystem.config.js b/ecosystem.config.js index 0b58af3..fcdaddb 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -13,20 +13,25 @@ module.exports = { NODE_ENV: 'production', API_PORT: 3020, PORT: 3020, - DATABASE_HOST: 'localhost', - DATABASE_PORT: 5556, - DATABASE_NAME: 'parentflow_production', - DATABASE_USER: 'parentflow_user', - DATABASE_PASSWORD: 'parentflow_secure_password_2024', + // Dedicated PostgreSQL Server + DATABASE_HOST: '10.0.0.207', + DATABASE_PORT: 5432, + DATABASE_NAME: 'parentflow', + DATABASE_USER: 'postgres', + DATABASE_PASSWORD: 'a3ppq', DATABASE_SSL: 'false', + // Redis Docker on 10.0.0.240 REDIS_HOST: 'localhost', - REDIS_PORT: 6667, - MONGODB_URI: 'mongodb://localhost:27778/parentflow_ai', + REDIS_PORT: 6379, + REDIS_PASSWORD: 'parentflow_redis_password_2024', + // MongoDB Docker on 10.0.0.240 + MONGODB_URI: 'mongodb://parentflow_admin:parentflow_mongo_password_2024@localhost:27017/parentflow_ai_chat?authSource=admin', + // MinIO Docker on 10.0.0.240 MINIO_ENDPOINT: 'localhost', - MINIO_PORT: 9004, + MINIO_PORT: 9000, MINIO_USE_SSL: false, - MINIO_ACCESS_KEY: 'parentflow_minio', - MINIO_SECRET_KEY: 'parentflow_minio_secret_2024', + MINIO_ACCESS_KEY: 'parentflow_minio_admin', + MINIO_SECRET_KEY: 'parentflow_minio_password_2024', JWT_SECRET: '0OEe+ml/g8/w1LVUwOuot5EeqADcZXnu9eATnTEU91Ji4KL8A8rhN42e1TT0s4ksir/5OJkk5/mwW4VzMcHpaA==', JWT_REFRESH_SECRET: 'txk+0Olbuh0EPJd3Qq+zGfr+2ip6NtEHiq6iUDD/omBjt3ABO4ou7U/m9CgI4A8UlEU6cZmFkicdOB/QU+Og2g==', CORS_ORIGIN: 'https://web.parentflowapp.com,https://api.parentflowapp.com,http://localhost:3030,http://localhost:3005', @@ -37,6 +42,13 @@ module.exports = { PORT: 3020, API_URL: 'https://api.parentflowapp.com', CORS_ORIGIN: 'https://web.parentflowapp.com,https://api.parentflowapp.com,http://localhost:3030,http://localhost:3005', + // Dedicated PostgreSQL Server + DATABASE_HOST: '10.0.0.207', + DATABASE_PORT: 5432, + DATABASE_NAME: 'parentflow', + DATABASE_USER: 'postgres', + DATABASE_PASSWORD: 'a3ppq', + DATABASE_SSL: 'false', }, error_file: './logs/backend-error.log', out_file: './logs/backend-out.log',