def _get_connection_pool():
if DEBUG:
return urllib3.HTTPConnectionPool('127.0.0.1:8000')
else:
return urllib3.HTTPSConnectionPool(
'api.nivad.io',
cert_reqs='CERT_REQUIRED',
ca_certs=certifi.where()
)