Skip to content

eternityspring/cloudflare-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

cloudflare-scripts

A personal collection of Cloudflare utility scripts.

中文文档

Contents

Directory Description
worker-proxy Cloudflare Worker reverse proxy with CORS, token auth, and platform presets

worker-proxy

A lightweight reverse proxy built on Cloudflare Worker. No server required, free tier is enough for personal use.

Features:

  • GET and POST support
  • Custom request headers
  • Platform presets (built-in: wechat for WeChat Official Account articles)
  • Optional Bearer Token authentication
  • CORS enabled for all origins

Usage:

# Basic
GET https://proxy.yourdomain.com/?url=https://example.com

# WeChat article
GET https://proxy.yourdomain.com/?url=https://mp.weixin.qq.com/s/xxxxxx&platform=wechat

# With token (query param)
GET https://proxy.yourdomain.com/?url=https://example.com&token=<your-token>

# With token (header)
Authorization: Bearer <your-token>

Environment variables:

Variable Description
TOKEN Auth secret. If not set, all requests are allowed without authentication.

Deploy: See Cloudflare Worker + Custom Domain: Build a Free Personal Proxy Pool

About

Awesome Cloudflare scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors