We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e177b4 commit 6af9b56Copy full SHA for 6af9b56
nginx-envsubst.sh
@@ -1,3 +1,5 @@
1
#!/bin/sh
2
3
-exec envsubst "$(printf '${%s} ' $(env | cut -d= -f1))"
+for template in $(find /etc/nginx -name '*.conf.template'); do
4
+ envsubst "$(printf '${%s} ' $(env | cut -d= -f1))" < $template > ${template%.template}
5
+done
0 commit comments