mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-08-06 18:54:01 +00:00
docker: add entrypoint script + env var for configuring
This commit is contained in:
9
docker/entrypoint.sh
Executable file
9
docker/entrypoint.sh
Executable 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;"
|
Reference in New Issue
Block a user