URL unfurling service that requires signed requests to function, running on Cloudflare Workers.
- Install Wrangler 2 (
yarn global add wranglerornpm 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_KEYsecret (yarn wrangler secret put PUBLIC_KEYornpx wrangler secret put PUBLIC_KEY), responding to the prompt with the public key. - Edit
wrangler.tomlto have an up to daterouteskey. - Deploy with
yarn deploy(ornpm run deploy)!