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
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.
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.