Closed ryutaaoki closed 3 years ago
If you don't match the port on the host side of the IPFS-API module with the one on the container side, the connection will be refused via Proxy (Nginx) and a 502 error will be returned to the client.
Created branch for reproduction of this issue. You can confirm it with "make start; make test"
https://github.com/makuhari-city/rousseau-machine/tree/feature/issue_2
It's fixed by following modifications. https://github.com/makuhari-city/the-mouth-of-truth/commit/6899264007f46b9ccf72f35b1fcb1de4f0c8cd70 https://github.com/makuhari-city/the-mouth-of-truth/commit/9e7450b7b34a10db95aed1b3e38eabc721d36462
FYI https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach/63112795#63112795
If you don't match the port on the host side of the IPFS-API module with the one on the container side, the connection will be refused via Proxy (Nginx) and a 502 error will be returned to the client.