-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
50 lines (49 loc) · 1.28 KB
/
Copy pathindex.js
File metadata and controls
50 lines (49 loc) · 1.28 KB
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
import HostManager from "./hostManager.js";
import { HostManagerOptions } from "./models/model.js";
const host = {
Lazy: true,
EndPoints: {
Main06: {
Type: "http",
Addresses: [
{
EndPoint: "127.0.0.1:8080",
},
],
Active: true,
Routing: "mainservice",
CacheSettings: {
requestMethods: "GET",
responseHeaders: ["content-type"],
isEnabled: true,
connectionType: "sqlite",
connectionSetting: {
dbPath: "./cache/",
filesPath: "./cachefiles/",
isFileBase: true,
hostDetailsApiUrl: "http://127.0.0.1:3000",
},
},
},
},
Services: {
mainservice: {
Type: "http",
Settings: {
LibPath: "./ExternalCommands",
"Connections.edge.RoutingData": {
endpoint: "127.0.0.1:8000",
},
"Default.MultiPart.CookieName": "uploadcookie",
"Default.ViewCommand.GroupColumn": "prpid",
"Default.PythonPath": "c:\\Python\\Python38-32\\python.exe",
"Connections.socket.mydbsource": {
endpoint: "127.0.0.1:9090",
},
"Default.ScriptEngine.PythonPath": "./PythonScriptEngine.py",
},
},
},
};
const service = HostManager.fromJson(host);
service.listenAsync();