Print the package name on the index
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
<footer>
|
||||
<a href="https://www.klokantech.com/" target="_blank"><img src="/images/klokantech.png" /></a>
|
||||
<p>
|
||||
<a href="https://github.com/klokantech/tileserver-gl" target="_blank">Powered by TileServer-GL v{{server_version}}</a> – <a href="https://www.klokantech.com/" target="_blank">open-source project from Klokan Technologies GmbH.</a>
|
||||
<a href="https://github.com/klokantech/tileserver-gl" target="_blank">Powered by TileServer-GL ({{server_version}})</a> – <a href="https://www.klokantech.com/" target="_blank">open-source project from Klokan Technologies GmbH.</a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
@@ -28,7 +28,7 @@ if (packageJson.name.slice(-6) !== '-light') {
|
||||
}
|
||||
|
||||
module.exports = function(opts, callback) {
|
||||
console.log('Starting TileServer-GL v' + packageJson.version);
|
||||
console.log('Starting ' + packageJson.name + ' v' + packageJson.version);
|
||||
|
||||
var app = express().disable('x-powered-by'),
|
||||
serving = {
|
||||
@@ -185,7 +185,7 @@ module.exports = function(opts, callback) {
|
||||
return res.status(404).send('Not found');
|
||||
}
|
||||
}
|
||||
data['server_version'] = packageJson.version;
|
||||
data['server_version'] = packageJson.name + ' v' + packageJson.version;
|
||||
data['key_query_part'] =
|
||||
req.query.key ? 'key=' + req.query.key + '&' : '';
|
||||
data['key_query'] = req.query.key ? '?key=' + req.query.key : '';
|
||||
|
||||
Reference in New Issue
Block a user