X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=proxy.js;h=61aa8f226e7b203e3376be72a004666c4e7e3115;hp=65cf72648fbd982254a7be8f432612dc7e209b38;hb=d7478970127408f056b157f18df74fef7db3f892;hpb=c3e6676d533e875b020d231075aac04e4b885677 diff --git a/proxy.js b/proxy.js index 65cf726..61aa8f2 100644 --- a/proxy.js +++ b/proxy.js @@ -2,15 +2,16 @@ 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"); - +// start the maintenance timer console.log("Starting cache maintenance timer"); -cache.startTimer(); +maintain.startTimer(); // next we start our main request loop http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);