#!/bin/sh set -eu : "${GOVOPLAN_API_UPSTREAM:=http://load-balancer:8000}" export GOVOPLAN_API_UPSTREAM envsubst '${GOVOPLAN_API_UPSTREAM}' \ < /etc/nginx/nginx.conf.template \ > /tmp/nginx.conf exec nginx -c /tmp/nginx.conf -g 'daemon off;'