From 9b140d23506474660ed240631610e0373433de06 Mon Sep 17 00:00:00 2001 From: Timothy Miller Date: Wed, 25 Mar 2026 13:29:37 -0400 Subject: [PATCH] Document CONFIG_PATH env var for config location --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index f347e02..67546bc 100755 --- a/README.md +++ b/README.md @@ -363,6 +363,21 @@ Some ISP provided modems only allow port forwarding over IPv4 or IPv6. Disable t ### ⚙️ Config Options +By default, the legacy config file is loaded from `./config.json`. Set the `CONFIG_PATH` environment variable to change the directory: + +```bash +CONFIG_PATH=/etc/cloudflare-ddns cloudflare-ddns +``` + +Or in Docker Compose: + +```yml +environment: + - CONFIG_PATH=/config +volumes: + - /your/path/config.json:/config/config.json +``` + | Key | Type | Default | Description | |-----|------|---------|-------------| | `cloudflare` | array | required | List of zone configurations |