๐Ÿ A very simple static Gemini server, now with Titan support!
cpp gemini titan gemini-protocol titan-protocol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'main' of https://github.com/gemrest/maple

Fuwn be161280 b00d78e8

+17 -5
+14
README.md
··· 76 76 2. Run: `out/maple`, or 77 77 `TITAN=1 TITAN_TOKEN=secret TITAN_MAX_SIZE=2048 out/maple` 78 78 79 + ### Hacking 80 + 81 + If you decide to tamper with Maple, you should give your commits a test. As 82 + there isn't a test suite yet, feel free to use any of these examples: 83 + 84 + ```bash 85 + # Using OpenSSL directly to debug different requests: 86 + $ openssl s_client -ign_eof -quiet -connect localhost:1965 <<< \ 87 + > "gemini://localhost:1965" 88 + 89 + # Using Bollux to debug proper requests... or any client! 90 + $ bollux localhost 91 + ``` 92 + 79 93 ## Capsules using Maple 80 94 81 95 [Add yours!](https://github.com/gemrest/maple/edit/main/README.md)
bin/genkey
+3 -5
maple/maple.cc
··· 56 56 std::string file_extension = entry.path().string().substr( 57 57 entry.path().string().find_last_of('.') + 1 58 58 ); 59 - std::string gemini_file_extension = "gmi"; 60 59 61 60 // Only keep track of file if it is a Gemini file 62 61 if (std::equal( 63 62 file_extension.begin(), 64 63 file_extension.end(), 65 - gemini_file_extension.begin(), 66 - gemini_file_extension.end(), 67 - [](auto a, auto b) -> bool {return std::tolower(a) == std::tolower(b); 68 - } 64 + std::string("gmi").begin(), 65 + std::string("gmi").end(), 66 + [](char a, char b) -> bool { return std::tolower(a) == std::tolower(b); } 69 67 )) { 70 68 gemini_files.push_back(entry.path()); 71 69 }