I have a reverse proxy with nginx + thin, and it works great.
My problem is redirection to any controller when I'm under "https". It
will redirect to "http".
Sounds like sinatra doesn't know it's being connected to over https
(since nginx handles all of that for you), whereas it needs to in
order to be able to construct the correct URL
You can do this with something like proxy_set_header X-FORWARDED_PROTO
https;