Hi! I set up the clusters of IPFS with the docker compose guide (IPFS Cluster | IPFS Docs). In addition to that, I modified the docker-compose.yml, so that I have acces to the webUI in the server’s public ip.
When I try to send a file via command line, i can do it properly with:
curl -X POST -F file=‘settings.xml’ “http://IP-SERVER:5001/api/v0/add”
And that works perfectly.
But the problem is that when I try to use the ip direction with the IPFS address (to avoid the common http api) I’m not able to do it.
I have many addresses available in my cluster when I throw the command
“./ipfs-cluster-ctl peers ls”
I tried to use the following command with the different addresses and it didn’t work
“./ipfs add /home/augusto/file --host /ip4/SOME-IP/tcp/4001/p2p/SOME-ID/p2p-circuit/p2p/SOME-ID”
Which address should I use?
Should I edit the cluster config?
Should I edit a docker-compose config?
This is my ipfs0 image config
And in my cluster service.json config has the config
“api”: {
“ipfsproxy”: {
“listen_multiaddress”: “/ip4/0.0.0.0/tcp/9095”,
“node_multiaddress”: “/ip4/0.0.0.0/tcp/5001”,
“log_file”: “”,
“read_timeout”: “0s”,
“read_header_timeout”: “5s”,
“write_timeout”: “0s”,
“idle_timeout”: “1m0s”,
“max_header_bytes”: 4096
},
“pinsvcapi”: {
Thanks!!