Skip to content

Instantly share code, notes, and snippets.

@banteg
Last active Jan 23, 2019
Embed
What would you like to do?

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