Proxy that runs on Cloudflare Workers.
- Install wrangler2.
npm install wrangler
. - Generate a public Ed25519 key, exported under SPKI mode with PEM formatting. Should look like this:
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAzOWQ2fB4o1cNL8aBEz3EHdUQc9RlqVs+k4BMq/F5his=
-----END PUBLIC KEY-----
- Set the inside (
MCowBQYDK2VwAyEAzOWQ2fB4o1cNL8aBEz3EHdUQc9RlqVs+k4BMq/F5his=
) as thePUBLIC_KEY
secret.npx wrangler secret put PUBLIC_KEY
, responding to the prompt with the public key. - Edit
wrangler.toml
to have an up to dateroutes
key. - Deploy!
npx wrangler publish
.