Commit f8555c625faa30b0f0a31364b0e872a4b162fae3
1 parent
48a5c004b3
Exists in
master
Update config.sample.json to config.apiserver
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
config.sample.json
1 | { | 1 | { |
2 | "name": "SMS", | 2 | "name": "SMS", |
3 | 3 | ||
4 | "# messaging_url": "messaging service url", | 4 | "# messaging_url": "messaging service url", |
5 | "messaging_url": "http://localhost:32979/", | 5 | "messaging_url": "http://localhost:32979/", |
6 | 6 | ||
7 | "# listen_port": "HTTP port untuk mendapat perintah dari CORE", | 7 | "# listen_port": "HTTP port untuk mendapat perintah dari CORE", |
8 | "listen_port": 16480, | 8 | "listen_port": 16480, |
9 | 9 | ||
10 | "handler_callback_server": { | 10 | "apiserver": { |
11 | "# listen_port": "HTTP port untuk mendapat pesan masuk dari modem handler", | 11 | "# listen_port": "HTTP port untuk mendapat pesan masuk dari modem handler", |
12 | "listen_port": 16481, | 12 | "listen_port": 16481, |
13 | "apikey": "PLEASE_CHANGE_ME" | 13 | "apikey": "PLEASE_CHANGE_ME" |
14 | }, | 14 | }, |
15 | 15 | ||
16 | "number_suffix": "@phonenumber", | 16 | "number_suffix": "@phonenumber", |
17 | 17 | ||
18 | "modems": { | 18 | "modems": { |
19 | "SMS0": { | 19 | "SMS0": { |
20 | "url": "http://localhost:2110/sms", | 20 | "url": "http://localhost:2110/sms", |
21 | "apikey": "PLEASE_CHANGE_ME" | 21 | "apikey": "PLEASE_CHANGE_ME" |
22 | } | 22 | } |
23 | }, | 23 | }, |
24 | 24 | ||
25 | "do_not_trim_long_sms": false, | 25 | "do_not_trim_long_sms": false, |
26 | 26 | ||
27 | "default_modem": "SMS0", | 27 | "default_modem": "SMS0", |
28 | 28 | ||
29 | "# handler_chooser_algorithm": "algoritma untuk memilih modem dalam mengirim SMS. Pilihan: LAST-SEEN, FORCED. Default: LAST-SEEN", | 29 | "# handler_chooser_algorithm": "algoritma untuk memilih modem dalam mengirim SMS. Pilihan: LAST-SEEN, FORCED. Default: LAST-SEEN", |
30 | "handler_chooser_algorithm": "LAST-SEEN", | 30 | "handler_chooser_algorithm": "LAST-SEEN", |
31 | 31 | ||
32 | "# sending handler": "list modem yang dipakai untuk mengirim jika handler_chooser_algorithm === 'FORCED'", | 32 | "# sending handler": "list modem yang dipakai untuk mengirim jika handler_chooser_algorithm === 'FORCED'", |
33 | "sending_handler": [ | 33 | "sending_handler": [ |
34 | "SMS0", | 34 | "SMS0", |
35 | "SMS1" | 35 | "SMS1" |
36 | ], | 36 | ], |
37 | 37 | ||
38 | "redis": { | 38 | "redis": { |
39 | "host": "127.0.0.1" | 39 | "host": "127.0.0.1" |
40 | } | 40 | } |
41 | } | 41 | } |