Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Configuration

Daniel Patrick Foose edited this page Aug 28, 2019 · 1 revision

config.py contains configuration options. You will probably need to change at least DB_URI to match your Cromwell configuration. You can also change any of the values in config.py by setting environment variables.

The following variables can be changed:

HOST_IP

The address to broadcast the service on. If set to '0.0.0.0', the service will be broadcast publicly. If set to '127.0.0.1', the service will be accessible only to the host.

CROMWELL_URL

The full URL where the Cromwell API can be reached. By default this is 'http://localhost:8000'

WORKFLOW_DEFINITION_DIR

Directory in which to store workflow definitions.

SECRET

A secret key used to encrypt authorization tokens.

BRAND

A string which will be placed in the navbar.

BOOTSTRAP_CSS_URL

The url for the bootstrap.min.css file which contains styles for the Bootstrap framework used by this service. The default is the Flatly theme from Bootswatch.

LOG_FILE

The location of the log file. The default is error.log in this directory.

WOMTOOL_JAR

The location of womtool-xx.jar

CODEMIRROR_THEME_CSS

The URL of an additional theme for the CodeMirror code editor. Additional themes can be found here. Theme CSS files are found in the theme directory (for example, https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/theme/idea.min.css) A demo of the various themes can be found here

CODEMIRROR_THEME_NAME

The name of the theme contained in CODEMIRROR_THEME_CSS (for example, 'idea' in the example given above.

AUTHORIZED_GROUPS

A list of POSIX groups a user must be a member of at least one of to login to the service. In config.py this is a list of grp.struct_group. In an environment variable, they are specified as a list of groups separated by commas (e.g. 'cromwell,jobserver'). By default, all users are allowed to login to the service.

ADMIN_GROUPS

A list of POSIX groups a user must be a member of at least one of to have administrator access to the service (the ability to edit records owned by all users). In config.py this is a list of grp.struct_group. In an environment variable the groups are specified as a list of group names separated by commas (e.g. 'administrator,manaager'. By default, users in sudo and admin have administrator access on the service.

DB_URI

The connection string for a SQL database. The full URI has the format 'dialect+driver://user:password@host:port/database'. See the SQLAlchemy documentation for more information.