You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,19 @@
17
17
- Cloudflare [api-token](https://dash.cloudflare.com/profile/api-tokens) with ZONE-DNS-EDIT Permissions
18
18
- DNS Record must be pre created (api-token should only edit dns records)
19
19
20
+
### Creating Cloudflare API token
21
+
22
+
To create a CloudFlare API token for your DNS zone go to [https://dash.cloudflare.com/profile/api-tokens][cloudflare-api-token-url] and follow these steps:
23
+
24
+
1. Click Create Token
25
+
2. Select Create Custom Token
26
+
3. Provide the token a name, for example, `example.com-dns-zone-readonly`
27
+
4. Grant the token the following permissions:
28
+
- Zone - DNS - Read
29
+
5. Set the zone resources to:
30
+
- Include - Specific Zone - `example.com`
31
+
6. Complete the wizard and use the generated token at the `CLOUDFLARE_API_TOKEN` variable for the container
32
+
20
33
## Installation
21
34
22
35
You can place the script at any location manually.
@@ -154,3 +167,10 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
154
167
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
155
168
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
156
169
IN THE SOFTWARE.
170
+
171
+
<!-- urls -->
172
+
<!-- appendices -->
173
+
174
+
[cloudflare-api-token-url]: https://dash.cloudflare.com/profile/api-tokens'Cloudflare API Token'
0 commit comments