Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
(如果方便的话, 可以简述一下您所做的改动)
https://github.com/taoky/yukina
作为解决 nix-channels 占用空间巨大(而且还不完整),但是实际使用的内容很少的方案。Yukina 会分析对应时长(现在是 7 天)的 nginx 日志,在给定的大小约束下下载流行的文件,驱逐(删除)不流行的文件。
预期的使用方式是:原先的同步容器仍然运行,但是只同步 index;Nginx 设置对不存在的文件 302 或者 404,并且日志以特定名称输出到特定的目录下。Yukina 运行时(理想情况下,需要相对较高的执行频率)从挂载的日志中读取内容、只对 binary blob 类型的文件(大多数时候需要用户自己写正则 filter 规则)进行操作。