We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5b303f commit d2a134bCopy full SHA for d2a134b
1 file changed
docker/entrypoint-nginx.sh
@@ -20,6 +20,10 @@ else
20
NGINX_CONFIG="/etc/nginx/nginx.conf"
21
fi
22
23
+if ! ip -6 addr show dev lo | grep -q 'inet6 ::1'; then
24
+ sed -i '/listen \[::\]:/d' "$NGINX_CONFIG"
25
+fi
26
+
27
if [ "${NGINX_METRICS_ENABLED}" = true ]; then
28
sed -i "s/#stub_status/stub_status/g;" $NGINX_CONFIG
29
echo "Nginx metrics are enabled"
0 commit comments