cnpm / cnpmcore

Private NPM Registry for Enterprise
https://npmmirror.com
MIT License
607 stars 80 forks source link

上游仓库的认证头信息应该作为仓库的可修改属性记录在数据库中 #586

Closed hezhengxu2018 closed 11 months ago

hezhengxu2018 commented 1 year ago

目前上游仓库的token是创建同步任务时的一个可选参数,在使用syncNotFound这个配置或者之后的代理模式https://github.com/cnpm/cnpmcore/pull/571#issuecomment-1700366035 等自动创建的任务时没有办法再配置这个值了。 应该作为仓库的一个属性值记录在数据库中,可通过接口修改而不是通过任务的参数。