Files
kmtnflower/docker-entrypoint.sh
T
2026-06-19 22:55:00 -07:00

9 lines
345 B
Bash

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