
COURSEGRAPH_DUMP_COURSE_ON_PUBLISH = {{ COURSEGRAPH_DUMP_COURSE_ON_PUBLISH }}

COURSEGRAPH_CONNECTION = {
    "protocol": "bolt",     # Plugin only supports Bolt currently.
    "secure": False,        # Connection from CMS to Neo4j will not be encrypted.
    "user": "neo4j",        # Default Neo4j db user with full write access.
    "port": 7687,           # Canonical port for Bolt traffic.
  {% if COURSEGRAPH_RUN_NEO4J %}
    "host": "coursegraph",  # This works as a K8s-cluster-local or Docker-network-local hostname.
  {% else %}
    "host": "{{ COURSEGRAPH_NEO4J_HOST }}",  # Hostname of external Neo4j instance.
  {% endif %}
  {% if COURSEGRAPH_NEO4J_PASSWORD %}
    "password": "{{ COURSEGRAPH_NEO4J_PASSWORD }}",
  {% else %}
    "password": None,       # Neo4j authentication disabled.
  {% endif %}
}
