From 55d4b23d67ab0e244a2eaf4ada163ba148817125 Mon Sep 17 00:00:00 2001 From: Christos Arvanitis Date: Sat, 1 Feb 2025 18:34:55 +0100 Subject: [PATCH] Introduce N8N functionality to support custom certificates as per official documentation --- images/n8n/docker-entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 "$@"