verdaccio-gitlab
Use GitLab Community Edition as authentication provider for the private npm registry Verdaccio, the sinopia fork.
Gitlab Version Compatibility
- If
legacy_mode: false
or undefined (default mode): Gitlab 11.2+ - If
legacy_mode: true
: Gitlab 9.0+
Installation
$ npm i verdaccio -g
Configuration
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>