Skip to content

Instantly share code, notes, and snippets.

@ahmedbaig
Created September 4, 2022 05:58
Show Gist options
  • Save ahmedbaig/1dc5c6c56ede0ef3fcd34612d8ec15e9 to your computer and use it in GitHub Desktop.
Save ahmedbaig/1dc5c6c56ede0ef3fcd34612d8ec15e9 to your computer and use it in GitHub Desktop.
Runner cron script for Pi Surveillance Camera
authtoken: secret_key
region: au
tunnels:
ssh:
addr: 22
proto: tcp
web:
addr: 80
proto: http
ssl:
addr: 443
proto: http
pi-cam:
addr: 5000
proto: http
webi:
addr: 4040
proto: http
webmin:
addr: https://localhost:10000
proto: http
#!/bin/sh
cd ~/work/pi-camera
pm2 start main.py --interpreter=python3
ngrok start --all --log=stdout > ~/.ngrok2/ngrok.log &
sleep 10
tail -n10 ~/.ngrok2/ngrok.log | grep -Eo "(https)://[a-zA-Z0-9./?=_%:-]*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment