#!/bin/sh # Render the nginx config template with environment variables, then start nginx. set -e envsubst '${API_UPSTREAM}' < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/conf.d/default.conf exec nginx -g 'daemon off;'