# Unison Service Environment Configuration
# This file contains environment variables for the Unison service

# =====================================
# Service Configuration
# =====================================
NODE_ENV=development
PORT=8010
HOST=0.0.0.0
ENVIRONMENT=development

# =====================================
# External Service URLs
# =====================================
TECH_STACK_SELECTOR_URL=http://pipeline_tech_stack_selector:8002
TEMPLATE_MANAGER_URL=http://pipeline_template_manager:8009
TEMPLATE_MANAGER_AI_URL=http://pipeline_template_manager:8013

# Service Health Check URLs
TECH_STACK_SELECTOR_HEALTH_URL=http://pipeline_tech_stack_selector:8002/health
TEMPLATE_MANAGER_HEALTH_URL=http://pipeline_template_manager:8009/health

# =====================================
# Claude AI Configuration
# =====================================
CLAUDE_API_KEY=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

# =====================================
# Database Configuration
# =====================================
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=dev_pipeline
POSTGRES_USER=pipeline_admin
POSTGRES_PASSWORD=secure_pipeline_2024
DATABASE_URL=postgresql://pipeline_admin:secure_pipeline_2024@postgres:5432/dev_pipeline

# Neo4j Configuration
NEO4J_URI=bolt://neo4j:7687
NEO4J_USER=neo4j
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=password

# Redis Configuration
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=redis_secure_2024

# MongoDB Configuration
MONGODB_HOST=mongodb
MONGODB_PORT=27017
MONGO_INITDB_ROOT_USERNAME=pipeline_admin
MONGO_INITDB_ROOT_PASSWORD=mongo_secure_2024
MONGODB_PASSWORD=mongo_secure_2024

# =====================================
# Message Queue Configuration
# =====================================
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
RABBITMQ_DEFAULT_USER=pipeline_admin
RABBITMQ_DEFAULT_PASS=rabbit_secure_2024
RABBITMQ_PASSWORD=rabbit_secure_2024

# =====================================
# Security & Authentication
# =====================================
JWT_SECRET=ultra_secure_jwt_secret_2024
JWT_ACCESS_SECRET=access-secret-key-2024-tech4biz-secure_pipeline_2024
JWT_REFRESH_SECRET=refresh-secret-key-2024-tech4biz-secure_pipeline_2024
API_KEY_HEADER=X-API-Key

# =====================================
# Email Configuration
# =====================================
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=frontendtechbiz@gmail.com
SMTP_PASS=oidhhjeasgzbqptq
SMTP_FROM=frontendtechbiz@gmail.com
GMAIL_USER=frontendtechbiz@gmail.com
GMAIL_APP_PASSWORD=oidhhjeasgzbqptq

# =====================================
# CORS Configuration
# =====================================
CORS_ORIGIN=*
CORS_METHODS=GET,POST,PUT,DELETE,PATCH,OPTIONS
CORS_CREDENTIALS=true

# =====================================
# Service Configuration
# =====================================
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100

# Logging
LOG_LEVEL=info
LOG_FILE=logs/unison.log

# Request Timeouts (in milliseconds)
REQUEST_TIMEOUT=30000
HEALTH_CHECK_TIMEOUT=5000

# =====================================
# External Service Integration
# =====================================
# n8n Configuration
N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=admin_n8n_2024
N8N_ENCRYPTION_KEY=very_secure_encryption_key_2024

# Jenkins Configuration
JENKINS_ADMIN_ID=admin
JENKINS_ADMIN_PASSWORD=jenkins_secure_2024

# Gitea Configuration
GITEA_ADMIN_USER=admin
GITEA_ADMIN_PASSWORD=gitea_secure_2024

# Monitoring
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=grafana_secure_2024

