Skip to content

Commit 2667199

Browse files
committed
Add stragglers
1 parent 0be4107 commit 2667199

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/agentless/dns/dns-over-https.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ Steps 1-3 above only need to be completed once, while Steps 4-5 below would occu
234234
Request a DoH token for the user, using your service token to authenticate into your <GlossaryTooltip term="team domain">team domain</GlossaryTooltip>.
235235

236236
```bash
237-
curl "https://<TEAM_NAME>.cloudflareaccess.com/cdn-cgi/access/doh-token?account-id=<ACCOUNT_ID>&user-id=<USER_ID>&auth-domain=<TEAM_NAME>.cloudflareaccess.com" \
238-
--header "Cf-Access-Client-Id: <CLIENT_ID>" \
239-
--header "Cf-Access-Client-Secret: <CLIENT_SECRET>"
237+
curl "https://$TEAM_NAME.cloudflareaccess.com/cdn-cgi/access/doh-token?account-id=$ACCOUNT_ID&user-id=$USER_ID&auth-domain=$TEAM_NAME.cloudflareaccess.com" \
238+
--header "Cf-Access-Client-Id: $CLOUDFLARE_CLIENT_ID" \
239+
--header "Cf-Access-Client-Secret: $CLOUDFLARE_CLIENT_SECRET"
240240
```
241241

242242
The response contains a unique DoH token associated with the user. This token expires in 24 hours. We recommend setting up a refresh flow for the DoH token instead of generating a new one for every DoH query.
@@ -253,12 +253,12 @@ The response contains a unique DoH token associated with the user. This token ex
253253

254254
### 5. Send an authenticated DoH query
255255

256-
Send DoH queries to the resolver at `https://<ACCOUNT_ID>.cloudflare-gateway.com/dns-query`, making sure to include the user's DoH token in the `CF-Authorization` header.
256+
Send DoH queries to the resolver at `https://$ACCOUNT_ID.cloudflare-gateway.com/dns-query`, making sure to include the user's DoH token in the `CF-Authorization` header.
257257

258258
```bash
259-
curl --silent "https://<ACCOUNT_ID>.cloudflare-gateway.com/dns-query?name=example.com" \
259+
curl --silent "https://$ACCOUNT_ID.cloudflare-gateway.com/dns-query?name=example.com" \
260260
--header "accept: application/dns-json" \
261-
--header "CF-Authorization: <USER_DOH_TOKEN>" | jq
261+
--header "CF-Authorization: $USER_DOH_TOKEN" | jq
262262
```
263263

264264
If the site is blocked and you have enabled [**Display block page**](/cloudflare-one/policies/gateway/block-page/#turn-on-the-block-page) for the policy, the query will return `162.159.36.12` (the IP address of the Gateway block page). If the block page is disabled, the response will be `0.0.0.0`.

src/content/docs/cloudflare-one/connections/connect-devices/agentless/pac-files.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ https://<SUBDOMAIN>.proxy.cloudflare-gateway.com
6363
1. [Create a proxy endpoint](/api/resources/zero_trust/subresources/gateway/subresources/proxy_endpoints/methods/create/) with the following call:
6464

6565
```bash
66-
curl https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/gateway/proxy_endpoints \
66+
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/proxy_endpoints \
6767
--header "Authorization: Bearer <API_TOKEN>" \
6868
--header "Content-Type: application/json" \
6969
--data '{"name": "any_name", "ips": ["<PUBLIC_IP>", "<PUBLIC_IP2>", "<PUBLIC_IP3>"]}'

0 commit comments

Comments
 (0)