var minisrv_service_file = true; headers =`200 OK Connection: Keep-Alive wtv-expire-all: wtv-home:/splash wtv-expire-all: wtv-flashrom: Content-type: text/html` if (request_headers.query.url) headers += "\nwtv-visit: " + request_headers.query.url; var cryptstatus = (wtv_encrypted ? "Encrypted" : "Not Encrypted") var comp_type = wtvmime.shouldWeCompress(session_data,'text/html'); var compstatus = "uncompressed"; switch (comp_type) { case 1: compstatus = "wtv-lzpf"; break; case 2: compstatus = "gzip (level 9)"; break; } data = ` Home for ${session_data.getSessionData("subscriber_username") || "minisrv"} Welcome to ${minisrv_config.config.service_name}`; if (session_data.getSessionData("registered")) data += ", " + session_data.getSessionData("subscriber_username") + "!"; data += `
minisrv v${minisrv_config.version}${(minisrv_config.config.git_commit) ? ' git-'+minisrv_config.config.git_commit : ''}, hosted by ${minisrv_config.config.service_owner}


Status: ${cryptstatus} (${compstatus})
Connection Speed: &rate;
"; if (fs.existsSync(service_vaults[0] + "/" + service_name + "/home.zefie.html")) { data += fs.readFileSync(service_vaults[0] + "/" + service_name + "/home.zefie.html", { 'encoding': 'utf8' }); }