  "SECRET_KEY": "{{ OPENEDX_SECRET_KEY }}",
  "AWS_ACCESS_KEY_ID": "{{ OPENEDX_AWS_ACCESS_KEY }}",
  "AWS_SECRET_ACCESS_KEY": "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}",
  {{ patch("openedx-auth", separator=",\n", suffix=",")|indent(2) }}
  "XQUEUE_INTERFACE": {
    "django_auth": null,
    "url": null
  },
  "CONTENTSTORE": { 
    "ENGINE": "xmodule.contentstore.mongo.MongoContentStore",                       
    "DOC_STORE_CONFIG": {                                                           
      "host": "{{ MONGODB_HOST }}",
      "port": {{ MONGODB_PORT }},
      {% if MONGODB_USERNAME and MONGODB_PASSWORD %}
      "user": "{{ MONGODB_USERNAME }}",
      "password": "{{ MONGODB_PASSWORD }}",
      {% endif %}
      "db": "{{ MONGODB_DATABASE }}"
    } 
  },  
  "DOC_STORE_CONFIG": {
    "host": "{{ MONGODB_HOST }}",
    "port": {{ MONGODB_PORT }},
    {% if MONGODB_USERNAME and MONGODB_PASSWORD %}
    "user": "{{ MONGODB_USERNAME }}",
    "password": "{{ MONGODB_PASSWORD }}",
    {% else %}
    "user": null,
    "password": null,
    {% endif %}
    "db": "{{ MONGODB_DATABASE }}"
  },
  "DATABASES": {
    "default": {
      "ENGINE": "django.db.backends.mysql",
      "HOST": "{{ MYSQL_HOST }}",
      "PORT": {{ MYSQL_PORT }},
      "NAME": "{{ OPENEDX_MYSQL_DATABASE }}",
      "USER": "{{ OPENEDX_MYSQL_USERNAME }}",
      "PASSWORD": "{{ OPENEDX_MYSQL_PASSWORD }}",
      "ATOMIC_REQUESTS": true,
      "OPTIONS": {
        "init_command": "SET sql_mode='STRICT_TRANS_TABLES'"
      }
    }
  },
  "EMAIL_HOST_USER": "{{ SMTP_USERNAME }}",
  "EMAIL_HOST_PASSWORD": "{{ SMTP_PASSWORD }}"