Background: I have a small Rails application running on Pivotal Web Services with MongoDB in the background as the database layer. I have used as much of the standards offered by Rails and PWS but have changed Webrick with Unicorn as the application server to allow for better scaling/multi-processing.
My Challenge: My next challenge in my project is to introduce SSL and here is where i need some help.
What Have I Found Already: I have found information on how to use SSL with Webrick, or Thin, Puma and Nginx but nothing on SSL with Unicorn. I also have found that Webrick, Thin and Nginx are called Web Servers while Unicorn is typically called an Application Server with HTTP capabilities.
Questions:
- Do I need to add a web server in front of Unicorn to implement SSL between my browser clients and my PWS application, or can it be done in Unicorn as well?
- If i need to add a web server, is the PWS standard web server a good option, as i would be able to leverage the load balancing and horizontal scaling which i get standard with PWS?
- If i implement Nginx or another web server with my application, do i then loose the standard PWS load balancing features?