Skip to content

Use Cloudflare Pages Functions as a reverse proxy with custom domain support.

License

Notifications You must be signed in to change notification settings

friday99/cf-page-func-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

cf-page-func-proxy

Use Cloudflare Pages Functions as a reverse proxy with custom domain support.

Getting Start

1.下载或是Fork本仓库

2.修改_worker.js中的url.hostname为你需要反代的网址 https://github.com/xyTom/cf-page-func-proxy/blob/291f504f9be4a65d2daa39a954a41bd8088561f3/_worker.js#L5

3.打开Cloudflare Dashboard,进入Pages管理页面,选择创建项目,如果在第一步中选择的是fork本仓库,则选择1Connect to Git,如果第一步中选择的是下载本仓库则选择2Direct Upload 1

绑定自定义域名

1.进入Cloudflare Pages管理页面,选择刚刚创建的Pages项目,点击名称进入项目设置页面 2

2.选择页面中的自定义域 3

3.选择设置自定义域 4

4.在页面中输入需要绑定的域名,并点击继续,这里的域名可以是子域名 5

5.在设置方法中选择开始cname设置 6

6.按照页面给出的说明去DNS服务提供商处修改DNS解析记录,即可完成自定义域名绑定 7

About

Use Cloudflare Pages Functions as a reverse proxy with custom domain support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%