docker: add entrypoint script + env var for configuring

This commit is contained in:
Kavin
2023-11-13 17:42:22 +00:00
parent 139f5c8c90
commit 1c74bd1196
4 changed files with 14 additions and 0 deletions

9
docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
if [ -z "$BACKEND_HOSTNAME" ]; then
echo "BACKEND_HOSTNAME not set"
exit 1
fi
sed -i s/pipedapi.kavin.rocks/"$BACKEND_HOSTNAME"/g /usr/share/nginx/html/assets/*
nginx -g "daemon off;"