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