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 (127.0.0.1) to the NIC's IP or 0.0.0.0 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.

export ENABLE_WALLET_REMOTE=true
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", "http://0.0.0.0:5001"]'
btfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'