mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
9cf5cee4fd
* docs: copy docker examples v4 * docs: copy docker examples v4 * chore: update ignore files
78 lines
2.3 KiB
YAML
78 lines
2.3 KiB
YAML
#
|
|
# This is the config file used for the docker images.
|
|
# It allows all users to do anything, so don't use it on production systems.
|
|
#
|
|
# Do not configure host and port under `listen` in this file
|
|
# as it will be ignored when using docker.
|
|
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration
|
|
#
|
|
# Look here for more config file examples:
|
|
# https://github.com/verdaccio/verdaccio/tree/master/conf
|
|
#
|
|
|
|
# path to a directory with all packages
|
|
storage: /verdaccio/storage
|
|
|
|
auth:
|
|
ldap:
|
|
type: ldap
|
|
client_options:
|
|
url: 'ldap://openldap:389'
|
|
# Only required if you need auth to bind
|
|
adminDn: 'cn=admin,dc=example,dc=org'
|
|
adminPassword: 'admin'
|
|
# Search base for users
|
|
searchBase: 'ou=People,dc=example,dc=org'
|
|
searchFilter: '(cn={{username}})'
|
|
# If you are using groups, this is also needed
|
|
groupDnProperty: 'cn'
|
|
groupSearchBase: 'ou=Groups,dc=example,dc=org'
|
|
# If you have memberOf support on your ldap
|
|
searchAttributes: ['*', 'memberOf']
|
|
# Else, if you don't (use one or the other):
|
|
# groupSearchFilter: '(memberUid={{dn}})'
|
|
#
|
|
# Optional, default false.
|
|
# If true, then up to 100 credentials at a time will be cached for 5 minutes.
|
|
cache: false
|
|
# Optional
|
|
reconnect: true
|
|
|
|
# a list of other known repositories we can talk to
|
|
uplinks:
|
|
npmjs:
|
|
url: https://registry.npmjs.org/
|
|
|
|
packages:
|
|
'@scope/*':
|
|
# scoped packages
|
|
access: marpontes zach leonardo
|
|
publish: $authenticated
|
|
proxy: npmjs
|
|
'@*/*':
|
|
# scoped packages
|
|
access: $all
|
|
publish: $authenticated
|
|
proxy: npmjs
|
|
'**':
|
|
# allow all users (including non-authenticated users) to read and
|
|
# publish all packages
|
|
#
|
|
# you can specify usernames/groupnames (depending on your auth plugin)
|
|
# and three keywords: "$all", "$anonymous", "$authenticated"
|
|
access: $all
|
|
|
|
# allow all known users to publish packages
|
|
# (anyone can register by default, remember?)
|
|
publish: $authenticated
|
|
|
|
# if package is not available locally, proxy requests to 'npmjs' registry
|
|
proxy: npmjs
|
|
|
|
# log settings
|
|
logs:
|
|
- { type: stdout, format: pretty, level: trace }
|
|
#- {type: file, path: verdaccio.log, level: info}
|
|
|
|
listen:
|
|
- 0.0.0.0:4873
|