add service_description option

This commit is contained in:
zefie
2022-11-30 11:28:24 -05:00
parent 5678472dde
commit 46688eb8ee
2 changed files with 12 additions and 1 deletions

View File

@@ -206,7 +206,17 @@ data += `
<td absheight="6">
<tr>
<td valign="top" colspan=3 absheight=63>
This server is operated by ${minisrv_config.config.service_owner}.
This server is operated by ${minisrv_config.config.service_owner}.<br>
`;
if (minisrv_config.config.service_description) {
if (typeof minisrv_config.config.service_description === "string") {
if (minisrv_config.config.service_description.length > 0) {
data += minisrv_config.config.service_description;
}
}
}
data += `
</table>
<tr>

View File

@@ -22,6 +22,7 @@
"SharedROMCache": "SharedROMCache", // Shared ROMCache (wtv-service:/ROMCache/, where wtv-service is any configured service). Found under service vault. Best left unchanged.
"enable_shared_romcache": true, // Disabling this will cause a lot of problems without manual intervention. Best left unchanged.
"service_owner": "a minisrv user", // Set this to your name or screenname
"service_description": null, // Set to a string to have your description added to the default homepage. May be used in other places in the future. HTML is allowed here.
"service_owner_account": "minisrvuser", // Set this to your account name on your minisrv
"service_owner_contact": "someone", // Set this to your contact (eg email address, twitter handle, etc)
"service_owner_contact_method": "something", // Set this to the contact method (eg email, twitter, etc)