fix(agent99): bound stale transport processes

This commit is contained in:
ogt
2026-07-10 22:57:10 +08:00
parent ff2e082c12
commit 2d798cc7c7
8 changed files with 172 additions and 4 deletions

View File

@@ -169,6 +169,10 @@ try {
$config = Get-Content $ConfigPath -Raw | ConvertFrom-Json
Add-DefaultProperty $config "sshIdentityFile" (Join-Path $AgentRoot "keys\agent99_ed25519")
Add-DefaultProperty $config "sshProcessGuard" ([pscustomobject]@{})
Add-DefaultProperty $config.sshProcessGuard "enabled" $true
Add-DefaultProperty $config.sshProcessGuard "staleMinutes" 15
Add-DefaultProperty $config.sshProcessGuard "hardStaleMinutes" 60
Add-DefaultProperty $config "k3s" ([pscustomobject]@{})
Add-DefaultProperty $config.k3s "jumpHost" "192.168.0.110"
Add-DefaultProperty $config.k3s "preferJumpHost" $true