Skip to content

Renderer Configuration

K. Andrew Parker edited this page Sep 6, 2021 · 1 revision

render_app.conf

The provided render_app.conf.dist file will be used unless render_app.conf is provided.

Local Install

  • cp render_app.conf.dist render_app.conf
  • edit render_app.conf

Docker Container

Add the following line to your docker run script:

--mount type=bind,source=/pathToYour/configuration_file.conf,target=/usr/app/render_app.conf \

Available Configurations

The following configurations are set in render_app.conf

Key Default Description
SITE_HOST 'http://localhost:3000' This is the FQDN where your renderer lives
baseURL '' This is route on your host where the renderer can be accessed
formURL '/render-api' This is where you want student responses to be submitted (change this for MITM structure)
STRICT_JWT 0 (boolean false) Block render requests that don't use JWTs
CORS_ORIGIN '*' (any) Restrict access to renderer
problemJWTsecret 'shared' This is the secret used by the CMS to encode problemJWTs
webworkJWTsecret 'private' This is the internal secret used by the renderer to encode sessionJWTs

Note: If formURL is relative, the full URL for the form data (submitted problem responses) will be the concatenation of SITE_HOST.baseURL.formURL

Clone this wiki locally