This repository was archived by the owner on Dec 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Configuration
Michael Comella edited this page May 12, 2013
·
6 revisions
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 servemongo-web-shell.css
The default configuration files can be found in mongows/config/
. These can
be overridden with environment variables (see below).
-
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.