中文
ntfy 推送服务(#150)
- 「自动化」分组新增「ntfy 推送服务」:在线安装 ntfy 服务端,设置监听地址、外部地址与管理员账号,Gately 生成
server.yml(默认拒绝匿名访问、bcrypt 密码)与访问令牌并托管进程,可查看日志、启停与重启。 - 「添加为通知渠道」一键把本机 ntfy 加进通知中心。支持 Linux 与 Windows(macOS 发布包里的 ntfy 只有客户端)。
服务器名称与备份
- 全局服务器名称:概览页铅笔按钮原地改名(留空恢复主机名),概览、通知、邮件、Webhook
{server}与备份统一使用;通知中心旧的serverName自动迁移。接口PUT /api/system/server-name(仅登录会话)。 - 备份文件名带服务器标识(
gately-backup-<标识>-<时间>.zip),邮件主题与正文也带名称;多台服务器可共用备份目录或邮箱,清理时只处理本服务器的文件,包括改名或容器重建前用过的标识。
证书与存储
- 证书自动部署新增「存储」目标(#146):写入本地目录、WebDAV 等存储挂载点下的目录,默认或自定义文件名,部署、重试与失败通知同其他目标。
- 写入本地目录挂载点时私钥与未加密备份为 0600,先写临时文件再改名替换。
Docker
- 网络代理(
proxy):拉取、升级与检查更新经代理下载镜像再导入 Docker,失败回退到守护进程直接拉取与回退加速地址;仅支持带标签引用,本地已是同一镜像时不重复下载。
管理界面与导航面板
- 主题偏好保存在服务端(#149,
GET/PUT /api/account/ui-theme),电脑与手机一致;只读账号沿用已保存的主题。 - 导航面板提供 apple-touch-icon 与 Web App Manifest,可添加到 iOS/安卓主屏幕;编辑框「页面」标签新增「桌面图标」(
homeIcon)。
OpenWrt
- ipk / apk 安装包部署可在「关于」页在线升级:下载对应安装包、验证 minisign 签名与 SHA-256 后由 opkg / apk 安装。从 v0.7.2 起可用,升级到 v0.7.2 本身仍需手动安装。
修复
- 导入 Lucky 备份后管理界面 403(#148):只有导入请求来自私网地址时才开启「仅限内网访问」,否则保持关闭并在报告中提示。
- STUN「仅地址变化时通知」:重启或保存规则后不再重复通知;新增或修改 Webhook/脚本后通知一次;通知失败会在重启后补发。
- 修复 Windows 交叉编译;诊断包对自定义服务器名称脱敏。
Gately 由作者一人业余开发维护,所有功能免费。如果它帮到了你,欢迎赞助支持后续开发;在留言里写下昵称会列入致谢名单。
English
ntfy push server (#150)
- New ntfy push server page under Automation: install the ntfy server online, set the listen address, external URL and admin account; Gately generates
server.yml(anonymous access denied, bcrypt password) and an access token and supervises the process, with logs, start/stop and restart. - Add as notification channel adds the local ntfy to the Notification Center in one click. Linux and Windows are supported (the macOS ntfy release has the client only).
Server name and backups
- Global server name: rename in place with the pencil button on the Overview page (empty restores the hostname); the overview, notifications, emails, the Webhook
{server}variable and backups all use it. The old notificationserverNameis migrated automatically. APIPUT /api/system/server-name(session only). - Backup file names carry the server label (
gately-backup-<label>-<time>.zip), and so do email subjects and bodies; several servers can share one backup folder or mailbox, and pruning only touches this server's files, including labels it used before a rename or container recreate.
Certificates and storage
- Certificate auto deploy gets a Storage target (#146): write to a directory on any storage mount (local directory, WebDAV and others) with default or custom file names; deploy, retry and failure notices work like the other targets.
- On local directory mounts the private key and unencrypted backups are written 0600, through a temporary file renamed into place.
Docker
- Network proxy (
proxy): pulls, upgrades and update checks download images through the proxy and import them into Docker, falling back to a direct daemon pull and the fallback mirrors; tagged references only, and an image that is already up to date is not downloaded again.
Admin UI and navigation panel
- Theme preferences are saved on the server (#149,
GET/PUT /api/account/ui-theme), so desktop and mobile look the same; read-only accounts follow the saved theme. - Navigation panels serve an apple-touch-icon and a Web App Manifest and can be added to the iOS/Android home screen; the panel editor's Page tab has a Home screen icon field (
homeIcon).
OpenWrt
- ipk / apk installs can upgrade online from the About page: the matching package is downloaded, its minisign signature and SHA-256 are verified, and opkg / apk installs it. Available from v0.7.2 on; getting to v0.7.2 itself still needs a manual package install.
Fixes
- 403 after importing a Lucky backup (#148): LAN-only access is only turned on when the import request comes from a private address; otherwise it stays off with a warning in the report.
- STUN "notify only on change": restarting or saving a rule no longer re-sends notifications; adding or changing a webhook or script notifies once; a failed notification is sent again after a restart.
- Windows cross build fixed; the diagnostics bundle redacts the custom server name.
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.