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:
proxy / {~cookievalue} {
policy random
max_conns 0
keepalive 10
timeout 5s

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

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