Skip to content

Instantly share code, notes, and snippets.

@rngadam
Created July 28, 2024 15:05
Show Gist options
  • Save rngadam/50bcd1417614692f67b06b1a9fdaf2d0 to your computer and use it in GitHub Desktop.
Save rngadam/50bcd1417614692f67b06b1a9fdaf2d0 to your computer and use it in GitHub Desktop.

Install tails server

OS-level CLI

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

Docker container:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment