mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
Revert "Specify sslmode in Cloud Foundry environment variables"
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user