🔗 Sub-Store 更新
后端 2.19.84
Node 环境:
之前支持环境变量 SUB_STORE_DATA_URL 设置一个远程数据文件链接, 这样每次启动都会从这个地址拉取并恢复数据
如果要从 Gist 恢复, 注意这里要用 Raw 链接, 且应该用固定的最新版本链接, 可以加上 noCache 不缓存, 大概长这样 https://gist.githubusercontent.com/[gist username]/[gist ID]/raw/[file name]#noCache, 例如 SUB_STORE_DATA_URL="https://gist.githubusercontent.com/username/id/raw/Sub-Store#noCache"
但是现在 Gist 备份无 GitHub Token 了很不方便. 想着都要加东西了 不如搞得灵活点
于是新增了一个环境变量 SUB_STORE_DATA_URL_POST 执行自定义命令
例如结合上面的 SUB_STORE_DATA_URL 拉取到远程数据后, 修改某些字段. 例如: SUB_STORE_DATA_URL_POST="content.settings.gistToken='xxxxxxxxx'" 实现设置 GitHub Token
🤭 Sub-Store 合集 🧐 频道资源合集 😄 恰饭推荐 💬 群组
🥰 #SubStore #更新记录 #changlog #updates
后端 2.19.84
Node 环境:
之前支持环境变量 SUB_STORE_DATA_URL 设置一个远程数据文件链接, 这样每次启动都会从这个地址拉取并恢复数据
如果要从 Gist 恢复, 注意这里要用 Raw 链接, 且应该用固定的最新版本链接, 可以加上 noCache 不缓存, 大概长这样 https://gist.githubusercontent.com/[gist username]/[gist ID]/raw/[file name]#noCache, 例如 SUB_STORE_DATA_URL="https://gist.githubusercontent.com/username/id/raw/Sub-Store#noCache"
但是现在 Gist 备份无 GitHub Token 了很不方便. 想着都要加东西了 不如搞得灵活点
于是新增了一个环境变量 SUB_STORE_DATA_URL_POST 执行自定义命令
例如结合上面的 SUB_STORE_DATA_URL 拉取到远程数据后, 修改某些字段. 例如: SUB_STORE_DATA_URL_POST="content.settings.gistToken='xxxxxxxxx'" 实现设置 GitHub Token
🤭 Sub-Store 合集 🧐 频道资源合集 😄 恰饭推荐 💬 群组
🥰 #SubStore #更新记录 #changlog #updates