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') + '/' })); }); });