Commit 1612086691d56a7265f222582f6c6e5746991097
1 parent
138d5ad160
Exists in
master
advice server
Showing 2 changed files with 9 additions and 0 deletions Inline Diff
config.sample.json
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": { | ||
13 | "apikey": "PLEASE_CHANGE_ME", | ||
14 | "advice": { | ||
15 | "port": 14283, | ||
16 | "url": "http://PLEASE_CHANGE_ME:14283/apikey/PLEASE_CHANGE_ME/advice" | ||
17 | } | ||
18 | }, | ||
12 | "remote_products": { | 19 | "remote_products": { |
13 | "XL5": "XJ5", | 20 | "XL5": "XJ5", |
14 | "XL10": "XJ10", | 21 | "XL10": "XJ10", |
15 | "XL15": "XJ15", | 22 | "XL15": "XJ15", |
16 | "XL25": "XJ25", | 23 | "XL25": "XJ25", |
17 | "XL30": "XJ30", | 24 | "XL30": "XJ30", |
18 | "XL50": "XJ50", | 25 | "XL50": "XJ50", |
19 | "XL100": "XJ100", | 26 | "XL100": "XJ100", |
20 | "XL200": "XJ200" | 27 | "XL200": "XJ200" |
21 | }, | 28 | }, |
22 | "reverse_report_url": "http://PLEASE_CHANGE_ME:24867/", | 29 | "reverse_report_url": "http://PLEASE_CHANGE_ME:24867/", |
23 | "reverse_report_port": 24867, | 30 | "reverse_report_port": 24867, |
24 | "control_panel": { | 31 | "control_panel": { |
25 | "listen_port": 24868 | 32 | "listen_port": 24868 |
26 | }, | 33 | }, |
27 | "do_not_verbose_log_report": false | 34 | "do_not_verbose_log_report": false |
28 | } | 35 | } |
29 | 36 |
index.js
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 pullgw = require('komodo-sdk/gateway/pull'); | 10 | const pullgw = require('komodo-sdk/gateway/pull'); |
11 | const partner = require('./lib/partner'); | 11 | const partner = require('./lib/partner'); |
12 | const adviceServer = require('komodo-sdk/gateway/advice-push-server'); | ||
12 | 13 | ||
13 | pullgw.setPartner(partner); | 14 | pullgw.setPartner(partner); |
15 | adviceServer.setPartner(partner); | ||
14 | 16 |