add config option to disable splash screen info table
This commit is contained in:
@@ -20,14 +20,17 @@ data = `<html>
|
||||
<img src="${minisrv_config.config.service_splash_logo}">
|
||||
<br><br><br>
|
||||
<p><br>
|
||||
<p><br>
|
||||
<table border>
|
||||
<p><br>`;
|
||||
if (minisrv_config.config.show_detailed_splash) {
|
||||
data += `<table border>
|
||||
<tr><td>
|
||||
${minisrv_config.config.service_name} Mini Service hosted by ${minisrv_config.config.service_owner}
|
||||
<tr><td>
|
||||
minisrv v${minisrv_config.version} ${(minisrv_config.config.git_commit) ? '(git '+minisrv_config.config.git_commit+')' : ''}
|
||||
minisrv v${minisrv_config.version} ${(minisrv_config.config.git_commit) ? '(git ' + minisrv_config.config.git_commit + ')' : ''}
|
||||
<tr><td>Connected: &rate;
|
||||
</table>
|
||||
</table>`;
|
||||
}
|
||||
data += `
|
||||
</center>
|
||||
</body>
|
||||
</html>`;
|
||||
@@ -22,6 +22,7 @@
|
||||
"enable_gzip_compression": true,
|
||||
"pc_server_hidden_service": "http_pc",
|
||||
"pc_server_hidden_service_enabled": false,
|
||||
"show_detailed_splash": true,
|
||||
"show_diskmap": false,
|
||||
"allow_guests": true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user