roadrunner icon indicating copy to clipboard operation
roadrunner copied to clipboard

[💡 FEATURE REQUEST]: Allow defaults in env var expansion of server.env config

Open devnev opened this issue 1 year ago • 2 comments

Plugin

Server

I have an idea!

The current handling of server.env configuration does a plain os.Expand(_, os.Getenv()). Unlike other parts of the roadrunner config, this doesn't allow for defaults in the form ${ENV:-default}.

It would be great to allow defaults, or even go one step further and use https://github.com/drone/envsubst both here and in the general configuration for some more advanced substitution options.

devnev avatar Aug 16 '24 23:08 devnev