2022-10-26 20:55:12 +02:00

52 lines
2.6 KiB
JavaScript

/* GET home page. */
function index(request, response) {
var adminBlock = "";
if(request.clientCert.fingerprint == '06:D2:06:C8:C3:8B:B7:86:FA:81:F9:A7:C4:18:56:C8:9A:2C:AD:EB') { //my certificate fingerprint
adminBlock = '## Administration\r\n=> /admin/ Administration';
} /*else {
adminBlock = '## Certificat Fingerprint\r\n'+request.clientCert.fingerprint;
}*/
response.send(`20 text/gemini\r\n
\`\`\` Uplink:SI Logo
■ ■ ■ ■ _ _ ____ _ _ _ _ _ _ ____ _ ■ ■ ■ ■
■ ■ ■ | | |__/ | | |\\ | |_/ / [__ | ■ ■ ■
■ ■ \\__/ | |___ | | \\| | \\_ / ___] | ■ ■
■ ■
-=Est. 2021=-
\`\`\`
Uplink is my conection to the Gemini Space. It is to become a great site. At this moment I will be publishing my own articles, my own content.
# 📡 Uplink:SI
## 🖥 About this server
Uplink.si started about ten years ago. A long time in Internet time. First it was running on free dynamic domains but at some point Uplink.si was registered. The server was always running HTTP and Gopher servers. I was always fascinated by old technologies, primarily because they were simple to understand fully. Back then I wrote a small gopher+ server and client. Now Gemini came along. Gemini is similar to Gopher in that fascinating simplicity. I was able to write a server in about 100 lines of JavaScript and it worked.
This server is evolution of the one I wrote in that one weekend. It is a bit more advanced, it resembles Express framework for NodeJS. That architecture should make it a bit easier to expand. Right now I moved some older content to articles section. Soon more will follow. For now this is a manual process but it kindof feels nice to revisit some old posts.
\`\`\` Ascii visual separator
─────────────────────────────────────────────────────────
\`\`\`
As mentioned, there is also a Gopher+ server somewhere around here.
=> gopher://uplink.si/ Uplink Gopher Server
## Articles
=> /articles/ 📓 Articles
## Links to other hosts
=> gemini://geminispace.info/ 🔎 Search Engine
\`\`\`
─────────────────────────────────────────────────────────
,___,
(O,O) Uplink:SI Gemini Server
/)__) Serving the Gemini Space
""
\`\`\`
${adminBlock}
`);
}
module.exports = index;