fix: pi-agent-public.ps1 项目根上两级定位 + 自加载 .env(独立进程不读 env)+ 计划任务自动注册(Web 必需/Tunnel 按 PI_AGENT_TUNNEL_COMMAND)+ ps1 加 BOM 保中文

This commit is contained in:
luckyyzh
2026-08-03 17:10:30 +08:00
parent 92e8184136
commit f531e8e2ef
3 changed files with 62 additions and 3 deletions
+5
View File
@@ -8,6 +8,11 @@ SEARXNG_TOKEN=
# Optional public URL reported by pi-agent-public.ps1 (e.g. your own tunnel domain).
PI_AGENT_PUBLIC_URL=
# Optional SSH reverse-tunnel command for public access, run as a scheduled task
# by pi-agent-public.ps1 (registered only when set). Example for an "aliyun" host
# in ~/.ssh/config forwarding remote 8090 to local 30141:
# PI_AGENT_TUNNEL_COMMAND=C:\WINDOWS\System32\OpenSSH\ssh.exe -n -N -T -o BatchMode=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -R 127.0.0.1:8090:127.0.0.1:30141 aliyun
# Optional higher Context7 quota. Context7 also works at its public unauthenticated limit.
CONTEXT7_API_KEY=