<div dir="ltr"><div>Hi there, <br></div><div><br></div><div>I'm using Varnish in a Kubernetes cluster and my configuration needs to use environment variables.</div><div><br></div><div>More specifically, I'm trying to declare a `backend` with a `.host` whose value is an environment variable.</div><br><span style="font-family:monospace">backend b0 {<br>  .host = "<b>$ENVIRONMENT_VARIABLE_HOSTNAME</b>";<br>  .port = "80";<br>  .connect_timeout = 300s;<br>  .first_byte_timeout = 300s;<br>  .between_bytes_timeout = 300s;<br></span><div><span style="font-family:monospace">}<br></span></div><div><br></div><div>This doesn't work. It tried using the std.get_env() function but it doesn't work in this context.</div><div><br></div><div><b>Is there any way to use environment variables in VCL, or do I have to create a configuration template?</b><br></div><div><br></div><div>Thanks for your help,</div><div><br></div><div>Cheers,<br></div><div>-Hugues<br></div><div><span style="font-family:monospace"></span></div><br></div>