Commit 612e06e877d748bb3ddd17e2b5c044ba36f0951a

Authored by Adhidarma Hadiwinoto
1 parent a117560878
Exists in master

APISERVER

Showing 2 changed files with 8 additions and 1 deletions Inline Diff

1 { 1 {
2 "handler_name": "KOMODO", 2 "handler_name": "KOMODO",
3 "products": [ 3 "products": [
4 ], 4 ],
5 "core_url": "http://127.0.0.1:32972/apikey/PLEASE_CHANGE_ME", 5 "core_url": "http://127.0.0.1:32972/apikey/PLEASE_CHANGE_ME",
6 "pull_interval_ms": 1000, 6 "pull_interval_ms": 1000,
7 "partner": { 7 "partner": {
8 "url": "http://PLEASE_CHANGE_ME:25614/", 8 "url": "http://PLEASE_CHANGE_ME:25614/",
9 "terminal_name": "PLEASE_CHANGE_ME", 9 "terminal_name": "PLEASE_CHANGE_ME",
10 "password": "PLEASE_CHANGE_ME" 10 "password": "PLEASE_CHANGE_ME"
11 }, 11 },
12 "push_server": { 12 "push_server": {
13 "apikey": "PLEASE_CHANGE_ME", 13 "apikey": "PLEASE_CHANGE_ME",
14 "advice": { 14 "advice": {
15 "port": 14283, 15 "port": 14283,
16 "url": "http://PLEASE_CHANGE_ME:14283/apikey/PLEASE_CHANGE_ME/advice" 16 "url": "http://PLEASE_CHANGE_ME:14283/apikey/PLEASE_CHANGE_ME/advice"
17 } 17 }
18 }, 18 },
19 "remote_products": { 19 "remote_products": {
20 "XL5": "XJ5", 20 "XL5": "XJ5",
21 "XL10": "XJ10", 21 "XL10": "XJ10",
22 "XL15": "XJ15", 22 "XL15": "XJ15",
23 "XL25": "XJ25", 23 "XL25": "XJ25",
24 "XL30": "XJ30", 24 "XL30": "XJ30",
25 "XL50": "XJ50", 25 "XL50": "XJ50",
26 "XL100": "XJ100", 26 "XL100": "XJ100",
27 "XL200": "XJ200" 27 "XL200": "XJ200"
28 }, 28 },
29 "reverse_report_url": "http://PLEASE_CHANGE_ME:24867/", 29 "reverse_report_url": "http://PLEASE_CHANGE_ME:24867/",
30 "reverse_report_port": 24867, 30 "reverse_report_port": 24867,
31 "control_panel": { 31 "control_panel": {
32 "listen_port": 24868 32 "listen_port": 24868,
33 "url": "http://localhost:24868/"
34 },
35 "apiserver": {
36 "port": 24869,
37 "apikey": "PLEASE_CHANGE_ME",
38 "url": "http://localhost:24869/apikey/PLEASE_CHANGE_ME"
33 }, 39 },
34 "do_not_verbose_log_report": false 40 "do_not_verbose_log_report": false
35 } 41 }
36 42
1 "use strict"; 1 "use strict";
2 process.chdir(__dirname); 2 process.chdir(__dirname);
3 3
4 /* 4 /*
5 const config = require('komodo-sdk/config'); 5 const config = require('komodo-sdk/config');
6 const logger = require('komodo-sdk/logger'); 6 const logger = require('komodo-sdk/logger');
7 const matrix = require('komodo-sdk/matrix'); 7 const matrix = require('komodo-sdk/matrix');
8 */ 8 */
9 9
10 const apiserver = require('komodo-sdk/api-server');
10 const pullgw = require('komodo-sdk/gateway/pull'); 11 const pullgw = require('komodo-sdk/gateway/pull');
11 const partner = require('./lib/partner'); 12 const partner = require('./lib/partner');
12 const adviceServer = require('komodo-sdk/gateway/advice-push-server'); 13 const adviceServer = require('komodo-sdk/gateway/advice-push-server');
13 14
14 pullgw.setPartner(partner); 15 pullgw.setPartner(partner);
15 adviceServer.setPartner(partner); 16 adviceServer.setPartner(partner);
16 17