old_contents: # Copyright (c) 2017 Quilt Data, Inc. All rights reserved.
  
  """
  Config file for prod/stage. Overrides values in config.py.
  """
  import os
  
  SQLALCHEMY_DATABASE_URI = os.environ['SQLALCHEMY_DATABASE_URI']
  
  REGISTRY_URL = os.environ['REGISTRY_URL']
  CATALOG_HOST = os.environ['CATALOG_HOST']
  
  CATALOG_URL = 'https://%s' % CATALOG_HOST
  
  PACKAGE_BUCKET_NAME = os.environ['PACKAGE_BUCKET_NAME']
  
  MAIL_SERVER = os.environ['SMTP_HOST']
  MAIL_USERNAME = os.environ['SMTP_USERNAME']
  MAIL_PASSWORD = os.environ['SMTP_PASSWORD']
  
  # Optional
  MIXPANEL_PROJECT_TOKEN = os.getenv('MIXPANEL_PROJECT_TOKEN')
  DEPLOYMENT_ID = os.getenv('DEPLOYMENT_ID')
  STRIPE_SECRET_KEY = os.getenv('STRIPE_SECRET_KEY')
  ENABLE_USER_ENDPOINTS = bool(os.getenv('ENABLE_USER_ENDPOINTS', ''))
  
  SECRET_KEY = os.environ['QUILT_SECRET_KEY']
  
  DEFAULT_SENDER = os.environ['QUILT_DEFAULT_SENDER']
  
new_contents: # Copyright (c) 2017 Quilt Data, Inc. All rights reserved.
  
  """
  Config file for prod/stage. Overrides values in config.py.
  """
  import os
  
  SQLALCHEMY_DATABASE_URI = os.environ['SQLALCHEMY_DATABASE_URI']
  
  REGISTRY_URL = os.environ['REGISTRY_URL']
  
  CATALOG_URL = os.environ['CATALOG_URL']
  if not CATALOG_URL.startswith("https"):
      print("WARNING: INSECURE CONNECTION TO CATALOG")
      # require verbose environment variable to be defined
      assert os.environ['ALLOW_INSECURE_CATALOG_ACCESS']
  
  PACKAGE_BUCKET_NAME = os.environ['PACKAGE_BUCKET_NAME']
  
  MAIL_SERVER = os.environ['SMTP_HOST']
  MAIL_USERNAME = os.environ['SMTP_USERNAME']
  MAIL_PASSWORD = os.environ['SMTP_PASSWORD']
  
  # Optional
  MIXPANEL_PROJECT_TOKEN = os.getenv('MIXPANEL_PROJECT_TOKEN')
  DEPLOYMENT_ID = os.getenv('DEPLOYMENT_ID')
  STRIPE_SECRET_KEY = os.getenv('STRIPE_SECRET_KEY')
  ENABLE_USER_ENDPOINTS = bool(os.getenv('ENABLE_USER_ENDPOINTS', ''))
  
  SECRET_KEY = os.environ['QUILT_SECRET_KEY']
  
  DEFAULT_SENDER = os.environ['QUILT_DEFAULT_SENDER']
  
subject: Allow insecure catalog connection with extra environment variable (#708)