/ip/cloud/back-to-home-file
back-to-home-file
Directories and files shared with File Share. Each share gets a secret link under .routingthecloud.net, and the service runs while at least one share exists. For examples, see File Share. The service state is in...
ip/cloud/back-to-home-file
Syscap: cloud-vpn Type: Directory
通过文件共享共享的目录和文件。每个共享都会获得 <serial>.routingthecloud.net 下的秘密链接,只要至少存在一个共享,服务就会运行。有关示例,请参阅 文件共享。服务状态位于 settings。
| 标志 | 名称 | 描述 |
|---|---|---|
X | disabled | 共享已禁用,其链接返回 HTTP 404。 |
I | invalid | 共享尚无法提供,例如路由器正在请求证书时。注释行会显示原因,例如 getting cert status: requesting SSL certificate。 |
D | dynamic | 动态 |
| 参数 | 类型 | 描述 |
|---|---|---|
path | file | 要共享的目录或文件,与 /file/print 显示的一致,例如 usb1/photos。路由器显示时会带有前导 /。 |
allow-uploads | bool | 目录共享的访问者是否可以在其中上传文件和创建文件夹。未启用时,路由器会以 HTTP 403 拒绝上传。默认值:no。 |
expires | alt { expires: enum (never) { never:0xFFFFFFFF } , interval: time , date-time: date } | 共享停止工作的时间:never、日期和时间(例如 "2026-10-01 00:00:00")或时间间隔(例如 1h)。路由器会将间隔转换为日期。never 会保持共享,直到您将其移除。 |
| 只读参数 | 类型 | 描述 |
|---|---|---|
key | string | 共享的随机密钥,即 url 的最后一部分。 |
url | string | Link to the share page, https://<serial>.routingthecloud.net/s/<key>. A directory share lists its files; anyone who has the link can open it. |
direct-url | string | 带有 ?dl 的 url。它会下载共享文件,或将整个目录下载为 download.zip。 |
downloads | num | 共享的直接下载次数。打开共享页面不计入其中。 |