X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=proxy.js;h=65cf72648fbd982254a7be8f432612dc7e209b38;hp=770e7dcc84d0742e136b5ea9a2bf673b0636ce1b;hb=c3e6676d533e875b020d231075aac04e4b885677;hpb=48d657a4697bd9239f7ce9e4d7a479e08e1cb04e diff --git a/proxy.js b/proxy.js index 770e7dc..65cf726 100644 --- a/proxy.js +++ b/proxy.js @@ -1,12 +1,16 @@ var http = require("http"); var config = require("./lib/config.js"); var router = require("./lib/router.js"); +var cache = require("./lib/cache.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"); +cache.startTimer(); // next we start our main request loop http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);