Coder Social home page Coder Social logo

cf-page-proxy's Introduction

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

cf-page-proxy's People

Contributors

xytom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.