20 lines
445 B
Bash
Executable File
20 lines
445 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "running startup"
|
|
|
|
if [ -z "$redirectTarget" ]; then
|
|
REDIRECT_TARGET="https://vnclagoon.com"
|
|
else
|
|
REDIRECT_TARGET="$redirectTarget"
|
|
fi
|
|
|
|
echo "redirect: $REDIRECT_TARGET"
|
|
|
|
export REDIRECT_TARGET
|
|
|
|
envsubst < /vnc/config/index.html.template > /etc/prosody/public/index.html
|
|
cat /vnc/config/status.html > /etc/prosody/public/status.html
|
|
|
|
|
|
/usr/local/bin/http-server /etc/prosody/public/ -p 8080 -r --proxy http://localhost:8080?
|