From 490b04f298e7243df62cd058321fe52765121910 Mon Sep 17 00:00:00 2001 From: Brian Peacock Date: Tue, 13 May 2014 17:12:21 -0500 Subject: [PATCH] Removed 'root' config parameter --- lib/config_def.yaml | 1 - lib/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/config_def.yaml b/lib/config_def.yaml index 62e548995..2eac03f1c 100644 --- a/lib/config_def.yaml +++ b/lib/config_def.yaml @@ -2,7 +2,6 @@ storage: ./storage title: Sinopia -# root: http://my.custom.domain.com # logo: logo.png # a list of other known repositories we can talk to diff --git a/lib/index.js b/lib/index.js index ed691de27..fe8422b4b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -138,7 +138,7 @@ module.exports = function(config_hash) { res.send(template({ name: config.title || "Sinopia", packages: packages, - baseUrl: config.root || req.protocol + '://' + req.get('host') + '/' + baseUrl: config.url_prefix || req.protocol + '://' + req.get('host') + '/' })); }); });