修改harbor.yml配置文件,取消external_url注釋,設置為:
external_url: https://harbor.host.com
然后,docker-compose down停止所有服務,刪除當前配置目錄:rm -rf ./common/config下配置清單,重新執行install.sh生成配置,即可解決
配置大概解釋:如果使用外部代理就要啟動該項
# Uncomment external_url if you want to enable external proxy
# And when it enabled the hostname will no longer used
注:external_url 指定訪問協議方式,如果nginx配置了http重定向https,則此處應填寫https