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

能不能设置成代理固定网站 #16

Open
myzdjmy opened this issue Sep 18, 2024 · 3 comments
Open

能不能设置成代理固定网站 #16

myzdjmy opened this issue Sep 18, 2024 · 3 comments
Labels
help-wanted Want some help

Comments

@myzdjmy
Copy link

myzdjmy commented Sep 18, 2024

如题,能不能设置代理固定网站,打开后就是需要访问的网站,我想用它来代理我的博客加速

@1234567Yang
Copy link
Owner

1234567Yang commented Sep 18, 2024

这个实现就简单了,你直接可以自己写一个,只需要实现:
1:获取request完整路径减去https://ur_url/
2:把请求路径加上https://ur_new_url/+之前处理的路径
3:添加跨越请求(加载绝对路径)

我最近可能实现不了,太忙了,天天一堆杂七杂八的事情,以后我可能会新开一个小repo/branch来实现。不过你这个思路蛮不错的,可以用到github page上面,等于用另一种方式绑定了个个人域名(但是解析是cloudflare)。

@1234567Yang 1234567Yang added the help-wanted Want some help label Sep 18, 2024
@myzdjmy
Copy link
Author

myzdjmy commented Sep 21, 2024

这个实现就简单了,你直接可以自己写一个,只需要实现: 1:获取request完整路径减去https://ur_url/ 2:把请求路径加上https://ur_new_url/+之前处理的路径 3:添加跨越请求(加载绝对路径)

我最近可能实现不了,太忙了,天天一堆杂七杂八的事情,以后我可能会新开一个小repo/branch来实现。不过你这个思路蛮不错的,可以用到github page上面,等于用另一种方式绑定了个个人域名(但是解析是cloudflare)。

感谢回复,自己动手没那个能力啊,坐等你有空更新好了,如果实现的话一个页面又是自己的博客或nas又可以后边加路径代理网站,简直太完美了

@znn95
Copy link

znn95 commented Oct 1, 2024

https://github.com/jonssonyan/cf-workers-proxy
这个实现了此功能

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

No branches or pull requests

3 participants