#!/bin/bash export NGINX_PORT=${NGINX_PORT:-80} export NGINX_MAX_BODY_SIZE=${NGINX_MAX_BODY_SIZE:-1024m} export API_SERVER=${API_SERVER:-http://shuili-admin} envsubst '${NGINX_PORT},${NGINX_MAX_BODY_SIZE},${API_SERVER}' < nginx.conf.tmpl > /etc/nginx/nginx.conf nginx -t nginx -g "daemon off;"