yst726 / cf-worker-mirror

Proxy to another HTTP connection via cloudflare workers, including Docker Hub, Github.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Worker - Mirror

This is a Cloudflare Worker that mirrors to another HTTP connection.

Deploy to Cloudflare Workers

Supported sites

Configuration

For SECURE_CONFIG environment variable, you can use the following JSON format:

{
  "AllowHTML": 0, // Allow responsing HTML
  "EnableMainSite": 1, // Expose to main domain
  "EnableSubDomain": 1, // Expose to sub domain
  "MainSiteDomain": [
    // type * to match all domain
    "example.com" // example.com is allowed
  ],
  "SubKeyList": [
    "abcde" // abcde.example.com is allowed
  ]
}

About

Proxy to another HTTP connection via cloudflare workers, including Docker Hub, Github.

License:MIT License


Languages

Language:JavaScript 100.0%