Revert "Specify sslmode in Cloud Foundry environment variables"

This commit is contained in:
Toby Lorne
2020-11-09 12:04:40 +00:00
committed by GitHub
parent eb072ce5ba
commit 31f845bbff
2 changed files with 2 additions and 38 deletions

View File

@@ -14,12 +14,7 @@ def extract_cloudfoundry_config():
def set_config_env_vars(vcap_services):
# Postgres config
db_uri = vcap_services['postgres'][0]['credentials']['uri']
sep = "&" if "?" in db_uri else "?"
db_uri += sep + "sslmode=verify-full"
os.environ['SQLALCHEMY_DATABASE_URI'] = db_uri
os.environ['SQLALCHEMY_DATABASE_URI'] = vcap_services['postgres'][0]['credentials']['uri']
vcap_application = json.loads(os.environ['VCAP_APPLICATION'])
os.environ['NOTIFY_ENVIRONMENT'] = vcap_application['space_name']