This commit is contained in:
NoLogicAlan committed 2026-10-21 02:13:09 +03:00
1 parent fbe052b9da
commit 2932f9110e
9 files changed
+24 -102

No files matched your search

-21
View File
@@ -1,13 +1,6 @@
#!/bin/sh
set -e
export OPENSSL_CONF="${OPENSSL_CONF:-/etc/ssl/openssl.cnf}"
if [ -z "$NODE_OPTIONS" ]; then
export NODE_OPTIONS="--dns-result-order=ipv4first --tls-max-v1.2 --openssl-shared-config"
elif ! echo "$NODE_OPTIONS" | grep -q -- "--dns-result-order=ipv4first"; then
export NODE_OPTIONS="--dns-result-order=ipv4first $NODE_OPTIONS"
fi
CONFIG_FILE="/app/config.json"
if [ ! -f "$CONFIG_FILE" ]; then
@@ -32,18 +25,4 @@ if [ "$1" = "node" ] && [ "$2" = "shard.mjs" ]; then
echo "[Docker] Starting Remix bot (sharded supervisor)..."
fi
if [ "$1" = "npm" ] && [ "$2" = "start" ]; then
echo "[Docker] Starting Remix bot (standard start)..."
fi
if [ "$1" = "npm" ] && [ "$2" = "run" ] && [ "$3" = "shard" ]; then
echo "[Docker] Starting Remix bot (sharded supervisor via npm run shard)..."
fi
echo "[Docker] Testing cluster egress IP and api.fluxer.app TLS connection..."
echo -n "[Docker] Cluster Public IP: "
curl -s -m 5 https://api.ipify.org || echo "Failed to get IP"
echo ""
curl -v -m 5 https://api.fluxer.app/v1/gateway/bot 2>&1 | head -n 25 || true
exec "$@"