Commit 6b2e1d9f7cc4814085073fced46c62a7b3fd1acc

Authored by Adhidarma Hadiwinoto
1 parent c46ab95f6d
Exists in master

adaptasi dari pulsakita

Showing 2 changed files with 34 additions and 1 deletions Side-by-side Diff

... ... @@ -0,0 +1,27 @@
  1 +var fs = require('fs');
  2 +var ini = require('ini');
  3 +var expresso = require('sate24-expresso');
  4 +var config = ini.parse(fs.readFileSync(__dirname + '/config.ini', 'utf-8'));
  5 +
  6 +process.chdir(__dirname);
  7 +
  8 +var logger = require('sate24/logger.js').start();
  9 +var HttpServer = require('sate24/httpserver.js');
  10 +var aaa = require('sate24/aaa.js');
  11 +var partner = require('./vre.js');
  12 +
  13 +var matrix = aaa.prepareMatrix();
  14 +
  15 +var options = {
  16 + 'aaa': aaa,
  17 + 'logger': logger,
  18 + 'config': config,
  19 + 'matrix': matrix,
  20 +}
  21 +
  22 +var httpServer = HttpServer.start(config, options);
  23 +
  24 +partner.start(config, aaa.callbackReport, options);
  25 +aaa.start(config, partner, options);
  26 +expresso.start(options);
  27 +
... ... @@ -20,5 +20,11 @@
20 20 "h2h"
21 21 ],
22 22 "author": "Adhidarma Hadiwinoto <gua@adhisimon.org>",
23   - "license": "BSD"
  23 + "license": "BSD",
  24 + "dependencies": {
  25 + "fs": "0.0.2",
  26 + "ini": "~1.3.4",
  27 + "sate24": "git+http://git@gitlab.kodesumber.com/reload97/node-sate24.git",
  28 + "sate24-expresso": "git+http://gitlab.kodesumber.com/reload97/sate24-expresso.git"
  29 + }
24 30 }