initial release

This commit is contained in:
2025-01-27 10:45:42 +00:00
parent 4d3614dc34
commit 3b3e552ab1
9 changed files with 897 additions and 1436 deletions
+10
View File
@@ -0,0 +1,10 @@
# 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.