forked from cristianvasquez/HES-Agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
45 lines (37 loc) · 1.25 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
const path = require('path');
const workSpacePath = process.env.WORKSPACE_PATH || path.join(__dirname, './workspace');
const eyePath = process.env.EYE_PATH || "/opt/eye/bin/eye.sh";
const appEntrypoint = process.env.APP_ENTRY_POINT || "dataspaces";
const resourcesEntryPoint = process.env.RESOURCES_ENTRY_POINT || "resource";
const port = process.env.PORT || '3000';
var config = {
schemas:{
metaOperationSchema:path.join(__dirname, './schemas/dsl_v1_meta.schema.json')
},
serverOptions:{
// uriqa:"www.example.com",
port:port,
appEntrypoint: appEntrypoint,
resourcesEntryPoint: resourcesEntryPoint,
workSpacePath: workSpacePath,
verbose: false,
indexFile: 'index.json',
},
eyeOptions:{
command_arguments: {maxBuffer: 1024 * 500},
eyePath: eyePath,
defaultFlags:["--nope"]
},
processorOptions:{
showFiles:true,
showDirectories:true,
defaultContentType:"application/x-json+ld",
hydraOperations:["POST","PUT","DELETE"]
},
defaultContext: {
"@vocab": "http://example.org#",
"fluid": "http://josd.github.io/fluid#",
"hes": "http://cristianvasquez.github.io/hes#"
},
};
module.exports = config;