rgsrv - A rust noobs gemini server

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

Proxied content from gemini://redterminal.org/gemlog/2022-11-21-rgsrv_-_A_rust_noobs_gemini_server.gmi

Gemini request details:

Original URL
gemini://redterminal.org/gemlog/2022-11-21-rgsrv_-_A_rust_noobs_gemini_server.gmi
Status code
Success
Meta
text/gemini;lang=en
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.