Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (13 sloc) 424 Bytes
#!/bin/bash
if [[ -z "$PORT" ]]; then
echo "You must add \"-e PORT=<some port>\" when running this" >&2
exit 1
fi
if [[ -z "$HOST" ]]; then
echo "No HOST provided, assuming boot2docker's IP: 192.168.59.103"
export HOST="192.168.59.103"
fi
/bin/sed -i "s/XXX_PORT_XXX/$PORT/" /etc/nginx/nginx.conf
/bin/sed -i "s/XXX_HOST_XXX/$HOST/" /etc/nginx/nginx.conf
echo "Accepting connections at $HOST:$PORT"
nginx