Nick Janetakis nickjanetakis.com

Using `envsubst` to merge environment variables into config files  ↦

Nick told us about this on our modern Unix tooling episode, but I thought I’d link up his excellent writeup/video on the subject for those who had a hard time following with audio only.

Let’s say you have an nginx or Kubernetes config file which doesn’t support templating out of the box and you want to dynamically create config files based on 1 or more environment variables. This is what envsubst lets you do.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00