added ssl to nginx.config and put require_ssl back in to the application controller.