72 lines
1.5 KiB
YAML
72 lines
1.5 KiB
YAML
|
|
# Test Configuration for Remote Services
|
||
|
|
# This config allows local dashboard to discover and interact with remote mock services
|
||
|
|
|
||
|
|
# Application Configuration
|
||
|
|
app:
|
||
|
|
name: "Calejo Control Adapter - Test Environment"
|
||
|
|
version: "2.0"
|
||
|
|
debug: true
|
||
|
|
log_level: "INFO"
|
||
|
|
|
||
|
|
# Server Configuration
|
||
|
|
server:
|
||
|
|
host: "0.0.0.0"
|
||
|
|
port: 8081
|
||
|
|
workers: 1
|
||
|
|
|
||
|
|
# Database Configuration (local)
|
||
|
|
database:
|
||
|
|
host: "localhost"
|
||
|
|
port: 5432
|
||
|
|
name: "calejo_test"
|
||
|
|
username: "calejo_user"
|
||
|
|
password: "test_password"
|
||
|
|
|
||
|
|
# Discovery Configuration
|
||
|
|
discovery:
|
||
|
|
enabled: true
|
||
|
|
scan_interval: 300 # 5 minutes
|
||
|
|
protocols:
|
||
|
|
- name: "rest_api"
|
||
|
|
enabled: true
|
||
|
|
ports: [8080, 8081, 8082, 8083, 8084, 8085]
|
||
|
|
timeout: 5
|
||
|
|
- name: "opcua"
|
||
|
|
enabled: false
|
||
|
|
ports: [4840]
|
||
|
|
timeout: 10
|
||
|
|
- name: "modbus"
|
||
|
|
enabled: false
|
||
|
|
ports: [502]
|
||
|
|
timeout: 5
|
||
|
|
|
||
|
|
# Remote Services Configuration (pre-configured for discovery)
|
||
|
|
remote_services:
|
||
|
|
mock_scada:
|
||
|
|
name: "Mock SCADA Service"
|
||
|
|
address: "http://95.111.206.155:8083"
|
||
|
|
protocol: "rest_api"
|
||
|
|
enabled: true
|
||
|
|
mock_optimizer:
|
||
|
|
name: "Mock Optimizer Service"
|
||
|
|
address: "http://95.111.206.155:8084"
|
||
|
|
protocol: "rest_api"
|
||
|
|
enabled: true
|
||
|
|
existing_api:
|
||
|
|
name: "Existing Calejo API"
|
||
|
|
address: "http://95.111.206.155:8080"
|
||
|
|
protocol: "rest_api"
|
||
|
|
enabled: true
|
||
|
|
|
||
|
|
# Security Configuration
|
||
|
|
security:
|
||
|
|
enable_auth: false
|
||
|
|
cors_origins:
|
||
|
|
- "*"
|
||
|
|
|
||
|
|
# Monitoring Configuration
|
||
|
|
monitoring:
|
||
|
|
prometheus_enabled: false
|
||
|
|
prometheus_port: 9091
|
||
|
|
grafana_enabled: false
|
||
|
|
grafana_port: 3000
|