Files
cf-basic-auth/README.md
T
2025-01-27 10:45:42 +00:00

10 lines
655 B
Markdown

# Cloudflare Basic Authentication
[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/sugoidogo/cf-basic-auth)
This worker allows you to add HTTP Basic Authentication to your Cloudflare domains.
# Setup
Deploy with the button above, or clone this repo and configure via `wrangler.toml` before deploying.
In your worker settings, you must set a route pattern (NOT a custom domain) that this worker will cover.
Use [secrets](https://developers.cloudflare.com/workers/configuration/secrets/) to add users, with the username as the key and the password as the value.