n8n/docker/images/n8n/docker-entrypoint.sh
कारतोफ्फेलस्क्रिप्ट™ 6059722fbf
feat(core): Allow using a custom certificates in docker containers (#8705)
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
2024-05-14 17:20:21 +02:00

16 lines
384 B
Bash
Executable file

#!/bin/sh
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 n8n "$@"
else
# Got started without arguments
exec n8n
fi