-- Leo's gemini proxy

-- Connecting to redterminal.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en

rgsrv - A rust noobs gemini server


Author:       -fab- <fab@redterminal.org>
License:      CC BY 4.0
Published on: Mon, 21 Nov 2022 17:04:58 +0100
Last updated: Mon, 21 Nov 2022 17:04:58 +0100

rgsrv is my first rust project. It's just for learning purposes and it's based on the webserver developed in the rust book. I used parts of int80h's gemserv and looked up a lot of things from his code. I hope he doesn't mind :-).


The code is in a very early state and just an experimentation with rust. It only serves static files and doesn't support cgi or client certificates, although I've planned to implement those features in future.


rgsrv repository on CodeBerg.org (www)

rgsrv instance running on a raspberry pi


If you have something to say about rgsrv you can post an issue on the repo or, if you prefer, send me an email.


rgsrv issue tracker (www)


Just for learning purposes - USE AT YOUR OWN RISK!


I took care of the directory traversal issue by using the "safe-path" package for creating file paths from URLs, so I BELIVE this should not be an issue - but I could be wrong. The server may also panic under some conditions I don't know yet.


I don't trust this server for my main gemini site myself yet - so you shouldn't too. But maybe this is of interest for some other rust newbies.


All in all - have fun!

-fab-


--

Back to index

Homepage

-- Response ended

-- Page fetched on Thu Jun 6 09:48:30 2024