CalejoControl/deploy/config/example-production.yml

63 lines
1.3 KiB
YAML

# Production Environment Configuration
# Copy this file to production.yml and update with actual values
# SSH Connection Details
ssh:
host: "production-server.company.com"
port: 22
username: "calejo"
key_file: "deploy/keys/production_key"
# Deployment Settings
deployment:
target_dir: "/opt/calejo-control-adapter"
backup_dir: "/var/backup/calejo"
log_dir: "/var/log/calejo"
config_dir: "/etc/calejo"
# Application Configuration
app:
port: 8080
host: "0.0.0.0"
debug: false
# Database Configuration
database:
host: "localhost"
port: 5432
name: "calejo_production"
username: "calejo_user"
password: "${DB_PASSWORD}" # Will be replaced from environment
# SCADA Integration
scada:
opcua_enabled: true
opcua_endpoint: "opc.tcp://scada-server:4840"
modbus_enabled: true
modbus_host: "scada-server"
modbus_port: 502
# Optimization Integration
optimization:
enabled: true
endpoint: "http://optimization-server:8081"
# Security Settings
security:
enable_auth: true
enable_ssl: true
ssl_cert: "/etc/ssl/certs/calejo.crt"
ssl_key: "/etc/ssl/private/calejo.key"
# Monitoring
monitoring:
prometheus_enabled: true
prometheus_port: 9090
grafana_enabled: true
grafana_port: 3000
# Backup Settings
backup:
enabled: true
schedule: "0 2 * * *" # Daily at 2 AM
retention_days: 30