github wangwanjie/gately v0.7.0

17 minutes ago

中文

管理界面重新分组

  • 侧边栏「工具」「系统」两组拆为:主机管理(Docker、Web 终端、网络唤醒)、自动化(计划任务、通知中心)、监控与诊断(性能监控、日志、诊断)、系统(设置、关于)。
  • 新增「诊断」页(/diagnostics):网络诊断、系统自检、诊断包(仅管理员)。旧的 /nettools 与设置页 ?tab=diagnostics 链接自动跳转。
  • 设置项就近放置:日志设置移到日志页,流量统计开关与天数在概览流量统计窗口,检查更新与更新代理只在「关于」页。设置页标签「访问控制」改为「管理入口」、「网络与运行」改为「常规」,API 令牌移到新的「API」标签。
  • 全局搜索新增「设置项」类别(约 33 项,中英文同义词),选中后跳到对应卡片并高亮。
  • 设置页与认证用户页有未保存修改时,离开、刷新、浏览器后退或经全局搜索跳转前都会确认。

网卡流量统计

  • 概览网络卡片「流量统计」:最近 7~365 天按天、某一天按小时,可按网卡筛选,显示合计、峰值与各网卡合计。
  • 每分钟采样、按小时累计到配置目录的 nettraffic.jsonl(默认保留 90 天,netTrafficDays 最多 365,disableNetTraffic 关闭);接口 GET/DELETE /api/system/nettraffic。

Web 服务

  • 出站代理(upstreamProxy,#136):http://、https://、socks5://、socks5h:// 或全局更新代理,连接池、健康检查、分路径与按用户分流的后端都经代理;代理密码打码显示。
  • 站点自带 robots.txt 与 favicon(#137):robots 可交给后端、禁止所有爬虫或自定义(16 KB 内);上传图标(64 KB 内)替换后端 favicon.ico。认证前、访问控制与 WAF 后响应。
  • 固定文本内容与响应头、反代请求头值支持 {host}、{1}、{path}、{args}、{ClientIP}、{STUN_规则名_PORT} 等变量(#141),文本按 Content-Type 转义;变量无法展开时删除该请求头,访客自带的同名头不会透传。

备份

  • 邮件备份(#143):目的地可选通知中心已启用的 SMTP 渠道,加密备份作为附件发送;未加密的备份不发送,超过 15 MB 跳过。

Docker

  • 检查更新与批量升级改为列表上方的进度横幅,容器行显示升级状态与失败原因,新增「可升级」筛选,可重试失败项;离开页面后进度保留,中断时未轮到的容器标为跳过(#135)。
  • 磁盘占用改为可回收空间、构成条与明细表,显示数据目录分区水位;数据卷不计入可回收、不参与一键清理,在对话框中逐个确认删除;共享构建缓存不再重复累加(#134)。

其他

  • STUN 规则的全局 Webhook 与自有 Webhook 可同时生效(#138)。
  • 计划任务新增单独的「失败通知」开关(muteFail,#145)。
  • DDNS 记录与任务备注都为空时写入默认备注 GatelyDDNS。
  • 安全入口帮助文字说明浏览器会记住入口一年(#144)。

升级提示

设置页的部分设置项已移到使用它的页面,找不到时用全局搜索(Ctrl/⌘ + K)输入名称直达。

English

Admin UI regrouped

  • The sidebar's Tools and System groups become Hosts (Docker, Web terminal, Wake-on-LAN), Automation (Scheduled tasks, Notifications), Monitoring & Diagnostics (Performance, Logs, Diagnostics) and System (Settings, About).
  • New Diagnostics page (/diagnostics) with Network diagnostics, Self-check and the Diagnostics bundle (admins only). Old /nettools and Settings ?tab=diagnostics links redirect.
  • Settings live where they are used: log settings on the Logs page, traffic statistics switch and retention in the overview's traffic window, update check and update proxy on About only. Settings tabs Access Control and Network & Runtime are renamed Admin Access and General; API tokens move to a new API tab.
  • Global search gains a Settings category (about 33 items, with Chinese and English synonyms) that jumps to the card and highlights it.
  • Unsaved changes on Settings and Web users are confirmed before leaving, reloading, going back or jumping through global search.

NIC traffic statistics

  • A Traffic stats window on the overview network card: daily bars for the last 7-365 days, hourly traffic for one day, per-interface filter, totals and peak.
  • Sampled every minute and accumulated per hour into nettraffic.jsonl in the config directory (90 days by default, netTrafficDays up to 365, disableNetTraffic turns it off); API GET/DELETE /api/system/nettraffic.

Web services

  • Outbound proxy for backends (upstreamProxy, #136): http://, https://, socks5://, socks5h:// or the global update proxy; the connection pool, health checks, per-path and per-user backends all go through it. The proxy password is masked.
  • Sites can serve their own robots.txt and favicon (#137): leave robots to the backend, block all crawlers or use custom text (up to 16 KB); an uploaded icon (up to 64 KB) replaces the backend's favicon.ico. Answered before authentication, after access control and the WAF.
  • Fixed-text bodies and response headers and reverse-proxy request header values accept {host}, {1}, {path}, {args}, {ClientIP}, {STUN_name_PORT} and the other variables (#141); text is escaped by Content-Type. A header whose variable cannot be expanded is removed, so a visitor's own header of that name is never passed through.

Backup

  • Email backups (#143): a destination can be an enabled SMTP channel of the notification center; the encrypted backup is sent as an attachment. Unencrypted backups are never emailed and files over 15 MB are skipped.

Docker

  • Update checks and batch upgrades show a progress banner above the list, per-container status and failure reasons, an Upgradable filter and Retry failed; progress survives leaving the page, and containers not reached when a task is interrupted are marked skipped (#135).
  • Disk usage shows reclaimable space, a composition bar and a table plus the data directory's partition watermark; volumes are excluded from reclaimable space and one-click cleanup and are reviewed one by one; shared build cache is no longer counted twice (#134).

Other

  • STUN rules can notify the global webhook and their own webhook at the same time (#138).
  • Scheduled tasks get a per-task failure notice switch (muteFail, #145).
  • DDNS writes the default remark GatelyDDNS when both the record and task remarks are empty.
  • The safe entry help explains that the browser remembers the entry for a year (#144).

Upgrade note

Some settings moved from Settings to the page that uses them; press Ctrl/⌘ + K and type the name to jump there.


Gately 由作者一人业余开发维护,所有功能免费。如果它帮到了你,欢迎赞助支持后续开发;在留言里写下昵称会列入致谢名单。

Gately is built and maintained by one developer in spare time and every feature is free. If it helps you, consider sponsoring future development; leave your name in the message to be added to the thanks list.

Don't miss a new gately release

NewReleases is sending notifications on new releases.