1.0.3 • Published 2 years ago
verdaccio-taimei-auth v1.0.3
安装
npm install -g verdaccio-taimei-auth
或者
yarn global add verdaccio-taimei-auth
使用
- 在verdaccio服务的配置文件config.yaml增加配置文件例如:
# config.yaml
storage: ./storage
plugins: ./plugins
web:
title: Verdaccio
auth:
htpasswd:
file: ./htpasswd
# 新增的配置 start
taimei-auth:
file: ./auth.yaml
realTimeReadConfig: true #是否实时读配置,可以不配,默认false
# 新增的配置 end
# 省略
# ......
新增的配置auth.yaml
isTestRunning: true # 是否是在试运行,临时的配置,以后会去掉
publishAccess:
# 事业部前缀
clinical:
# 事业部允许首部发包的用户列表
- username1
- username2
- username3