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.
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 This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en