{"id":15064740,"url":"https://github.com/imzlh/cloudflare-njs-ddns","last_synced_at":"2026-01-02T21:50:57.605Z","repository":{"id":251733123,"uuid":"838280306","full_name":"imzlh/cloudflare-njs-ddns","owner":"imzlh","description":"Cloudflare DDNS impl for Nginx-NJS","archived":false,"fork":false,"pushed_at":"2024-08-05T10:28:11.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T10:14:41.052Z","etag":null,"topics":["cloudflare","ddns-updater","nginx","njs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imzlh.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-05T10:18:02.000Z","updated_at":"2024-08-05T10:27:58.000Z","dependencies_parsed_at":"2024-08-05T12:15:28.779Z","dependency_job_id":"2d616815-4cf7-473f-9b39-2be2f7506c69","html_url":"https://github.com/imzlh/cloudflare-njs-ddns","commit_stats":null,"previous_names":["imzlh/cloudflare-njs-ddns"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imzlh%2Fcloudflare-njs-ddns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imzlh%2Fcloudflare-njs-ddns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imzlh%2Fcloudflare-njs-ddns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imzlh%2Fcloudflare-njs-ddns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imzlh","download_url":"https://codeload.github.com/imzlh/cloudflare-njs-ddns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790999,"owners_count":20348385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","ddns-updater","nginx","njs"],"created_at":"2024-09-25T00:25:52.172Z","updated_at":"2026-01-02T21:50:57.575Z","avatar_url":"https://github.com/imzlh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CFDDNS-njs\r\nUse your NGINX to auto update your domain record!\u003cbr\u003e\r\nEasy-to-use, single-file, full NJS feature!\r\n\r\nadd this to your custom nginx.conf\r\n\r\n    js_import           ddns from cfddns.js;\r\n    js_shared_dict_zone zone=njs:1m type=string;\r\n    location @ddns{\r\n        js_var          $ddns_cf_token          \"[CloudFlare API Token]\";\r\n        js_var          $ddns_cf_domain         \"[domain, for example: imzlh.top]\";\r\n        js_var          $ddns_cf_record_name    \"[full domain, for example: cloud.imzlh.top]\";\r\n        js_var          $ddns_cf_record_type    \"[AAAA for ipv6, A for ipv4]\";\r\n        js_var          $ddns_ipapi             \"[https://6.ipw.cn for ipv6, https://4.ipw.cn for ipv4]\";\r\n        js_var          $ddns_cache             njs.cfddns;\r\n        js_periodic     ddns.main               interval=60s;\r\n    }\r\n\r\nAnd then, your ddns WORKS!\r\n\r\n    2024/08/05 18:16:30 [info] 2779#0: js: Cache miss for imzlh.top\r\n    2024/08/05 18:16:33 [info] 2779#0: js: No need to update cloud.imzlh.top.imzlh.top (AAAA) to 2409:...\r\n\r\nIf you want to know status, just add it to `nginx.conf` and visit `/@ddns`:\r\n\r\n    location = /@ddns{\r\n        js_var                  $ddns_cache     \"njs.cfddns\";\r\n        js_content              ddns.status;\r\n    }","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimzlh%2Fcloudflare-njs-ddns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimzlh%2Fcloudflare-njs-ddns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimzlh%2Fcloudflare-njs-ddns/lists"}