Use GitLab Community Edition as authentication provider for the private npm registry Verdaccio, the sinopia fork.
- If
legacy_mode: false
or undefined (default mode): Gitlab 11.2+ - If
legacy_mode: true
: Gitlab 9.0+
$ npm i verdaccio -g
Add the following in your config.yaml
middlewares:
gitlab:
client-secret: github-app-secret # required
git-hostname: git-enteprise-domain-name # optional
auth:
gitlab:
url: <url>
authCache:
enabled: <boolean>
ttl: <integer>
legacy_mode: <boolean>
publish: <string>