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

+1 -7
View File
@@ -20,7 +20,6 @@ RUN apt-get update && \
tini \
curl \
ca-certificates \
git \
&& \
rm -rf /var/lib/apt/lists/*
@@ -30,11 +29,6 @@ WORKDIR /app
COPY --from=builder --chown=10001:10001 /app ./
RUN cp /app/docker/openssl.cnf /etc/ssl/openssl.cnf
ENV OPENSSL_CONF=/etc/ssl/openssl.cnf
ENV NODE_OPTIONS="--dns-result-order=ipv4first --tls-max-v1.2 --openssl-shared-config"
RUN chmod +x docker/docker-entrypoint.sh && \
mkdir -p /app/storage && chown -R 10001:10001 /app
@@ -47,4 +41,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
ENTRYPOINT ["/usr/bin/tini", "--", "/app/docker/docker-entrypoint.sh"]
CMD ["npm", "start"]
CMD ["node", "index.mjs"]
-3
View File
@@ -5,7 +5,6 @@ services:
dockerfile: docker/Dockerfile
container_name: remix-bot
restart: unless-stopped
command: npm start
depends_on:
mysql:
condition: service_healthy
@@ -18,8 +17,6 @@ services:
- ../storage:/app/storage
environment:
- TZ=${TZ:-UTC}
- OPENSSL_CONF=/etc/ssl/openssl.cnf
- NODE_OPTIONS=--dns-result-order=ipv4first --tls-max-v1.2 --openssl-shared-config
ports:
- "${WEB_PORT:-8080}:80"
networks:
-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 "$@"
-14
View File
@@ -1,14 +0,0 @@
nodejs_conf = openssl_init
openssl_conf = openssl_init
[openssl_init]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
MinProtocol = TLSv1.2
MaxProtocol = TLSv1.2
Options = UnsafeLegacyRenegotiation, UnsafeLegacyServerConnect
CipherString = DEFAULT:@SECLEVEL=1