added configs for running locally with orthanc via DIMSE
This commit is contained in:
parent
0f1e589b04
commit
12801f2faa
41
config/localhostOrthancDIMSE.json
Normal file
41
config/localhostOrthancDIMSE.json
Normal 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"
|
||||
}
|
||||
20
etc/AscendAWS_CORSProxy.js
Normal file
20
etc/AscendAWS_CORSProxy.js
Normal 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);
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user