TGLMAN

Re-tools for this blog

My last post a while ago was about redeploy my blog with new tools, and in that set of tools there was see, I tried it for a while but I noticed after a few days for some reason the server would get stuck, and no request were server till I restarted the server.

I went to check the reason for it, could not find much, I also opened an issue on its issue tracker to see if someone had the same problems and an eventual solution, but the author replied that the see project was just an experiment and was not maintained anymore, I tried to dig a bit in it, but it was written quite low level and I could not figure out the reason for the server blocking and serving the requests.

At this point I went back to check for suitable server written in rust that I could use, I found a few to serve some static files on the fly, but nothing with a bit more complex setup, on the other side there are a few frameworks that can allow you to serve static file in a really easy way.

So at this point I picked up a rust web framework called actix-web that I used with success in the past and tried to build something quickly, I used also KDL for write the configuration format which was quite a while I wanted to try, for that I used this library, the result of this quick work is a ~600 line of code (at the moment of writing) that is serving this static pages right now.

Is actually a few weeks this server is online and I never had to restart it, so to me sounds like a success.

The code of this server that I called "vacuna" can be found here I do not know how far this project will go, but I am aiming to keep it simple without much around it.

This is the configuration(~more or less) that I used to serve this site:


server {
   host "tglman.com" 
   host "www.tglman.com"
   listen {
        ip "0.0.0.0"
        port 443
        ssl {
           key "/path/to//privkey"
           cert "/path/to/fullchain"
        }
   } 
   path "/" {
      location "/var/www/html"
   }

}

The other component I was using called "acme-redirect" is still there and working properly so no plan to change that for now.

That was a needed update to write, done !!!