Configure your Nano node to send data to the nano stream x - lukes/nano-stream-x GitHub Wiki
Your Nano node has a configuration file. This file is located in the following places:
OS | Where to find config.json |
---|---|
Linux | ~/RaiBlocks/config.json |
MacOS | ~/Library/RaiBlocks/config.json |
Windows | C:\Users\<user>\AppData\Local\RaiBlocks\config.json |
Set the following three properties in that file:
"callback_address": "::ffff:127.0.0.1", // Callback IP address, in sample IPv4 localhost
"callback_port": "3000", // Callback port
"callback_target": "/", // Callback target, in sample root of callback listening server
Restart your node to have the configuration changes take effect.
If you're using the nanocurrency/nano
docker container, you need to allow the container to POST out of the container and to the host machine's 127.0.0.1
address.
MacOS and Windows Docker
If you are using Docker-for-mac or Docker-for-Windows 18.03+, just set the callback_address
in config.json
(see above) to the following:
"callback_address": "host.docker.internal", // Callback IP address, in sample IPv4 localhost
Linux Docker
Unfortunately the above doesn't work yet for Docker-for-Linux. Instead you will need to use --net="host"
in your docker run command, then 127.0.0.1
in your docker container will point to your docker host.
Stop you nano container if it is running, then:
sudo docker run --net="host" -d -p 7075:7075/udp -p 7075:7075 -p [::1]:7076:7076 -v ~:/root nanocurrency/nano
If your node is not able to POST to the server, it will be logging errors.
OS | Where to find your logs |
---|---|
Linux | ~/RaiBlocks/logs |
MacOS | ~/Library/RaiBlocks/logs |
Windows | C:\Users\<user>\AppData\Local\RaiBlocks\logs |
Check that the settings in the node's config.json
(see above) match the host and port that nano-stream-x
says it running on when it starts up.
Check that you have configured things correctly if you're running the dockerized Nano container (see above).