rgsrv - A rust noobs gemini server

Author:       -fab- 
License:      CC BY-SA 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

Proxy Information
Original URL
gemini://redterminal.org/gemlog/2022-11-21-rgsrv_-_A_rust_noobs_gemini_server.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en
Capsule Response Time
111.926889 milliseconds
Gemini-to-HTML Time
0.638419 milliseconds

This content has been proxied by September (ba2dc).