File size: 353 Bytes
3cc52ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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