1
0
mirror of https://github.com/balkian/lab-in-a-box.git synced 2024-11-24 08:02:27 +00:00
lab-in-a-box/gitlab-selfhosted/nginx/init.sh

10 lines
245 B
Bash
Raw Permalink Normal View History

2018-05-20 18:14:00 +00:00
#!/bin/sh
cd /etc/nginx/conf.d/
VARIABLES='${HUB_INTERNAL}${DOMAIN}${LAB_INTERNAL}${REGISTRY_INTERNAL}'
for i in *.template; do
target=$(basename $i ".template")
envsubst $VARIABLES < $i > $target;
done || exit 1
nginx -g 'daemon off;'