Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Configuration

Michael Comella edited this page May 12, 2013 · 6 revisions

Front-end

The web shell can be configured on a page-by-page basis through HTML 5 data-* attributes on the <script src='path/to/mongo-web-shell.js'> tag. The mongo.dom.retrieveConfig() function handles this retrieval. The attributes are as follows:

  • data-mws-host: The host/port to which queries to the mongo web shell resource should be made
  • data-css-path: The URI from which to serve mongo-web-shell.css

Back-end

The default configuration files can be found in mongows/config/. These can be overridden with environment variables (see below).

Environment Variables

  • DEBUG: Flask debug mode is enabled if this is set to any value but the empty string.
  • HOST: The host the Flask web server should listen on.
  • LOGGING_CONF: The path to a logging configuration file.
  • MONGOHQ_URL: The url of a running mongod instance.
  • NO_SAMPLE: Disables the the web shell sample (route: /sample/) if this set to any value but the empty string.
  • PORT: The port the web shell service should run on.