Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何自建图片CDN #2

Open
SpectreAX opened this issue Feb 9, 2023 · 4 comments
Open

如何自建图片CDN #2

SpectreAX opened this issue Feb 9, 2023 · 4 comments

Comments

@SpectreAX
Copy link

请教一下 感觉自建会比较稳定

@itorr
Copy link
Owner

itorr commented Feb 9, 2023

这个项目做的比较急,只是在代理的时候把请求的数据存了一份以便于下次返回。时间足够的最好还是提前做好预热爬取

@mmdjiji
Copy link

mmdjiji commented Feb 10, 2023

这种做法感觉不错,如果想爬取所有番组计划的图片还是需要很多磁盘空间的,不如用到哪个爬哪个,相对于一个cache,节约了自己的磁盘空间,也避免对番组计划造成影响。值得注意的是,这样就相对于对番组计划的一个耦合,如果番组计划宕机,自己的服务也就失效了,所以可能必要时还要做全站的爬取并做好持续的补爬更新。目前也就感觉番组计划是最全最主流的社区了。

@SpectreAX
Copy link
Author

我的想法是用tx或者ali的香港云主机对bangumi的图片地址做反代。不知道可行性如何。

@itorr
Copy link
Owner

itorr commented Feb 10, 2023

我的想法是用tx或者ali的香港云主机对bangumi的图片地址做反代。不知道可行性如何。

可行的,这样实际上甚至只需要 OpenResty 甚至 Nginx 写个配置就能实现了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants