3

I didn't see any Eve documentation on connecting to multiple hosts or using ssl. Attempted to use some examples from pymongo but still no luck. I was however able to connect to the instance using only pymongo. Has anyone else dealt with this before?

# ENV: mongodb://<username>:<password>@aws-us-east-1-portal.28.dblayer.com:22986,aws-us-east-1-portal.29.dblayer.com:22986/admin?ssl=true

MONGO_URI = os.environ.get('MONGODB_URL', 'mongodb://localhost:27017/psgr')
MONGO_OPTIONS = {'connect': True, 'tz_aware': True, 'ssl_ca_certs': "./servercert.crt"}
CloudyHLS
  • 53
  • 3

0 Answers0