-
Notifications
You must be signed in to change notification settings - Fork 28
/
config.js
53 lines (48 loc) · 1.49 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* Copyright G. Hemingway, 2015 - All rights reserved */
"use strict";
var path = require('path'),
_ = require('lodash');
/**********************************************************************************/
/*
* Establish the configuration of the application
*
* @param {configFile} String of the path for the configuration file to be loaded
* @param {environment} Which profile in the configuration file should be loaded
* @return {config} The configuration for the given profile
*/
module.exports = function(environment) {
var config = {
"host": "",
"port": 8080,
"protocol": "http",
"api_version": "v3",
"client": {
"embedded": false,
"auth": false,
"two_factor": true,
"socket": true,
"upload": true
},
"file" : {
"dir" : "C:/Program Files (x86)/STEP Tools/STEP-NC Machine/examples/hardmoldy_imts_signed.stpnc"
},
"machine" : {
"dir" : "C:/Program Files (x86)/STEP Tools/STEP-NC Machine/machines/okuma_M560-V.xml"
},
"machineList" : [
{
name: 'Okuma',
address: 'okuma.steptools.com:5000'
}
]
};
try {
config.env = environment;
config.rootDir = path.join(__dirname, '../../');
} catch (err) {
console.log('Error in node-configurator: %s', err);
process.exit(-1);
return config;
}
return config;
};