added configs for running locally with orthanc via DIMSE

This commit is contained in:
radicalrob 2016-08-14 20:20:27 +00:00
parent 0f1e589b04
commit 12801f2faa
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{
"servers": {
"dicomWeb": [
{
"name": "Orthanc",
"wadoUriRootNOTE" : "either this uri is not correct for wado-uri or wado-uri is not configured on orthanc currently",
"wadoUriRoot" : "http://52.87.58.190:8043/wado",
"qidoRoot": "http://localhost:8042/dicom-web",
"wadoRoot": "http://localhost:8042/dicom-web",
"qidoSupportsIncludeField": false,
"imageRendering" : "wadouri",
"requestOptions" : {
"auth": "orthanc:orthanc",
"logRequests" : true,
"logResponses" : false,
"logTiming" : true
}
}
],
"dimse": [{
"name": "OrthancDIMSE",
"peers": [
{
"host" : "localhost",
"port" : 4242,
"aeTitle" : "ORTHANC",
"default": true,
"supportsInstanceRetrievalByStudyUid": true
},
{
"host" : "0.0.0.0",
"port" : 11112,
"aeTitle" : "OHIFDCM",
"default" : true,
"server" : true
}
]
}]
},
"defaultServiceType": "dimse"
}

View File

@ -0,0 +1,20 @@
// This sets up a proxy to work around CORS.
// See http://chafey.blogspot.be/2014/09/working-around-cors.html
// For more information
var http = require('http'),
httpProxy = require('http-proxy');
var proxy = httpProxy.createProxyServer({
target: 'http://172.31.7.135:8042',
auth: 'orthanc:orthanc'
}).listen(8043);
proxy.on('proxyRes', function(proxyReq, req, res, options) {
// add the CORS header to the response
res.setHeader('Access-Control-Allow-Origin', '*');
});
proxy.on('error', function(e) {
// suppress errors
console.log(e);
});