mirror of
https://github.com/balkian/lab-in-a-box.git
synced 2024-11-23 23:52:28 +00:00
10 lines
245 B
Bash
Executable File
10 lines
245 B
Bash
Executable File
#!/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;'
|