synechron-finlabs / quorum-maker

Utility to create and monitor Quorum nodes
Apache License 2.0
196 stars 97 forks source link

How to create rpc.excample.com endpoint? #105

Closed icinsight closed 5 years ago

icinsight commented 5 years ago

I'm trying to create an rpc endpoint to my chain. Using http://139.*.*.255:22000 (and 22100) works just fine, but I'd like to create a "round robin" endpoint that uses six nodes in three addresses.

I have exhausted my tricks, a combination of DNS records (A record for the subdomain rpc.example.com) and with or without SRV records, in addition to Apache virtual hosts configuration and "Listen 22000" statement in various config files.

One problem is that I don't know excatly what Quorum Maker does with http (is it running apache or something else?), and how much my configs are in conflict what happens with the node already.

icinsight commented 5 years ago

I took time to learn about Docker, UFW, and how to configure Nginx. Problem solved.

Lessons learned: 1: UFW and Docker won't work together. Firewalls must be above host level OR one must tewak ip-tables (not recommended). 2: Niginx is a way to go for a reverse proxy and beyond. Bye bye Apache.