Fastcgi_param equivalent

That fastcgi_param's behaviour is already what Caddy does.

You haven’t said what the problem actually is, so I can’t help any further without more information.