Skip to content

Conversation

vnxme
Copy link
Contributor

@vnxme vnxme commented Sep 11, 2024

This is an implementation of sni_regexp matcher requested in mholt/caddy-l4#241.

Example syntax:

{
	layer4 {
		:8443 {
			@test tls sni_regexp ^(one|two)\\.example\\.com$
			route @test {
				proxy {tls.regexp.1}.internal:443
			}
		}
	}
}

Disclaimer: I haven't tested it extensively, so it's subject to feedback of the requestors.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for this contribution!

@mholt mholt merged commit 2d12fb7 into caddyserver:master Sep 12, 2024
30 of 33 checks passed
@vnxme vnxme deleted the caddytls-sni-regexp branch January 27, 2025 11:13
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.

2 participants