X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=proxy.js;h=dabbdec80ea5f0e39d38b8bb2fa515188c5c531e;hp=770e7dcc84d0742e136b5ea9a2bf673b0636ce1b;hb=04f3190a0bcc430af31917456a957ecc80eb160b;hpb=48d657a4697bd9239f7ce9e4d7a479e08e1cb04e diff --git a/proxy.js b/proxy.js index 770e7dc..dabbdec 100644 --- a/proxy.js +++ b/proxy.js @@ -1,12 +1,17 @@ var http = require("http"); var config = require("./lib/config.js"); var router = require("./lib/router.js"); +var cache = require("./lib/cache.js"); +var maintain = require("./lib/maintain.js"); // first we load the config... +console.log("Loading configuration"); config.loadConfig("./repos.conf"); -console.log("globals: ", global.repoproxy); + +console.log("Starting cache maintenance timer"); +maintain.startTimer(); // next we start our main request loop http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);