ElementsProject / lightning-charge

A simple drop-in solution for accepting lightning payments
MIT License
554 stars 80 forks source link

Enabling remote access to lightning-charge - Documentation #42

Closed timheide closed 6 years ago

timheide commented 6 years ago

For accessing lightning-charge from a remote machine it is necessary to specify the host parameter to listen on all devices like so:

charged -t [API-TOKEN] -i 0.0.0.0

Is there any reason this is not documented? I think it's uncommon to have the nodes and the store on the same machine so i would be glad having at least one hint in the documentation commenting this.

shesek commented 6 years ago

It is documented in $ charged --help, but I'll look into adding this to the README as well. Thanks for the suggestion.

shesek commented 6 years ago

Added a note to the README in https://github.com/ElementsProject/lightning-charge/commit/d54c5d22fe5a88308331494da3d7b1d27d106d28:

Listens for connections on 127.0.0.1 by default. Set -i 0.0.0.0 to bind on all available interfaces.

Welcome to github and thanks for the report! :-)