sinopia-gitlab-heres

0.2.0 • Public • Published

sinopia-gitlab

Sinopia plugin for Gitlab authentication and package access/publish authorization.

This plugin allows authentication to Sinopia using a gitlab username and password. It also checks access levels for users and projects before allowing access to project code (minimum level "Reporter") or publish access (minimum level "Master").

Configuration

auth:
  gitlab:
    gitlab_server: https://git.example.com
    gitlab_admin_private_token: XXXXXXXXXXXX    # You can use private token here (recommended)
    #gitlab_admin_username: admin               # or provide username and password
    #gitlab_admin_password: password123
    gitlab_use_scope_as_group: false            # Match scope as group (Default false)
    gitlab_project_prefix: npm-                 # Use this if you prefix your projects in gitlab
    gitlab_publish_users: ["ciuser"]            # Users allowed to publish (Useful for CI) 
    #gitlab_ca_file: /path/to/ca/ca.crt         # (Optional) Use for self-signed certificates

packages:
  'prefix-*':
    gitlab: true
  '*':
    allow_access: $authenticated
    allow_publish: []
    proxy: npmjs

Dependents (0)

Package Sidebar

Install

npm i sinopia-gitlab-heres

Weekly Downloads

0

Version

0.2.0

License

none

Last publish

Collaborators

  • heres