mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
readme: updated example to use coredhcp
This commit is contained in:
parent
b858ff3fe5
commit
c5ee0552b4
1 changed files with 2 additions and 2 deletions
|
|
@ -57,9 +57,9 @@ Once the server is up and listening for HTTP requests, you can try making a requ
|
|||
|
||||
```bash
|
||||
export ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIs...
|
||||
curl http://127.0.0.1:3334/generate?target=dnsmasq -X GET -H "Authorization: Bearer $ACCESS_TOKEN" --cacert ochami.pem
|
||||
curl http://127.0.0.1:3334/generate?target=coredhcp -X GET -H "Authorization: Bearer $ACCESS_TOKEN" --cacert ochami.pem
|
||||
# ...or...
|
||||
./configurator fetch --target dnsmasq --host http://127.0.0.1:3334 --cacert ochami.pem
|
||||
./configurator fetch --target coredhcp --host http://127.0.0.1:3334 --cacert ochami.pem
|
||||
```
|
||||
|
||||
This will do the same thing as the `generate` subcommand, but through a GET request where the file contents is returned in the response. The access token is only required if the `CONFIGURATOR_JWKS_URL` environment variable is set when starting the server with `serve`. The `ACCESS_TOKEN` environment variable is passed to `curl` using the `Authorization` header and expects a token as a JWT.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue