解决方法一:
    引用自: https://github.com/goharbor/harbor/issues/3114#issuecomment-424992795
    在common/config/registry/config.yml中修改realm为https
    解决方法二:
    引用自: https://github.com/goharbor/harbor/issues/3114#issuecomment-394139225
    删除/注释掉common/config/nginx/nginx.conf中的proxy_set_header X-Forwarded-Proto $scheme;
    操作如下:

    1. cat common/config/nginx/nginx.conf > common/config/nginx/nginx.conf.bak
    2. sed -i '/X-Forwarded-Proto/d' common/config/nginx/nginx.conf
    3. docker restart nginx