{% extends "base.html" %} {% block title %}Settings - Lab Controller{% endblock %} {% block content %}

Database

Path{{ config.database_path if config else 'Not configured' }}

Serial

Device Directory{{ config.serial.dev_dir if config else '/dev/lab' }}
Default Baud{{ config.serial.default_baud if config else '115200' }}

ser2net

Enabled{{ 'Yes' if (config and config.ser2net.enabled) else 'No' }}
Config File{{ config.ser2net.config_file if config else '/etc/ser2net.yaml' }}
Base TCP Port{{ config.serial.base_tcp_port if config else '4000' }}

Proxy

Port Base{{ config.proxy.port_base if config else '5500' }}
Port Range{{ config.proxy.port_range if config else '100' }}
Write Policy{{ config.proxy.write_policy if config else 'first' }}
Max Clients{{ config.proxy.max_clients if config else '10' }}
Log Directory{{ config.proxy.log_dir if config else '~/.local/share/labctl/logs' }}

Health Monitoring

{% set retention = config.health.status_retention_days if config else 30 %}
Check Interval{{ config.health.check_interval if config else '10' }}s
Ping Timeout{{ config.health.ping_timeout if config else '2.0' }}s
Serial Timeout{{ config.health.serial_timeout if config else '2.0' }}s
Status Retention{{ 'keep all' if retention == 0 else retention ~ ' days' }}
Alert on Offline{{ 'Yes' if (config and config.health.alert_on_offline) else 'No' }}
Alert on Power Change{{ 'Yes' if (config and config.health.alert_on_power_change) else 'No' }}
Alert Log{{ config.health.alert_log_path if config else '~/.local/share/labctl/alerts.log' }}

Configuration File

Settings are loaded from ~/.config/labctl/config.yaml

Environment variables can override settings:

{% endblock %}