namespace MiGu.Server.Ota;
public sealed class OtaOptions
{
/// 相对 ContentRoot 或绝对路径;默认 data/ota
public string DataRoot { get; set; } = "data/ota";
public int WatchDogPort { get; set; } = 9776;
public int RequestTimeoutMs { get; set; } = 60_000;
public int UploadTimeoutMs { get; set; } = 600_000;
///
/// WatchDog 回传监听端口(写死连 :8000)。MiGu 会额外监听该端口并挂 /upload-mdcs/*。
///
public int ReceivePort { get; set; } = 8000;
///
/// 可选:本机对车辆可见的管理面基址(如 http://192.168.1.10:8080)。
/// 注意:现网 WatchDog 忽略 getmdcsexe 的 server 参数,仍回传到 config.serverIP:ReceivePort。
///
public string? PublicBaseUrl { get; set; }
}