Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow routing to wildcard subdomains #45

Merged
merged 1 commit into from
Oct 6, 2024
Merged

Conversation

kevinmcconnell
Copy link
Collaborator

@kevinmcconnell kevinmcconnell commented Oct 5, 2024

This allows routing to wildcard subdomains by specifying a target like:

--target=*.example.com

This matches requests to hosts with any subdomain in place of the *. It does not match multiple levels of subdomain to a single *, nor are multiple * allowed in a single host. Rather it behaves much like the wildcard matching in TLS certificates does.

Automatic TLS is not currently supported with wildcard hosts (because the challenge types we use -- http-01 and tls-alpn-01 -- can't be used to generate wildcard certificates). However you can bring your own wildcard certificates using --tls-certificate-path / --tls-private-key-path.

cc @djmb

Closes #30

This allows routing to wildcard subdomains by specifying a target like:

    --target=*.example.com

This matches requests to hosts with any subdomain in place of the `*`.
It does *not* match multiple levels of subdomain, nor are multiple `*`
allowed in a single host; it behaves much like wildcard matching in TLS
certificates.

Automatic TLS is not currently supported with wildcard hosts (because
the challenge types we use -- `http-01` and `tls-alpn-01` -- can't be
used to generate wildcard certificates). However you can bring your own
wildcard certificates using `--tls-certificate-path` /
`--tls-private-key-path`.
@kevinmcconnell kevinmcconnell merged commit 719726d into main Oct 6, 2024
1 check passed
@kevinmcconnell kevinmcconnell deleted the wildcard-subdomains branch October 6, 2024 02:12
@kevinmcconnell kevinmcconnell mentioned this pull request Oct 6, 2024
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.

Wild card domains
1 participant