github wangwanjie/gately v0.6.9

one hour ago

中文

文件服务用户管理(#127)

  • WebDAV、FTP、SMB 用户与共享用户新增备注(remark,最长 200 字)与启用开关(disabled)。停用后密码正确也无法登录;停用共享用户时 FTP、SMB 断开其已登录连接,WebDAV 从下一个请求起拒绝。旧配置视为启用。
  • 共享用户卡片每人一行,显示备注、启用状态、访问路径与只读/读写。
  • 用户目录与 File Browser 共享目录可从已启用的本地存储挂载中选择。

计划任务失败重试与通知(#133)

  • 新增 retries(05)与 retryInterval(13600 秒,默认 10)。删除、停用、修改任务或模块停止会立即结束重试等待,这类取消不发通知。
  • 定时运行重试用完后仍失败时发布 cron.failed 事件,「关键故障」模板已包含;手动运行不通知。HTTP 任务错误只显示地址的协议与主机。

Web 服务

  • 路径后端与路径规则可单独设置 h2c(upstreamH2c:跟随站点 / 开启 / 关闭),同一域名下 gRPC 走 h2c、网页走 HTTP/1.1(NetBird),手册附配置示例。
  • 站点新增「转发后台 Cookie」(forwardAdminCookies),用于「域名站点 → 雷池 → Gately 后台」等多跳链路;默认关闭,开启该开关的站点只能在登录会话中新建或修改。
  • 访客在后端响应前断开时记为 499,不再算后端错误、不计入健康检查(#128)。

系统设置

  • 「信任本机代理」下新增「视为 HTTPS 访问」(assumeProxyHttps):可信代理转来且带 X-Forwarded-Proto 的请求按 HTTPS 处理,解决经 frp 访问后台时 Cookie 无 Secure、安全评分提示明文的问题。默认关闭。
  • 受保护配置保存时「待确认」日志降为调试级别,系统日志只留确认或回滚结果(#128)。

frpc 加密与压缩(#131)

  • 代理新增「加密传输」「压缩传输」开关(transport.useEncryption / transport.useCompression),导入 TOML 与旧版 INI 时一并读取。

导航面板

  • 「从 Web 服务站点添加」列出路径后端与路径规则,新增「链接不带端口号」选项。
  • App 图标样式下 1×2 宽块、2×2 大块与图标网格对齐;有搜索词时双击或右键空白处清空搜索(#132)。

DDNS 与概览

  • 同步失败通知改为连续 3 轮(或 2 轮超过 5 分钟)才发送,每次故障只通知一次;服务商 5xx、超时、连接失败就地重试最多 2 次,Cloudflare 错误带状态码。
  • 容器识别不再只依赖 /.dockerenv(MikroTik RouterOS、LXC、Kubernetes);承载默认路由的虚拟网卡计入网速。

修复

  • dynv6 更新根域名后同步已有的同类型根记录,修复 AAAA 记录不更新;校正失败记为失败并在下一轮重试(#129)。
  • Windows 下 WAF 保存报 @owasp_crs\REQUEST-901-INITIALIZATION.conf 不存在(#126)。
  • 飞牛经 FN Connect 访问时登录、保存被当成跨源拒绝(#123)。
  • 手机上协议分流规则编辑与文件服务用户卡片的布局。

English

File service users (#127)

  • WebDAV, FTP and SMB users and shared file users get a remark (remark, up to 200 characters) and an enable switch (disabled). A disabled user cannot sign in even with the right password; disabling a shared user drops its FTP and SMB sessions, and WebDAV refuses from the next request. Older configurations count as enabled.
  • The shared user card lists each user with remark, state, access paths and read-only/read-write.
  • User directories and File Browser shared directories can be picked from the enabled local storage mounts.

Scheduled task retries and failure notice (#133)

  • New retries (0-5) and retryInterval (1-3600 s, default 10). Deleting, disabling or editing the task, or stopping the module, ends a retry wait at once without a notification.
  • A scheduled run that still fails after its retries publishes cron.failed, which the Critical failures rule template now includes; manual runs do not notify. HTTP task errors show only the scheme and host of the address.

Web services

  • Path backends and path rules can override h2c (upstreamH2c: follow the site / on / off), so one domain can serve gRPC over h2c and web pages over HTTP/1.1 (NetBird); the manual has a recipe.
  • Sites get Forward admin cookies (forwardAdminCookies) for chains such as domain site → SafeLine → Gately admin. Off by default; sites with it on can only be created or changed in a signed-in session.
  • A visitor who disconnects before the backend responds is logged as 499 and no longer counts as a backend error or in health checks (#128).

Settings

  • Treat as HTTPS (assumeProxyHttps) under Trust local proxy: trusted-proxy requests carrying X-Forwarded-Proto count as HTTPS, fixing the missing Secure cookie and plain-HTTP warning when the admin UI is reached through frp. Off by default.
  • Saving guarded configuration logs the pending confirmation at debug level; the system log keeps only the confirmed or rolled-back result (#128).

frpc encryption and compression (#131)

  • Proxies get Encrypt traffic and Compress traffic switches (transport.useEncryption / transport.useCompression), also read when importing TOML and legacy INI.

Navigation panels

  • Add from Web service sites lists path backends and path rules and has a Links without port number option.
  • In the App icon style, wide (1x2) and big (2x2) links line up with the icon grid; with a search keyword, double or right clicking an empty spot clears it (#132).

DDNS and overview

  • The sync failure notification is sent after 3 consecutive failed rounds (or 2 over 5 minutes), once per failure streak; provider 5xx, timeouts and connection errors are retried in place up to twice, and Cloudflare errors include the status code.
  • Container detection no longer relies on /.dockerenv alone (MikroTik RouterOS, LXC, Kubernetes); virtual interfaces carrying the default route count toward the network speed.

Fixes

  • dynv6 updates existing root records of the same type after changing the zone address, fixing AAAA records that kept the old address; a failed correction is reported and retried next round (#129).
  • WAF on Windows failed to save with @owasp_crs\REQUEST-901-INITIALIZATION.conf does not exist (#126).
  • fnOS access through FN Connect refused sign-in and saving as cross-origin (#123).
  • Phone layouts of the protocol routing rule editor and the file service user cards.

Don't miss a new gately release

NewReleases is sending notifications on new releases.