mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
docker: add entrypoint script + env var for configuring
This commit is contained in:
parent
139f5c8c90
commit
1c74bd1196
4 changed files with 14 additions and 0 deletions
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;"
|
Loading…
Add table
Add a link
Reference in a new issue