I needed to add this line to the common Nginx reverse proxy options -
proxy_set_header X-Forwarded-Proto $scheme;
and the problem was resolved.
proxy_set_header X-Forwarded-Proto $scheme;
and the problem was resolved.