Commit Graph

11 Commits

Author SHA1 Message Date
Yuuuuu0
3be21757f6 feat: 所有出站连接支持 HTTP 代理
在无法直接访问外网的环境下(如内网服务器需要通过代理访问互联网),
agent 的 websocket 上报、IP 地址获取、autodiscovery 注册等请求
无法走代理导致连接失败。

现在统一添加 http.ProxyFromEnvironment,
配置 http_proxy/https_proxy 环境变量即可生效,未配置时行为不变。

systemd 配置示例:

[Service]
Environment="http_proxy=http://your-proxy-ip:port"
Environment="https_proxy=http://your-proxy-ip:port"
Environment="HTTP_PROXY=http://your-proxy-ip:port"
Environment="HTTPS_PROXY=http://your-proxy-ip:port"
Environment="no_proxy=localhost,127.0.0.1,::1,172.16.0.0/12"
Environment="NO_PROXY=localhost,127.0.0.1,::1,172.16.0.0/12"
2026-02-10 19:59:54 +08:00
Akizon77
384d3cf4bf feat: #28 支持使用环境变量 / 配置文件来传入 agent 参数 2025-11-04 16:13:44 +08:00
Akizon77
77dbb9e487 fix: https://github.com/komari-monitor/komari/issues/248 使用中文域名进行自动发现无法链接面板 2025-11-04 14:55:48 +08:00
Akizon77
0dcdb89bb5 feat: 添加自定义HTTP客户端和WebSocket拨号器,支持TLS配置 2025-10-15 12:25:32 +08:00
Akizon77
8e31514e9c fix: 纯IPv6环境的一些问题 2025-10-15 12:07:47 +08:00
9834a55e5d feat: 添加自定义 DNS 解析器 2025-09-13 02:05:00 +08:00
xdf
fb9828378b feat: 添加Cloudflare Access支持,允许通过请求头传递Client ID和Client Secret 2025-08-20 16:32:53 +09:00
Akizon77
2cecb92440 feat: https://github.com/komari-monitor/komari/issues/108 实现应用层的心跳机制
git忽略__debug
2025-07-08 15:08:17 +08:00
Akizon77
562c8ffa3c feat: 添加安全的WebSocket连接管理,支持ping任务功能 2025-06-21 14:43:41 +08:00
Akizon77
b247a6ebee feat: 添加任务执行功能
fix: 版本解析逻辑
2025-06-04 17:20:39 +08:00
Akizon77
e34367de69 Refactor monitoring package: remove platform-specific files and consolidate OS detection and process counting logic
- Deleted os_windows.go and process_windows.go, replacing them with platform-agnostic implementations in unit directory.
- Removed Linux-specific process counting logic from process_linux.go and integrated it into unit.
- Consolidated uptime and OS name retrieval into unit files for better organization.
- Updated update mechanism to use global variables for current version and repository.
- Introduced command-line flags for configuration, including disabling auto-update and web SSH.
- Implemented WebSocket connection handling and terminal interaction for both Unix and Windows systems.
- Added basic info upload functionality to server package, enhancing monitoring capabilities.
2025-05-16 19:56:22 +08:00