type
status
date
summary
tags
category
URL
password
slug
icon
如何在Render中部署小雅Alist的Docker镜像
部署方法
新建一个仓库,并设置为Private。
点击这里进入新建仓库的页面,名称任意,设置为Private。

导入本仓库的内容
翻到最下面,点击import code

输入本仓库的地址,然后点击Begin import。

填入自己的token
首先按照小雅的说明文档中的说明获取自己的token、opentoken、folder_id。
然后在自己新建的Private仓库中进入data文件夹,编辑三个文件,分别填入上图的三个参数并保存。



在Render进行部署
打开Render,用相同的GitHub账户登录,然后点击New Web Service,选择刚刚自己新建的的Private仓库,点击Connect。
Name随意填写,Runtime选择免费的那一项,翻到最后点击Advanced,在展开的选项中点击Add Environment Variable,添加环境变量PORT=5678。

然后再点击最下方的Create Web Service。
等待3-5分钟,Logs窗口出现类似于下图这样的信息时,你的小雅Alist Docker镜像就成功部署到Render上啦,在标题下方你可以找到访问地址。


同步更新小雅Alist的内容
你只需要在Render中删除这个项目,然后重新Create New Service,重复最后这一步操作,就可以同步更新小雅Alist的更新内容。
搜索以及WebDav挂载问题
由于Render的原因,在Render上搭建的小雅Alist的Docker镜像的搜索和WebDav挂载功能会失效,需要你再搭建一个Alist,并挂载你在Render上搭建的小雅,并构建索引,才能正常搜索并挂载WebDav。
安全性问题
由于如此搭建之后,使用你的Token搭建的小雅Alist的Docker镜像站是暴露在公网的,任何人只要知道网址就能进去访问,请不要泄露自己的网址,以防止Token被滥用。
容器保活
Render上托管的项目并不一定会一直保持活跃,有些在一段时间无人访问之后就会休眠,所以可以使用一些外部监控手段保活。
我已知的网站监控:
可供自行搭建的网站监控:
- Author:Netsec
- URL:http://notes.51sec.org/Technologies/164add0b-db96-4d85-8a68-7b19cf2b7c9b
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!