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