解决方法一:
引用自: 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;
操作如下:
cat common/config/nginx/nginx.conf > common/config/nginx/nginx.conf.bak
sed -i '/X-Forwarded-Proto/d' common/config/nginx/nginx.conf
docker restart nginx