Clarify README for Worker

This commit is contained in:
Simon Bihel 2022-07-26 09:46:00 +01:00
parent 1be52e5d4f
commit b72fed63a3
No known key found for this signature in database
GPG Key ID: B7013150BEAA28FD

View File

@ -10,15 +10,21 @@ Cloudflare Worker. They use the same code base and are selected at compile time
You will need [`wrangler`](https://github.com/cloudflare/wrangler).
Then copy the configuration file template:
First, copy the configuration file template:
```bash
cp wrangler_example.toml wrangler.toml
```
Replacing the following fields:
Then replace the following fields:
- `account_id`: your Cloudflare account ID;
- `zone_id`: (Optional) DNS zone ID; and
- `kv_namespaces`: a KV namespace ID (created with `wrangler kv:namespace create SIWE_OIDC`).
- `zone_id`: (Optional) DNS zone ID;
- `kv_namespaces`: a KV namespace ID (created with `wrangler kv:namespace create SIWE_OIDC`); and
- the environment variables under `vars`.
You will also need to add a secret RSA key in PEM format:
```
wrangler secret put SIWEOIDC_RSA_PEM
```
At this point, you should be able to create/publish the worker:
```