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

Can support Dynamic upstreams ? #117

Open
New2Niu opened this issue Apr 23, 2023 · 2 comments
Open

Can support Dynamic upstreams ? #117

New2Niu opened this issue Apr 23, 2023 · 2 comments

Comments

@New2Niu
Copy link

New2Niu commented Apr 23, 2023

{
"apps": {
"layer4": {
"servers": {
"example": {
"listen": [":443"],
"routes": [{
"match": [{
"tls": {
"sni": ["*.google.com.hk"]
}
}],
"handle": [{
"handler": "proxy",
"dynamic_upstreams": {
"dial_timeout": 10000000000,
"name": "{sni}",
"port": "443",
"source": "a"
}
}]
}]
}
}
}
}
}
when i config wildcard tls sni, handler can support dynamic_upstreams?

@francislavoie
Copy link
Sponsor Collaborator

The proxy handler in caddy-l4 is a completely separate piece of code from vanilla Caddy's reverse_proxy. So no, it's not supported right now. But it probably could be. PRs welcome.

@New2Niu
Copy link
Author

New2Niu commented Apr 23, 2023

The proxy handler in caddy-l4 is a completely separate piece of code from vanilla Caddy's reverse_proxy. So no, it's not supported right now. But it probably could be. PRs welcome.

nice

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

No branches or pull requests

2 participants