Skip to content

Make the certificate domain configurable#11

Open
DrNefarius wants to merge 1 commit into
luizbizzio:mainfrom
DrNefarius:configurable-domain
Open

Make the certificate domain configurable#11
DrNefarius wants to merge 1 commit into
luizbizzio:mainfrom
DrNefarius:configurable-domain

Conversation

@DrNefarius
Copy link
Copy Markdown

Summary
The server certificate hardcodes pi.hole as a SAN, which doesn't match setups that use a different local domain. This makes the domain configurable while defaulting to pi.hole, so existing installs are unaffected.

What changed

  • Configurable certificate domain, resolved in this order: LOCAL_HTTPS_DOMAIN env var → --domain flag (--install/--configure/--renew) → persisted state → Pi-hole's webserver.domain (auto-detected on fresh installs) → default pi.hole.

  • Interactive prompt during install/configure (pre-filled, skipped when set via env/flag or non-interactive).

  • Domain is persisted in state and shown in --status, so renewals reuse it.

  • install.sh forwards LOCAL_HTTPS_DOMAIN; README updated with a "Custom domain" section.

Notes

  • Backward compatible — default stays pi.hole; installs without a saved domain fall back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant