Files
Frobot-OTA-Agent/config.yaml
2026-04-23 14:40:29 +08:00

51 lines
1.3 KiB
YAML

server:
host: 0.0.0.0
port: 19090
vehicle:
vehicle_id: agent-001
vin: agent-001
current_release: vehicle-release-0.0.1
cloud:
base_url: http://192.168.10.193:8080
heartbeat_path: /api/agent/heartbeat
update_check_path: /api/agent/update-check
report_path: /api/agent/report
timeout_seconds: 10
token: f47ac10b-58cc-4372-a567-0e02b2c3d479
token_header: X-OTA-TOKEN
registry:
enabled: true
server: 125.122.25.219:5000
username: admin
password: "123456"
timeout_seconds: 30
compose:
working_dir: /home/liejiu/ota-agent/runtime
file: docker-compose.yml
env_file: ota-images.env
backup_env_file: ota-images.env.bak
pull_command: docker compose pull
up_command: docker compose up -d
health_check_seconds: 60
healthcheck_interval_seconds: 3
healthcheck_url: http://127.0.0.1:8011/actuator/health
polling:
update_interval_seconds: 30
heartbeat_interval_seconds: 30
storage:
state_file: /home/liejiu/ota-agent/runtime/state.json
manifest_dir: /home/liejiu/ota-agent/runtime/manifests
log_dir: /home/liejiu/ota-agent/runtime/logs
mysql_backup:
enabled: true
backup_dir: /home/liejiu/ota-agent/runtime/mysql-backups
dump_command: docker exec mysql mysqldump -uroot -pnlrobot nl_frobot > {backup_file}
timeout_seconds: 120