github wangwanjie/gately v0.6.5.1

2 hours ago

中文

开机自启:gately service(#72)

二进制部署可以直接执行 sudo ./gately service install(Windows 在管理员终端执行 .\gately.exe service install)把 Gately 注册为系统服务:Linux 使用 systemd,macOS 使用 launchd(加 -user 免 sudo 注册为登录项),Windows 注册为系统服务;安装后立即启动,异常退出后自动拉起。之后用 gately service uninstall|start|stop|restart|status 管理,卸载时保留配置目录。Windows 的默认配置目录 %ProgramData%\Gately 只允许 SYSTEM 与管理员访问;程序或配置目录可被 root 以外的用户修改时,安装时给出警告。详见 开机自启。

长列表分页(#73)

入侵防护封禁列表、Web 服务全局设置中的管理封禁、存储挂载与 Docker 容器文件、Web 终端 SFTP 文件管理改为分页显示,每页 20 / 50 / 100 / 200 条并分别记住。4000 条封禁的页面渲染从约 2.6 秒降到 0.23 秒;搜索先筛选再分页,定时刷新与解封保持当前页;SFTP 表头复选框只作用于当前页。

DDNS 批量添加解析记录

任务编辑框的「解析记录」页新增「批量添加」:每行一个域名(完整域名或主机记录,可追加类型与记录值),添加前预览将添加的记录、跳过的重复项与无效行;中文域名自动转换为 punycode。详见 批量添加记录。

崩溃记录 crash.log

Go 运行时崩溃(panic、fatal error)的信息与堆栈写进配置目录的 crash.log,进程被强制结束(如 OOM)时记录最后存活时间;下次启动在系统日志中提示,诊断包一并导出并脱敏。同一配置目录同时运行两个实例时互不干扰。详见 诊断包。

其他

  • macOS 二进制使用 Developer ID 签名并经过 Apple 公证,下载后可直接运行,校验方法见 校验发布产物。
  • 功能建议模板要求填写版本与系统架构。

更新说明:https://gately.cn/news/v0.6.5.1

English

Start at boot: gately service (#72)

Binary installs can run sudo ./gately service install (on Windows, .\gately.exe service install in an administrator terminal) to register Gately as a system service: systemd on Linux, launchd on macOS (-user registers a login item without sudo) and a Windows service; it starts right away and is brought back after a crash. Manage it afterwards with gately service uninstall|start|stop|restart|status; uninstalling keeps the config directory. On Windows the default config directory %ProgramData%\Gately is accessible only to SYSTEM and Administrators, and install warns when the binary or config directory can be modified by users other than root. See Start at boot.

Paged long lists (#73)

The intrusion prevention ban list, the admin bans in Web Services global settings, storage mount and Docker container files and the web terminal SFTP file manager are paged, with 20 / 50 / 100 / 200 rows per page remembered per list. A page with 4000 bans renders in 0.23 s instead of about 2.6 s; search filters before paging, the periodic refresh and unbanning keep the current page, and the SFTP header checkbox only affects the current page.

Bulk adding DDNS records

The Records tab of the task editor gets Bulk add: one domain per line (a full domain or just the host, optionally with a type and value), with a preview of the records to add, the skipped duplicates and the invalid lines; internationalized domain names are converted to punycode. See Bulk adding records.

crash.log

Go runtime crashes (panic, fatal error) with their stacks are written to crash.log in the config directory, and a killed process (for example by OOM) leaves its last alive time; the next start notes it in the system log, and the diagnostics bundle includes it, redacted. Two instances on the same config directory no longer interfere. See Diagnostics bundle.

Other

  • macOS binaries are signed with a Developer ID and notarized by Apple, so they run right after download; see Verifying release artifacts.
  • The feature request template asks for the version and the system and architecture.

Release notes: https://gately.cn/en/news/v0.6.5.1

Don't miss a new gately release

NewReleases is sending notifications on new releases.