mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-06-03 11:40:02 +02:00
fix docker-entrypoint with no cache relay
This commit is contained in:
parent
9fa2ae472b
commit
2be85b012d
@ -2,9 +2,7 @@
|
||||
set -e
|
||||
|
||||
CACHE_RELAY_PROXY=""
|
||||
if [ -z ${CACHE_RELAY+x} ]; then
|
||||
echo "No cache relay set"
|
||||
else
|
||||
if [ -n "$CACHE_RELAY" ]; then
|
||||
echo "Cache relay set to $CACHE_RELAY"
|
||||
sed -i 's/CACHE_RELAY_ENABLED = false/CACHE_RELAY_ENABLED = true/g' /usr/share/nginx/html/index.html
|
||||
CACHE_RELAY_PROXY="
|
||||
@ -12,6 +10,8 @@ else
|
||||
proxy_pass http://$CACHE_RELAY/;
|
||||
}
|
||||
"
|
||||
else
|
||||
echo "No cache relay set"
|
||||
fi
|
||||
|
||||
CONF_FILE="/etc/nginx/conf.d/default.conf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user