initial commit
[nodejs-repoproxy.git] / proxy.js
1 var http = require("http");
2 var config = require("./lib/config.js");
3 var router = require("./lib/router.js");
4
5
6 // first we load the config...
7 config.loadConfig("./repos.conf");
8
9 console.log("globals: ", global.repoproxy);
10
11 // next we start our main request loop
12 http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);