iotaledger / node-docker-setup

Docker setup files to spin up IOTA/Shimmer nodes with a breeze.
12 stars 16 forks source link

Cannot invoke API /api/core/v2/info via public IP #41

Closed trungtt198x closed 7 months ago

trungtt198x commented 7 months ago

This is the issue raised by Nirvana-labs as follows.

When following the instructions node-docker-setup, all work fine when invoking the API /api/core/v2/info However, when setting the NODE_HOST in .env with some public or private IP, then it's no longer possible to invoke the API. Some trial like exposing the port 14265 on the VM really help.

trungtt198x commented 7 months ago

Answer from DevOps is as follows.

The match rules match on hostnames/domains but not on IP: traefik.http.routers.wasp-dashboard.rule=Host(${NODE_HOST:-localhost})

To have the API accessible from outside, pls use HTTPS setup.