Access wallet remotely

Accessing wallet remotely is disabled by default: Host UI is accessible from localhost only by default, if user changes the binding IP from localhost ( to the NIC's IP or in config file, then visit Host UI from remote, wallet related functions on Host UI would fail to work by default.

To allow remote access to wallet, set ENABLE_WALLET_REMOTE environment variable to true before running daemon.

btfs daemon

Note: to access Host UI correctly from remote, it's also needed to config two CSRF settings using the following commands (change Public_IP accordingly):
btfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://Public_IP:5001", ""]'
btfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'