github wangwanjie/gately v0.6.5.4

59 minutes ago

中文

网络唤醒:远程关机

设备可以选择一个 Web 终端中的 SSH 连接与关机命令(提供 Linux、Windows、macOS 预设),卡片上出现「关机」按钮(POST /api/wol/devices/{key}/shutdown)。连接必须已记录主机密钥;每次关机新建连接,最长 30 秒,同一设备同时只执行一次;连接在返回退出码前断开视为已开始关机。API 令牌设置关机连接与命令或触发关机时,还需要 webterminal:write。

网络唤醒:巴法云语音控制

接入巴法云后可用小爱同学、小度、Google Assistant 等开关设备:「打开」唤醒,「关闭」远程关机,状态写回巴法云(界面与接口操作同样写回)。MQTT 3.1.1 经 TLS 连接 bemfa.com:9503 并校验证书,私钥脱敏;订阅时补发的上一次状态不执行,10 秒内重复指令只执行一次。

Web 服务:监听附加 HTTP 端口

监听可再开一个明文 HTTP 端口(如 443 再开 80),共用全部站点与设置;开启 HTTPS 时默认跳转到 HTTPS(301/308,端口换成访问端口),也可直接服务。ACME HTTP-01、PROXY 协议与自动放行防火墙同样生效;端口占用时主端口照常运行。没有对应站点的域名不跳转,按未知域名或默认站点处理(同端口 HTTP 跳转同样如此);保存时检查端口冲突。

导航面板:换肤

面板使用与管理界面相同的主题配色,可设置默认皮肤;访客在页面右上角换肤,交互与管理界面一致(亮暗模式、悬停预览、圆形展开、自定义主色与圆角,手机底部弹出),选择保存在浏览器中。

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

English

Wake-on-LAN: remote shutdown

A device can pick a Web terminal SSH connection and a shutdown command (presets for Linux, Windows and macOS), and its card gets a Shut down button (POST /api/wol/devices/{key}/shutdown). The connection must have a recorded host key; each shutdown opens a fresh connection, runs for up to 30 seconds and once at a time per device, and a connection dropping before an exit code counts as the shutdown having started. API tokens also need webterminal:write to set the shutdown connection and command or to trigger a shutdown.

Wake-on-LAN: Bemfa voice control

With Bemfa, Xiao AI, Xiaodu, Google Assistant and other assistants can turn devices on and off: on wakes, off runs the remote shutdown, and the state is written back to Bemfa (also after actions from the UI or API). Gately uses MQTT 3.1.1 over TLS to bemfa.com:9503 with certificate verification and masks the private key; the previous state replayed on subscribe is not executed, and the same command within 10 seconds runs once.

Web services: extra HTTP port per listener

A listener can open an extra plain HTTP port (such as 80 next to 443) that shares all its sites and settings; on an HTTPS listener it redirects to HTTPS by default (301/308, switching to the access port) or serves the sites. ACME HTTP-01, the PROXY protocol and automatic firewall opening apply to it, and the main port keeps running if the port is taken. Domains without a site are not redirected and get the unknown-domain or default-site handling (the same now applies to the same-port HTTP redirect); port conflicts are checked on save.

Navigation panels: themes

Panels use the admin UI's color schemes with a configurable default; visitors switch themes from the top right with the same interactions as the admin UI (light/dark/system, hover preview, circular reveal, custom accent and corner radius, bottom sheet on phones), saved in the browser.

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

Don't miss a new gately release

NewReleases is sending notifications on new releases.