mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
Merge pull request #117 from arulrajnet/env-support
[feature] Support for environmental substitution in config.json
This commit is contained in:
14
README.md
14
README.md
@@ -258,6 +258,20 @@ If you have multiple IP addresses and want to load balance between them, you can
|
||||
}
|
||||
```
|
||||
|
||||
### Docker environment variable support
|
||||
|
||||
Define environmental variables starts with `CF_DDNS_` and use it in config.json
|
||||
|
||||
For ex:
|
||||
|
||||
```json
|
||||
{
|
||||
"cloudflare": [
|
||||
{
|
||||
"authentication": {
|
||||
"api_token": "${CF_DDNS_API_TOKEN}",
|
||||
```
|
||||
|
||||
### 🧹 Optional features
|
||||
|
||||
`purgeUnknownRecords` removes stale DNS records from Cloudflare. This is useful if you have a dynamic DNS record that you no longer want to use. If you have a dynamic DNS record that you no longer want to use, you can set `purgeUnknownRecords` to `true` and the script will remove the stale DNS record from Cloudflare.
|
||||
|
||||
Reference in New Issue
Block a user