Commit Graph

3 Commits

Author SHA1 Message Date
chaos a6fbf3c175 修复管道执行模式:支持 curl | bash 非交互式部署
- 新增 is_piped() 检测 stdin 是否为 tty
- 新增 read_or_default() 函数,管道模式下自动使用环境变量或默认值
- 所有 read -p 交互式输入替换为 read_or_default
- 支持环境变量覆盖: GATEWAY_PORT/REMOTE_PORT/APPEND_FRP/USE_VENV/INSTALL_FRP
- 修复 curl | bash 执行时 read 导致端口验证失败的 bug
2026-07-02 14:45:47 +08:00
chaos f480f251fb 优化华为云网关脚本:支持容器环境、生产级WSGI、智能内存扫描
- 新增 systemd 检测,容器环境自动使用 nohup 模式
- 优先使用 waitress/gunicorn 生产服务器
- 智能进程优先级扫描 + 分段内存读取
- 多镜像源下载回退机制
- 增加健康检查端点 /health
- 配置自动备份 + 端口有效性验证
- 虚拟环境支持避免 root pip 警告
2026-07-02 14:38:27 +08:00
chaos 9be2cbd58e initial commit 2026-07-02 14:28:25 +08:00