-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dynamic proxy based on SNI #241
Comments
So basically the SNI matcher needs to support regex, I guess? Or a new |
That's one of the things. And the other, reference those attributes, so it can be "reused". Even better, if we're able to use basic functions like split or array acces, we could "construct" proxy destination from sni string. Something like:
Im not fluent in Go, but the idea is simple: regex on SNI for matching and then accessing what was matched (and if possible, manipulate/parse it) |
Hi! My 2 cents:
You may also implement your own |
I'm using something like this in my Caddyfile to perform SRV lookups to identify backends for HTTP: *.srv.example.com {
map {host} {consul_service} {
~(.*)\.srv\.example\.com$ "${1}.service.consul"
}
reverse_proxy {
dynamic srv {consul_service} {
resolvers "10.10.10.10"
}
}
} Being able to do the same for L4 would be amazing. |
I'm trying out the new 1. Unable to obtain matching results
2.
|
Hello.
Related to #240, there are any way to route traffic based on the SNI? For example:
Instead of static configuration like this:
Have the app routed directly based on the SNI. Maybe similar to this:
The idea behind is that there will be multiple instances of the app, and the client could route based on the SNI value. Im not sure how ports treatement could be possible (or regex/parser of the sni), but at least using the sni directly could reduce a lot the config redundancy.
The text was updated successfully, but these errors were encountered: