diff --git a/images/n8n/docker-entrypoint.sh b/images/n8n/docker-entrypoint.sh index fa81b37..64f0a58 100755 --- a/images/n8n/docker-entrypoint.sh +++ b/images/n8n/docker-entrypoint.sh @@ -8,6 +8,14 @@ fi chown -R node /home/node +# Check if custom certificates are provided +if [ -d /opt/custom-certificates ]; then + echo "Trusting custom certificates from /opt/custom-certificates." + export NODE_OPTIONS=--use-openssl-ca $NODE_OPTIONS + export SSL_CERT_DIR=/opt/custom-certificates + c_rehash /opt/custom-certificates +fi + if [ "$#" -gt 0 ]; then # Got started with arguments exec su-exec node "$@"