11 lines
328 B
Bash
Executable File
11 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Exit immediately if a command exits with a non-zero status.
|
|
set -e
|
|
|
|
# Substitute environment variables in the nginx template
|
|
envsubst '${VITE_API_PROXY_TARGET}' < /etc/nginx/templates/nginx.conf.template > /etc/nginx/nginx.conf
|
|
|
|
# Execute the command passed to this script, e.g., "nginx -g 'daemon off;'"
|
|
exec "$@"
|