mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-18 11:32:30 +02:00
fix docker-entrypoint with no cache relay
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user