0

Currently, I am trying to proxy connections to Mongodb Atlas via HAPRoxy. Based on some research it should be fairly trivial, but I am running in various issues ranging from mismatched certificates to server selection error.

Configuration looks something like this.

listen port_27017
  bind :27017
  mode tcp
  server mongodb-port <mongodb-replica-set>:27017

Since TLS is enabled in Mongodb Atlas by default. The proxy fails to connect and throws MongoServerSelectionError: Server selection timed out after 30000 ms

I am suspecting that it has to do with TLS being enabled.

debarshi
  • 327
  • 1
  • 11

0 Answers0