No description
Find a file
avery 40035c73a6
enable compiler optimisations
reduces worker size by 19.6%
2025-12-23 03:26:28 +00:00
src initial commit 2025-12-23 02:41:23 +00:00
.gitignore initial commit 2025-12-23 02:41:23 +00:00
Cargo.lock initial commit 2025-12-23 02:41:23 +00:00
Cargo.toml enable compiler optimisations 2025-12-23 03:26:28 +00:00
LICENSE initial commit 2025-12-23 02:41:23 +00:00
README.md add example security.txt link 2025-12-23 03:15:48 +00:00
wrangler.toml initial commit 2025-12-23 02:41:23 +00:00

wellknown-worker-rs

⚠️ Horrible code quality ahead, this is just a small project written to get me back into Rust that gets the job done well-enough for my personal site. Not production-ready.

This is a Cloudflare Worker project that exists so that the .well-known services on my website remain accessible while my host server is down

Features

  • security.txt
  • webfinger (only with very basic OIDC discovery functionality)
  • OpenPGP Web Key Directory (only on wkd branch, and you should really stop and think about why you want this functionality)

Customisation

security.txt

Edit src/security.txt

webfinger

Edit src/webfinger_response.json and replace the default resource URI in src/handlers.rs

Building & running locally

  1. Install the WASM rust target
rustup target add wasm32-unknown-unknown
  1. Install NPM
  2. Build + start
npx wrangler dev

Publishing to Cloudflare

npx wrangler deploy