Skip to content

Commit

Permalink
first try a single certificate, and then try a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Apr 29, 2024
1 parent 7b383e7 commit 1b6e04a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/images/n8n/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/sh
if [ -f /opt/custom-certificate.crt ]; then
echo "Custom certificates found."
echo "Custom certificate found."
export NODE_OPTIONS=--use-openssl-ca $NODE_OPTIONS
export SSL_CERT_FILE=/opt/custom-certificate.crt
elif [ -d /opt/custom-certificates ]; then
echo "Custom certificates directory found."
export NODE_OPTIONS=--use-openssl-ca $NODE_OPTIONS
export SSL_CERT_DIR=/opt/custom-certificates
fi

if [ "$#" -gt 0 ]; then
Expand Down

0 comments on commit 1b6e04a

Please sign in to comment.