119 lines
3.7 KiB
Plaintext
119 lines
3.7 KiB
Plaintext
# Hive Configuration
|
|
# ======================
|
|
# Copy this file to config.yaml and customize for your environment.
|
|
# Run `npm run setup` to generate .env files from this configuration.
|
|
#
|
|
# For detailed documentation, see: docs/configuration.md
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Application Settings
|
|
# -----------------------------------------------------------------------------
|
|
app:
|
|
# Application name (displayed in UI and logs)
|
|
name: Hive
|
|
|
|
# Environment: development, production, or test
|
|
environment: development
|
|
|
|
# Log level: debug, info, warn, error
|
|
log_level: info
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Server Configuration
|
|
# -----------------------------------------------------------------------------
|
|
server:
|
|
# Frontend settings
|
|
frontend:
|
|
# Port for the frontend application
|
|
port: 3000
|
|
|
|
# Backend (Hive) settings
|
|
backend:
|
|
# Port for the backend API
|
|
port: 4000
|
|
|
|
# Host to bind to (0.0.0.0 for all interfaces)
|
|
host: 0.0.0.0
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# TimescaleDB Configuration (Time-series metrics storage)
|
|
# -----------------------------------------------------------------------------
|
|
timescaledb:
|
|
# Connection URL for TimescaleDB
|
|
# Format: postgresql://user:password@host:port/database
|
|
url: postgresql://postgres:postgres@localhost:5432/aden_tsdb
|
|
|
|
# External port mapping (for docker-compose)
|
|
port: 5432
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# MongoDB Configuration (Policies, pricing, control config)
|
|
# -----------------------------------------------------------------------------
|
|
mongodb:
|
|
# Connection URL for MongoDB
|
|
url: mongodb://localhost:27017
|
|
|
|
# Database name for main data
|
|
database: aden
|
|
|
|
# Database name for ERP data
|
|
erp_database: erp
|
|
|
|
# External port mapping (for docker-compose)
|
|
port: 27017
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Redis Configuration (Caching and Socket.IO)
|
|
# -----------------------------------------------------------------------------
|
|
redis:
|
|
# Connection URL for Redis
|
|
url: redis://localhost:6379
|
|
|
|
# External port mapping (for docker-compose)
|
|
port: 6379
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Authentication & Security
|
|
# -----------------------------------------------------------------------------
|
|
auth:
|
|
# JWT secret key - CHANGE THIS IN PRODUCTION!
|
|
# Generate with: openssl rand -base64 32
|
|
jwt_secret: change-this-to-a-secure-random-string-min-32-chars
|
|
|
|
# JWT token expiration (e.g., 1h, 7d, 30d)
|
|
jwt_expires_in: 7d
|
|
|
|
# Passphrase for additional encryption - CHANGE THIS IN PRODUCTION!
|
|
passphrase: change-this-to-a-secure-passphrase
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# NPM Configuration
|
|
# -----------------------------------------------------------------------------
|
|
npm:
|
|
# NPM token for private package access (if needed)
|
|
token: ""
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# CORS Configuration
|
|
# -----------------------------------------------------------------------------
|
|
cors:
|
|
# Allowed origin for CORS requests
|
|
# In production, set this to your frontend URL
|
|
origin: http://localhost:3000
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Feature Flags
|
|
# -----------------------------------------------------------------------------
|
|
features:
|
|
# Enable user registration
|
|
registration: true
|
|
|
|
# Enable API rate limiting
|
|
rate_limiting: false
|
|
|
|
# Enable request logging
|
|
request_logging: true
|
|
|
|
# Enable MCP (Model Context Protocol) server
|
|
mcp_server: true
|