9 Star 11 Fork 1

Franklin_Zhang/GeoModelServiceContainer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setting.js 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
/**
* Created by Franklin on 16-3-16.
* The setting of the site
*/
var path = require('path');
var os = require('os');
module.exports = {
version : "0.4.0",
port : '8060',
oid : '56f110136dde7f18b4cb2b87',
platform : function(){
if(os.platform() == 'win32'){
return 1;
}
else if(os.platform() == 'linux'){
return 2;
}
else if(os.platform() == 'darwin'){
return 3;
}
else{
return 0;
}
}(),
crypto:{
algorithm : 'aes-256-cbc',
key : 'ae3e712c-ccdf-4964-b819-c85770146485'
},
db : 2, // 1 - MongoDB; 2 - NeDB
mongodb : {
name:'GeoModelContainerDB',
host:'127.0.0.1',
port:'27017'
},
nedb : {
path : function(){
return path.dirname(process.execPath) + "/mscdb/";
}()
},
socket:
{
host:'127.0.0.1',
port:'6001'
},
portal:
{
host:'222.192.7.75',
port:'80'
},
manager:{
host:'222.192.7.75',
port:'80/managerServer'
},
maxins : 10,
modelpath : __dirname + '/geo_model/',
mappingPath: (function(){
//! Release
return path.dirname(process.execPath) + '/geo_dataMapping/';
//! Debug
// return __dirname + '/geo_dataMapping/';
})(),
dirname : (function(){
//! Release
return path.dirname(process.execPath);
//! Debug
// return __dirname;
})(),
//! TODO
visualizationpath : (function(){
//! Release
return path.dirname(process.execPath) + '/visualization/';
//! Debug
// return __dirname;
})(),
data_size : 1
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/geomodeling/GeoModelServiceContainer.git
git@gitee.com:geomodeling/GeoModelServiceContainer.git
geomodeling
GeoModelServiceContainer
GeoModelServiceContainer
master

搜索帮助