config.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # Look here for more config file examples:
  3. # https://github.com/verdaccio/verdaccio/tree/master/conf
  4. #
  5. # path to a directory with all packages
  6. storage: ./storage
  7. # path to a directory with plugins to include
  8. plugins: ./plugins
  9. web:
  10. # WebUI is enabled as default, if you want disable it, just uncomment this line
  11. enable: false
  12. title: Verdaccio
  13. auth:
  14. htpasswd:
  15. file: ./htpasswd
  16. # Maximum amount of users allowed to register, defaults to "+inf".
  17. # You can set this to -1 to disable registration.
  18. #max_users: 1000
  19. # a list of other known repositories we can talk to
  20. uplinks:
  21. npmjs:
  22. url: https://registry.npmjs.org/
  23. timeout: 10m
  24. fail_timeout: 10m
  25. cache: false
  26. max_fails: 40
  27. maxage: 30m
  28. # See https://github.com/verdaccio/verdaccio/issues/1329
  29. # Attempting to make install from Verdaccio more resilient in CI
  30. agent_options:
  31. keepAlive: true
  32. maxSockets: 40
  33. maxFreeSockets: 10
  34. packages:
  35. '@*/*':
  36. # scoped packages
  37. access: $all
  38. publish: $all
  39. proxy: npmjs
  40. '**':
  41. # allow all users (including non-authenticated users) to read and
  42. # publish all packages
  43. #
  44. # you can specify usernames/groupnames (depending on your auth plugin)
  45. # and three keywords: "$all", "$anonymous", "$authenticated"
  46. access: $all
  47. # allow all known users to publish packages
  48. # (anyone can register by default, remember?)
  49. publish: $all
  50. # if package is not available locally, proxy requests to 'npmjs' registry
  51. proxy: npmjs
  52. # You can specify HTTP/1.1 server keep alive timeout in seconds for incomming connections.
  53. # A value of 0 makes the http server behave similarly to Node.js versions prior to 8.0.0, which did not have a keep-alive timeout.
  54. # WORKAROUND: Through given configuration you can workaround following issue https://github.com/verdaccio/verdaccio/issues/301. Set to 0 in case 60 is not enought.
  55. server:
  56. keepAliveTimeout: 0
  57. # To use `npm audit` uncomment the following section
  58. # middlewares:
  59. # audit:
  60. # enabled: true
  61. # log settings
  62. logs:
  63. - {type: stdout, format: pretty, level: info}
  64. #- {type: file, path: verdaccio.log, level: info}