Skip to content

refactor: discover NextDNS sync targets from NEXTDNS_PROFILE_* variables - #28

Merged
bakerboy448 merged 2 commits into
mainfrom
chore/profile-config
Nov 22, 2026
Merged

bakerboy448 merged 2 commits into
mainfrom
chore/profile-config

Conversation

@bakerboy448

@bakerboy448 bakerboy448 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

TLDR

  • Sync targets are every NEXTDNS_PROFILE_* variable except NEXTDNS_PROFILE_MAIN, sorted by variable name, empty values skipped.
  • NEXTDNS_PROFILE_TAILNET keeps its special blocklist role.
  • The tailnet check record comes from NEXTDNS_TAILNET_CHECK_NAME; unset logs one warning and skips the check.
  • Site-specific names leave the code. README examples use NEXTDNS_PROFILE_SITE_A and example.com.
  • Target order does not change results: each profile is handled independently.
  • Tests: 6 pass locally (4 existing, 2 new for discovery and the unset check name).

🤖 Generated with Claude Code

bakerboy448 and others added 2 commits November 22, 2026 16:00
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Every NEXTDNS_PROFILE_* variable except MAIN is a target, sorted by name,
empty values skipped. Drops NEXTDNS_PROFILE_SYNC_IDS. An unset
NEXTDNS_TAILNET_CHECK_NAME logs one warning and skips the check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bakerboy448 bakerboy448 changed the title refactor: read NextDNS sync targets from one env var refactor: discover NextDNS sync targets from NEXTDNS_PROFILE_* variables Nov 22, 2026
@bakerboy448
bakerboy448 merged commit f7535df into main Nov 22, 2026
1 check passed
@bakerboy448
bakerboy448 deleted the chore/profile-config branch November 22, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant