Controlling caddy proxy target using a cookievalue?

hello andybody,how can I set proxy Destination address by cookievalue?
The Cookievalue is dynamic and uncertain!

I try this:
https://www.aaa.com
{
proxy / {~cookievalue} {
policy random
max_conns 0
keepalive 10
timeout 5s
}
tls admin@aaa.com
}

but,It is error!
can you help me!!!

This topic was automatically closed after 30 days. New replies are no longer allowed.