I had a problem where the url_scheme was not being set properly. I tracked it down to this setting needing to be included in uwsgi_params or nginx.conf:
uwsgi_param UWSGI_SCHEME $scheme;
Should this param be included in the default uwsgi_params that comes with nginx?