Switching from builtin ssl using thin to an approach that assumes an ssl proxy server in front. Working nginx example included. This should help keep development simple until you have to go ssl, and then it'll be more like a prod system would look.