Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/milopadma/cloudflare-reverse-proxy
☁️ A Cloudflare Worker-based reverse proxy service that handles domain mapping and request transformation for multiple domains.
https://github.com/milopadma/cloudflare-reverse-proxy
backend cloudflare reverse-proxy
Last synced: about 2 months ago
JSON representation
☁️ A Cloudflare Worker-based reverse proxy service that handles domain mapping and request transformation for multiple domains.
- Host: GitHub
- URL: https://github.com/milopadma/cloudflare-reverse-proxy
- Owner: Milopadma
- License: mit
- Created: 2024-10-25T11:47:23.000Z (3 months ago)
- Default Branch: feat/mvp
- Last Pushed: 2024-11-17T04:42:52.000Z (about 2 months ago)
- Last Synced: 2024-11-17T05:24:56.606Z (about 2 months ago)
- Topics: backend, cloudflare, reverse-proxy
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Cloudflare Reverse Proxy
A Cloudflare Worker-based reverse proxy service that handles domain mapping and request transformation for multiple domains.
## Overview
This service provides a secure way to proxy requests between public domains and their corresponding target destinations, with built-in security headers, content transformation, and canonical URL management.
## Features
- Domain-based request routing
- Security header management
- HTML content transformation
- Canonical URL handling
- Referrer policy enforcement
- Content Security Policy implementation## Development
### Prerequisites
- Cloudflare Workers account
- Bun package manager### Setup
1. Clone the repository
2. Install dependencies: `bun install`
3. Configure your domains in `wrangler.toml`### Available Commands
- `bun run dev`: Start development server
- `bun run deploy`: Deploy to Cloudflare Workers
- `bun run test`: Run test suite
- `bun run cf-typegen`: Generate TypeScript types## Security
This proxy implements several security measures:
- Content Security Policy
- X-Frame-Options
- Referrer Policy
- Mixed Content Blocking## License
MIT License - See LICENSE file for details
## Contributing
Please read CODEOWNERS file for maintainer information and follow standard GitHub flow for contributions.