Skip to content

Instantly share code, notes, and snippets.

@banteg
Last active January 23, 2019 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banteg/74ca8da06f5ba772c9eccacfc4ad5f9c to your computer and use it in GitHub Desktop.
Save banteg/74ca8da06f5ba772c9eccacfc4ad5f9c to your computer and use it in GitHub Desktop.

How to access LTO node dashboard/API

To enable API in the docker-compose.yml, add these lines to the envoronment section:

      - LTO_API_KEY=your super secret password
      - LTO_ENABLE_REST_API=true

Access the node using SSH tunnel

Connect to your node and and create a tunnel.

ssh -L 6869:127.0.0.1:6869 your_node_ip

If you are using Putty, look for this option under Connection / SSH / Tunnels.

Open http://127.0.0.1:6869 in the browser.

Or, expose the node using a webserver

Install Caddy server

CADDY_TELEMETRY=on curl https://getcaddy.com | bash -s personal

Create Caddyfile

lto.banteg.xyz {
  basicauth / username your_secret_password
  proxy / 127.0.0.1:6869
}

Run the server from the same directory

caddy

Open <your_node_ip> in the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment