Fix Meteor settings
This commit is contained in:
parent
89782de15e
commit
15cfeac7b4
@ -1,4 +1,10 @@
|
|||||||
Meteor.startup(function() {
|
Meteor.startup(function() {
|
||||||
|
if (Meteor.settings) {
|
||||||
|
console.log('Using custom LesionTracker settings');
|
||||||
|
console.log(Meteor.settings);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Meteor.settings = {
|
Meteor.settings = {
|
||||||
dicomWeb: {
|
dicomWeb: {
|
||||||
endpoints: [{
|
endpoints: [{
|
||||||
|
|||||||
@ -1,4 +1,10 @@
|
|||||||
Meteor.startup(function() {
|
Meteor.startup(function() {
|
||||||
|
if (Meteor.settings) {
|
||||||
|
console.log('Using custom LesionTracker settings: ');
|
||||||
|
console.log(Meteor.settings);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Meteor.settings = {
|
Meteor.settings = {
|
||||||
dicomWeb: {
|
dicomWeb: {
|
||||||
endpoints: [{
|
endpoints: [{
|
||||||
|
|||||||
27
config/dockerDCM4CHE.json
Normal file
27
config/dockerDCM4CHE.json
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"dicomWeb" : {
|
||||||
|
"endpoints": [
|
||||||
|
{
|
||||||
|
"name": "DCM4CHE",
|
||||||
|
"wadoUriRootNOTE" : "either this uri is not correct for wado-uri or wado-uri is not configured on orthanc currently",
|
||||||
|
"wadoUriRoot" : "http://192.168.99.100:8080/dcm4chee-arc/aets/DCM4CHEE/wado",
|
||||||
|
"qidoRoot": "http://192.168.99.100:8080/dcm4chee-arc/aets/DCM4CHEE/rs",
|
||||||
|
"wadoRoot": "http://192.168.99.100:8080/dcm4chee-arc/aets/DCM4CHEE/rs",
|
||||||
|
"qidoSupportsIncludeField": false,
|
||||||
|
"imageRendering" : "wadouri",
|
||||||
|
"requestOptions" : {
|
||||||
|
"auth": "user:user",
|
||||||
|
"logRequests" : true,
|
||||||
|
"logResponses" : false,
|
||||||
|
"logTiming" : true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dimse" : {
|
||||||
|
"host" : "192.168.99.100",
|
||||||
|
"port" : 11112,
|
||||||
|
"hostAE" : "DCM4CHE"
|
||||||
|
},
|
||||||
|
"defaultServiceType": "dicomWeb"
|
||||||
|
}
|
||||||
21
etc/dcm4cheCORSproxy.js
Normal file
21
etc/dcm4cheCORSproxy.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// 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://192.168.99.100:8080',
|
||||||
|
auth: 'user:user'
|
||||||
|
}).listen(8080);
|
||||||
|
|
||||||
|
proxy.on('proxyRes', function(proxyReq, req, res, options) {
|
||||||
|
// add the CORS header to the response
|
||||||
|
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||||
|
console.log(proxyReq);
|
||||||
|
});
|
||||||
|
|
||||||
|
proxy.on('error', function(e) {
|
||||||
|
// suppress errors
|
||||||
|
console.log(e);
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue
Block a user