From 96e1d095915c905c01acb8dcf6405f71c70b51db Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Thu, 14 Jul 2016 11:14:23 +0200 Subject: [PATCH] base64 nginx --- nginx-envtpl/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx-envtpl/entrypoint.sh b/nginx-envtpl/entrypoint.sh index c79ec09..1b78983 100755 --- a/nginx-envtpl/entrypoint.sh +++ b/nginx-envtpl/entrypoint.sh @@ -2,6 +2,8 @@ if [[ ! -z $NGINX_CONFIG_TEMPLATE ]]; then echo $NGINX_CONFIG_TEMPLATE | envtpl > /etc/nginx/nginx.conf +elif [[ ! -z $NGINX_CONFIG_TEMPLATE_B64 ]]; then + echo $NGINX_CONFIG_TEMPLATE_B64 | base64 --decode | envtpl > /etc/nginx/nginx.conf else envtpl /etc/nginx/nginx.conf.tpl fi