Skip to content

Commit

Permalink
Implement Cloudflare DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Jan 12, 2024
1 parent 20cd1ed commit e277a4f
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,28 @@ Simple client-server DDNS setup for personal use.
| Parameter | Default | Required | Description |
|-------------------------|---------|----------|--------------------------------------------------------------------------------------------|
| MODE | client | false | Describes mode in which application running, omit or set to `client` to run as DNS updater |
| TOKEN | none | true | Token to access DigitalOcean API |
| DOMAIN | none | true | Domain name to update, example: `bar.com` |
| SUBDOMAIN | none | true | Subdomain to update, example: `foo` (for foo.bar.com) |
| RECORD_TYPE | A | false | Record type to update |
| SERVER_URL | none | true | URL to endpoint that returns IP |
| CHECK_PERIOD | 5m | false | Period of time between checks for IP change |
| REQUEST_TIMEOUT | 30s | false | Timeout for request to server |
| ATTEMPTS_BEFORE_WARNING | 5 | false | Number of attempts to make before warning about failed request |

### Digitalocean DNS

| Parameter | Default | Required | Description |
|--------------------------|---------|----------|-------------------------------------------------------|
| DIGITALOCEAN_TOKEN | none | true | Token to access DigitalOcean API |
| DIGITALOCEAN_DOMAIN_NAME | none | true | Domain name to update, example: `bar.com` |
| DIGITALOCEAN_SUBDOMAIN | none | true | Subdomain to update, example: `foo` (for foo.bar.com) |

### Cloudflare DNS

| Parameter | Default | Required | Description |
|------------------------|---------|----------|-----------------------------------------------|
| CLOUDFLARE_TOKEN | none | true | Token to access Cloudflare API |
| CLOUDFLARE_DOMAIN_NAME | none | true | Domain name to update, example: `foo.bar.com` |
| CLOUDFLARE_ZONE_ID | none | true | Cloudflare Zone Id |

### Telegram channel for notifications

Set `TELEGRAM_TOKEN` and `TELEGRAM_CHAT_ID` environment variables to enable notifications about IP changes and warning.
Expand Down

0 comments on commit e277a4f

Please sign in to comment.