From 74cac08ce7f71b135870751ddb89a0c2e2ee2111 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Fri, 10 May 2019 09:29:18 -0400 Subject: [PATCH] Add a snapshot of our config --- docs/latest/essentials/data-source.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/latest/essentials/data-source.md b/docs/latest/essentials/data-source.md index 3a7f79d66..7d828e8a0 100644 --- a/docs/latest/essentials/data-source.md +++ b/docs/latest/essentials/data-source.md @@ -92,7 +92,31 @@ cross-env PORT=5000 REACT_APP_CONFIG=config/docker_nginx-orthanc.js react-script The `REACT_APP_CONFIG` value tells our app which file to load on to `window.config`. By default, our app uses the file at -`/public/config/default.js`. +`/public/config/default.js`. Here is what that configuration looks +like: + +```js +window.config = { + routerBasename: '/', + relativeWebWorkerScriptsPath: '', + servers: { + dicomWeb: [ + { + name: 'Orthanc', + wadoUriRoot: 'http://localhost:8899/wado', + qidoRoot: 'http://localhost:8899/dicom-web', + wadoRoot: 'http://localhost:8899/dicom-web', + qidoSupportsIncludeField: false, + imageRendering: 'wadors', + thumbnailRendering: 'wadors', + }, + ], + }, +} +``` + +To learn more about how you can configure the OHIF Viewer, check out our +[Configuration Guide](./configuration.md). ## Open Source DICOM Image Archives