7 lines
199 B
Bash
7 lines
199 B
Bash
#!/bin/sh
|
|
set -e
|
|
: "${BACKEND_ORIGIN:=http://localhost:8082}"
|
|
envsubst '$BACKEND_ORIGIN' \
|
|
< /etc/nginx/conf.d/default.conf.template \
|
|
> /etc/nginx/conf.d/default.conf
|
|
exec nginx -g 'daemon off;' |