Site updates

17 March, 2012 (20:40) | lol blog | By: dovac

Figured a new blog post would be helpful with all the changes lately.

As you’re aware we switched domain names (and servers too!), with that I decided the site and servers should get some updates in.

1) We were running on lighttpd + fastcgi deployment of Ruby on Rails, this was normal back in 2006, fast forward to 2012, and no one does it anymore. So it was decided we use nginx for frontend and unicorn as the glue between the app and webserver.
2) ssl support, lighttpd has/had poor ssl support so I wanted to move off that asap as well.
3) We had some sites hosted using PHP and I wanted to separate them off to different VMs. So thanks to Ac-town too for helping out setting up ganeti which allows us to provision VMs, now I can run PHP sites* that do not interfere with each other.

The move to nginx was problematic due to the fact that our download server had a custom lighttpd module that generated zip files on the fly, nginx has that too but required code changes that quite frankly I wouldn’t know how to implement at all since I’m not a programmer. Luckily (or THANK GOD) edogawaconan decided to modernize our code and had already gotten the zip generation to work with nginx. So I just had to pull in the change and then get nginx complied with the mod_zip plugin.

Then it got complicated, zip downloads just hanged there when ssl was enabled. Turns out it was a cookie problem after many hours of debug (again many thanks to edogawaconan)

So now we have a somewhat modernized stack which can be extendable in the future.

*Want free hosting from me? Leave a comment on how I can contact you and why you think you deserve the hosting and I’ll decide to host it or not.


Comment from Marcus
Time 03/18/2012 at 4:48 am

I’m having problems adding to my booru browser in android, probably because of ssl. Any way i can still use http?

Comment from donpino
Time 03/18/2012 at 1:55 pm

same problem of Marcus using Andbooru

when was http al works.
Is there a way to force http instead of https?


Comment from dovac
Time 03/18/2012 at 2:53 pm

use instead for mobile

Comment from Marcus
Time 03/18/2012 at 7:39 pm

@donpino I’m also using Andbooru on my android tablet.
@dovac Can SSL be an option to users who want a use a secure connection? It will be similar to other sites (yahoo?) Which let you sign in securely or not…

Comment from dovac
Time 03/18/2012 at 8:53 pm

@Marcus currently the application only supports https or http, can’t do both, maybe once the code base is more modernized it can be set up for that.