Skip to content

Instantly share code, notes, and snippets.

@skelet00r
Last active September 22, 2019 21:40
Show Gist options
  • Select an option

  • Save skelet00r/21b81681e6151d7eeb6fb5ecdfaafaa9 to your computer and use it in GitHub Desktop.

Select an option

Save skelet00r/21b81681e6151d7eeb6fb5ecdfaafaa9 to your computer and use it in GitHub Desktop.

Revisions

  1. James Delibas revised this gist Sep 22, 2019. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions config.yaml
    Original file line number Diff line number Diff line change
    @@ -49,8 +49,6 @@ security:
    uplinks:
    npmjs:
    url: https://registry.npmjs.org/
    timeout: 100ms
    fail_timeout: 30s

    packages:
    '@*/*':
  2. James Delibas revised this gist Sep 22, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions config.yaml
    Original file line number Diff line number Diff line change
    @@ -49,6 +49,8 @@ security:
    uplinks:
    npmjs:
    url: https://registry.npmjs.org/
    timeout: 100ms
    fail_timeout: 30s

    packages:
    '@*/*':
  3. James Delibas revised this gist Sep 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion config.yaml
    Original file line number Diff line number Diff line change
    @@ -87,4 +87,4 @@ experiments:
    # support for npm token command
    token: false

    max_body_size: 500mb%
    max_body_size: 500mb
  4. James Delibas created this gist Sep 22, 2019.
    90 changes: 90 additions & 0 deletions config.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,90 @@
    # PLACE THIS FILE IN ~/.verdaccio/conf/config.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://verdaccio.org/docs/en/docker#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/data
    # path to a directory with plugins to include
    plugins: /verdaccio/plugins

    web:
    # WebUI is enabled as default, if you want disable it, just uncomment this line
    #enable: false
    title: Verdaccio
    # comment out to disable gravatar support
    # gravatar: false
    # by default packages are ordercer ascendant (asc|desc)
    # sort_packages: asc

    auth:
    htpasswd:
    file: /verdaccio/storage/htpasswd
    # Maximum amount of users allowed to register, defaults to "+infinity".
    # You can set this to -1 to disable registration.
    # max_users: 1000

    security:
    api:
    jwt:
    sign:
    expiresIn: 60d
    notBefore: 1
    web:
    sign:
    expiresIn: 7d
    notBefore: 1

    # a list of other known repositories we can talk to
    uplinks:
    npmjs:
    url: https://registry.npmjs.org/

    packages:
    '@*/*':
    # scoped packages
    access: $all
    publish: $all
    unpublish: $all
    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/publish packages
    # (anyone can register by default, remember?)
    publish: $all
    unpublish: $all

    # if package is not available locally, proxy requests to 'npmjs' registry
    proxy: npmjs

    middlewares:
    audit:
    enabled: true

    # log settings
    logs:
    - { type: stdout, format: pretty, level: http }
    #- {type: file, path: verdaccio.log, level: info}

    experiments:
    # support for npm token command
    token: false

    max_body_size: 500mb%