-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make plebbit options more similar to plebbit-js plebbit options #6
Comments
Are you referring to the command There should be a way to set chainProviders for the daemon though. Maybe something like
|
We should allow setting array values via flags without having to declare the flag multiple times, ie |
I like having |
well isnt ipfsApiPort used by the plebbit-cli process to launch kubo? if you launch kubo, you're always on localhost. if you want to use a remote kubo node, why not just set --plebbitOptions.ipfsHttpClientsOption "http://remotekubonode"? |
A user may want kubo to listen on
I agree we should be doing that. Although if a user provides both
|
true I didnt think about that, since kubo supports putting a full IP in the config, we should also support it so that the settings are just passed from plebbit-cli to kubo directly |
we should change it to --ipfsGatewayUrl since kubo also supports setting a full URL |
seems fine |
we can't use RpcApi imo, it has to be API or RPC, not both. and since we already called it plebbit rpc everywhere, and that it's a websocket json rpc, not a rest api like kubo, we should probably call it plebbitRpcUrl, and since rpc-websockets accepts a "host" param, we could use pass the plebbitRpcUrl to the host field, though this could be buggy, like it might block requests that use name.com as "host" even though the user meant to accept them, so maybe we should not use the "host" param yet. |
Actually maybe we should have it include ip version as well. Because you do have to specify it in kubo config. This is how I'm setting API url:
IMO it should default to |
The current API is:
Wouldn't it be better if the API was more consistent with plebbit-js. ie:
I would make them singuar, but allow passing more than 1. e.g.:
For chainProviders we could handle multiple URLs with:
I'm not sure how we would handle ipfsHttpClientOptions as options, maybe we dont allow it, or maybe we do:
or
The text was updated successfully, but these errors were encountered: