implement build-in gemini server

This commit is contained in:
yggverse 2024-04-20 14:54:23 +03:00
parent d297b16523
commit 7275ecdacd
7 changed files with 300 additions and 9 deletions

View file

@ -3,7 +3,7 @@
[
{
"source":"https://www.omglinux.com/feed",
"target":"data/omglinux.com/feed.gmi",
"target":"server/127.0.0.1/public/omglinux/feed.gmi",
"item":
{
"template":"=> {link} {title}{nl}{nl}{description}",
@ -12,7 +12,7 @@
},
{
"source":"https://omgubuntu.co.uk/feed",
"target":"data/omgubuntu.co.uk/feed.gmi",
"target":"server/127.0.0.1/public/omgubuntu/feed.gmi",
"item":
{
"template":"=> {link} {title}{nl}{nl}{description}",

12
example/host.json Normal file
View file

@ -0,0 +1,12 @@
{
"host":"127.0.0.1",
"port":1965,
"cert":"cert.pem",
"key":"key.rsa",
"data":
{
"directory":"public",
"index":"index.gmi",
"listing":true
}
}