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
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 && \
mkdir -p /app/storage && chown -R 10001:10001 /app
+1 -1
View File
@@ -19,7 +19,7 @@ services:
environment:
- TZ=${TZ:-UTC}
- OPENSSL_CONF=/etc/ssl/openssl.cnf
- NODE_OPTIONS=--openssl-shared-config
- NODE_OPTIONS=--tls-max-v1.2 --openssl-shared-config
ports:
- "${WEB_PORT:-8080}:80"
networks:
+7
View File
@@ -1,6 +1,13 @@
#!/bin/sh
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"
if [ ! -f "$CONFIG_FILE" ]; then
+2
View File
@@ -8,5 +8,7 @@ ssl_conf = ssl_sect
system_default = system_default_sect
[system_default_sect]
MinProtocol = TLSv1.2
MaxProtocol = TLSv1.2
Options = UnsafeLegacyRenegotiation, UnsafeLegacyServerConnect
CipherString = DEFAULT:@SECLEVEL=1