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=trueConnect 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 personalCreate Caddyfile
lto.banteg.xyz {
basicauth / username your_secret_password
proxy / 127.0.0.1:6869
}
Run the server from the same directory
caddyOpen <your_node_ip> in the browser.