makuhari-city / new-rousseau-machine_gen1

https://vote.metacity.jp/app/
4 stars 0 forks source link

Accessing the IPFS API via Proxy (Nginx) returns 502 error. #2

Closed ryutaaoki closed 3 years ago

ryutaaoki commented 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.

ryutaaoki commented 3 years ago

Created branch for reproduction of this issue. You can confirm it with "make start; make test"

ryutaaoki commented 3 years ago

https://github.com/makuhari-city/rousseau-machine/tree/feature/issue_2

ryutaaoki commented 3 years ago

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

ryutaaoki commented 3 years ago

FYI https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach/63112795#63112795