TrueBlocks / trueblocks-dappnode

TrueBlocks DAppNode package
GNU General Public License v3.0
2 stars 3 forks source link

Open issues/questions #7

Open tjayrush opened 1 year ago

tjayrush commented 1 year ago
  1. How do I SSH into the dAppNode machine because I want to short circuit the development process of going through IPFS and the registry.
  2. How do I write a "configuration" tool
  3. How do I connect to the TrueBlocks API from the configuration tool?
  4. How do I connect to the TrueBlocks API tool from my desktop (I access dappnode.local to see the dashboard)
geleeroyale commented 1 year ago

1a - You SSH into it like you would into any other linux host ssh username@local_ip. To do anything meaningful you need to use the root user as your regular user can not be part of the sudoers file. 1b - The registry is unaffiliated with the DAppNode. Its a website that is operated by DAppNode

2 - Please be more specific, I have no clue what you mean 😅

3 - Same as 2

4 - Let me get back to you on this. I think you need to expose the API through the DAppNode package settings

tjayrush commented 1 year ago

1a. I understand. Just like my Digital Ocean boxes for example. But...I had to log in as root first so I could "install" my SSH public key. How do I do that?

  1. TrueBlocks needs certain configuration data. For example, endpoints for remote node endpoints for other chains (like Optimism for example). I want people who install TrueBlocks on their dAppNode to be able to interactively edit those configurations through some sort of "Configuration UI." This UI would be a React program and interact with the TrueBlocks API (which starts when the package starts). I'm just asking how that gets accomplished (the installation, not the development of the UI. I know how to do that.)

  2. Ignore 3. It's basically the same as 2.

  3. Once the TrueBlocks package is installed, it starts two things: (1) an API, and (2) a "scraper." The scraper builds the Unchained Index. The scraper needs to be configured (see item 2). The API should be available to end users from their desktops. I'm asking how do my end users access the API?

geleeroyale commented 1 year ago

1) To ssh into your box you need to call ssh username@ipaddress

once connected you have to assume the identity of the root user by calling: su root - you will be prompted for your root user password and then you are dropped into a shell as root. You can not directly log in as the root user due to security constraints.

2) We can expose a bunch of config parameters to the DAppNode frontend that can be changed by the user any time - see

image

4) The API is exposed at port 8085 - I can reach my TrueBlocks instance from other computers in my home network by using: dappnode_IP:8085

image
tjayrush commented 1 year ago

Thanks so much for this. I understand. Just one thing I'm missing...for (1)...

How can I ssh username@ipaddress into a machine if I've not already put my public key on that machine? Won't ssh disallow that?