Skip to content

Add support for configuring domains starting with a number via environment variables (by using _ prefix)#3414

Open
ppenguin wants to merge 2 commits intobunkerity:devfrom
ppenguin:add-numbered-envvars
Open

Add support for configuring domains starting with a number via environment variables (by using _ prefix)#3414
ppenguin wants to merge 2 commits intobunkerity:devfrom
ppenguin:add-numbered-envvars

Conversation

@ppenguin
Copy link
Copy Markdown

@ppenguin ppenguin commented Apr 6, 2026

Closes #1857

Allows prefixing environment variables with _ with the main purpose to allow (v)host/domain names starting with a number (e.g. 1mthe1.org -> _1mthe1.org_USE_LETS_ENCRYPT_WILDCARD="yes").

The _ prefix has been removed from the exclude prefixes list, but the _ prefix is stripped from the variable name(s) as early as possible, so all further logic handles the server names etc. unchanged, i.e. as 1mthe1.org in this example.

Also adds NOMAD_ to the exluded prefixes list to make startup in nomad deployments less noisy.

To support domains starting with a number configured through env vars,
we need to prefix them with _ and allow such variables to be handled for
config generation.

fix env var strip
@ppenguin ppenguin changed the base branch from master to dev April 6, 2026 14:50
Copy link
Copy Markdown
Member

@TheophileDiot TheophileDiot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TheophileDiot TheophileDiot added the enhancement New feature or request label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] handle domain names starting with a number via env var prefix

3 participants