Closed rpcross closed 2 weeks ago
I am not familiar with the $${keepempty} usage in nginx conf.
This is a convention we're using to get around quoting issues. The issue is that kustomize does not support environment variable substitution, so we run its output through envsubst
to do that for us. That will strip out any strings like $whatever
, and the nginx conf needs those. The $${keepempty}whatever
reduces down to $whatever
in this process. The "keepempty" could be any string that's not an actual environment variable.
This may go away as we refactor how we deal with config / secrets in k8s as we might not need the envsubst
step any more.
I based this on Datatracker nginx setup. Does this look good for mail archive? I am not familiar with the $${keepempty} usage in nginx conf.