URL unfurling service that requires signed requests to function, running on Cloudflare Workers.
- Install Wrangler 2 (
yarn global add wrangler
ornpm i -g wrangler
) or install it through this projects dependencies. - 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 (yarn wrangler secret put PUBLIC_KEY
ornpx wrangler secret put PUBLIC_KEY
), responding to the prompt with the public key. - Edit
wrangler.toml
to have an up to dateroutes
key. - Deploy with
yarn deploy
(ornpm run deploy
)!