sudo snap install ngrok
After registering an Ngrok token
get auth token from: https://dashboard.ngrok.com/get-started/your-authtoken
get api key from : https://dashboard.ngrok.com/api
configuration:
ngrok config add-auth-token $AUTHTOKEN
ngrok config add-api-key $API_KEY
You can create a .env
file in the docker directory and supply your token with
NGROK_AUTHTOKEN=$AUTHTOKEN
NGROK_API_KEY=$API_KEY
test that you can get the tails server docker (docker ps):
curl http://172.19.0.2:4040/api/tunnels
curl http://docker-ngrok-tails-server-1:4040/api/tunnels
run_demo specifying PUBLIC_TAILS_URL
(otherwise scripts tries to figure out based on docker name docker-ngrok-tails-server
but sometimes your docker container name might be docker-ngrok-tails-server-1
Running with revocation feature:
PUBLIC_TAILS_URL=$PUBLIC_TAILS_URL LEDGER_URL=http://test.bcovrin.vonx.io ./run_demo faber --revocation