dbernald2's picture
add N8N_PROTOCOL=https and N8N_HOST — required for HF Spaces
a43585e verified
Raw
History Blame Contribute Delete
313 Bytes
#!/bin/sh
set -e
# Fix config file permissions (mirrors what the n8n entrypoint does)
if [ -f "${N8N_USER_FOLDER}/.n8n/config" ]; then
chmod 600 "${N8N_USER_FOLDER}/.n8n/config"
fi
# Start the auth proxy in the background
/usr/local/bin/node /proxy.js &
# Start n8n in the foreground
exec /usr/local/bin/n8n