storage: ./test-storage

max_users: 2

web:
  enable: true
  title: verdaccio-server-1

auth:
  auth-memory:
    users:
      test:
        name: test
        password: test


uplinks:
  express:
    url: http://localhost:55550/
    timeout: 100ms
  server2:
    url: http://localhost:55552/
  server3:
    url: http://localhost:55553/
  baduplink:
    url: http://localhost:55666/

logs:
  - {type: stdout, format: pretty, level: trace}

packages:
  '@test/*':
    allow_access: $all
    allow_publish: $all
    proxy: server2

  'testfwd*':
    allow_access: $all
    allow_publish: $all
    proxy_access: server2
    proxy_publish: server2

  'testloop':
    allow_access: $all
    allow_publish: $all
    proxy_access: server2
    proxy_publish: server2

  'testexp':
    allow_access: $anonymous

  # used by tags.spec.js
  'testexp_tag*':
    allow_access: $all
    allow_publish: $all
    proxy_access: express

  # used by gzip.spec.js
  'testexp_gzi*':
    allow_access: $all
    allow_publish: $all
    proxy_access: express

  # used by gh29.js
  'testpkg-gh29':
    allow_access: $all
    allow_publish: $all
    proxy_access: express

  # used by preserve_tags_spec.js
  'testpkg-preserve':
    allow_access: $all
    allow_publish: $all
    proxy_access: express

  # used by racycrash.js
  'testexp-racycrash':
    allow_access: $all
    allow_publish: $all
    proxy_access: express

  # used by incomplete.js
  'testexp-incomplete':
    allow_access: $all
    allow_publish: $all
    proxy_access: express

  'test-nullstorage*':
    allow_access: $all
    allow_publish: $all
    proxy_access: server2
    storage: false

  'baduplink':
    allow_access: $all
    allow_publish: $all
    proxy_access: baduplink

  'test-access-only':
    allow_access: $all
    allow_publish: nobody
    storage: false

  'test-publish-only':
    allow_access: nobody
    allow_publish: $all
    storage: false

  'test-only-test':
    allow_access: test
    allow_publish: test
    storage: false

  'test-only-auth':
    allow_access: $authenticated
    allow_publish: $authenticated
    storage: false

  '*':
    allow_access: test $anonymous
    allow_publish: test $anonymous

listen: 55551

# expose internal methods
_debug: true
