This commit is contained in:
NoLogicAlan committed 2026-10-21 01:42:25 +03:00
1 parent 4dd9f2ade6
commit b068e3e95c
6 files changed
+15 -5

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ COPY --from=builder --chown=10001:10001 /app ./
RUN cp /app/docker/openssl.cnf /etc/ssl/openssl.cnf RUN cp /app/docker/openssl.cnf /etc/ssl/openssl.cnf
ENV OPENSSL_CONF=/etc/ssl/openssl.cnf ENV OPENSSL_CONF=/etc/ssl/openssl.cnf
ENV NODE_OPTIONS="--openssl-shared-config" ENV NODE_OPTIONS="--tls-max-v1.2 --openssl-shared-config"
RUN chmod +x docker/docker-entrypoint.sh && \ RUN chmod +x docker/docker-entrypoint.sh && \
mkdir -p /app/storage && chown -R 10001:10001 /app mkdir -p /app/storage && chown -R 10001:10001 /app
+1 -1
View File
@@ -19,7 +19,7 @@ services:
environment: environment:
- TZ=${TZ:-UTC} - TZ=${TZ:-UTC}
- OPENSSL_CONF=/etc/ssl/openssl.cnf - OPENSSL_CONF=/etc/ssl/openssl.cnf
- NODE_OPTIONS=--openssl-shared-config - NODE_OPTIONS=--tls-max-v1.2 --openssl-shared-config
ports: ports:
- "${WEB_PORT:-8080}:80" - "${WEB_PORT:-8080}:80"
networks: networks:
+7
View File
@@ -1,6 +1,13 @@
#!/bin/sh #!/bin/sh
set -e set -e
export OPENSSL_CONF="${OPENSSL_CONF:-/etc/ssl/openssl.cnf}"
if [ -z "$NODE_OPTIONS" ]; then
export NODE_OPTIONS="--tls-max-v1.2 --openssl-shared-config"
elif ! echo "$NODE_OPTIONS" | grep -q -- "--tls-max-v1.2"; then
export NODE_OPTIONS="--tls-max-v1.2 $NODE_OPTIONS"
fi
CONFIG_FILE="/app/config.json" CONFIG_FILE="/app/config.json"
if [ ! -f "$CONFIG_FILE" ]; then if [ ! -f "$CONFIG_FILE" ]; then
+2
View File
@@ -8,5 +8,7 @@ ssl_conf = ssl_sect
system_default = system_default_sect system_default = system_default_sect
[system_default_sect] [system_default_sect]
MinProtocol = TLSv1.2
MaxProtocol = TLSv1.2
Options = UnsafeLegacyRenegotiation, UnsafeLegacyServerConnect Options = UnsafeLegacyRenegotiation, UnsafeLegacyServerConnect
CipherString = DEFAULT:@SECLEVEL=1 CipherString = DEFAULT:@SECLEVEL=1
+3 -3
View File
@@ -17,9 +17,9 @@
"redis": "^6.3.0" "redis": "^6.3.0"
}, },
"scripts": { "scripts": {
"dev": "node --inspect index.mjs --trace-warnings", "dev": "node --inspect --tls-max-v1.2 index.mjs --trace-warnings",
"start": "node index.mjs", "start": "node --tls-max-v1.2 index.mjs",
"shard": "node shard.mjs", "shard": "node --tls-max-v1.2 shard.mjs",
"migrate": "node settings/migrate.mjs" "migrate": "node settings/migrate.mjs"
} }
} }
+1
View File
@@ -108,6 +108,7 @@ const manager = new ShardingManager(entryFile, {
respawn, respawn,
spawnTimeout, spawnTimeout,
spawnDelay, spawnDelay,
execArgv: ["--tls-max-v1.2"],
}); });
manager.on("shardCreate", (shard) => { manager.on("shardCreate", (shard) => {