n8n.io / start.sh
Heuehneje's picture
Upload 2 files
3cc52ba verified
raw
history blame contribute delete
353 Bytes
#!/bin/sh
# Start n8n in the background
n8n &
# Set ngrok auth token
ngrok authtoken $NGROK_AUTH_TOKEN
# Create ngrok tunnel to n8n port
ngrok http 5678 &
# Wait for ngrok to initialize
sleep 5
# Print the public URL
echo "n8n is now accessible at:"
curl -s localhost:4040/api/tunnels | jq -r '.tunnels[0].public_url'
# Keep container running
wait