Skip to content

trexguo/verdaccio-gitlab

Repository files navigation

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>

Inspired by

License

MIT

About

An authentication plugin for Verdaccio using Gitlab

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published