You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an entry point script that derives a path and then uses sed to write it into my nginx config.
I recently moved this over to a script in /docker-entrypoint.d. Then I noticed that there is the envsubst script, which maybe I could re-use instead of sed.
However, there is no way for my earlier entry point script to set an environment variable that gets picked up by the envsubst script.
Any thoughts on how this could be accomplished? For instance, I could append to a .env file that gets source'd. I'm also willing to concede it might be overly complicated to try to make such a thing work.