https for rubygems, better nginx config