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. max_body_size: 1000mb
  10. web:
  11. # WebUI is enabled as default, if you want disable it, just uncomment this line
  12. enable: true
  13. title: Verdaccio
  14. auth:
  15. htpasswd:
  16. file: ./htpasswd
  17. # Maximum amount of users allowed to register, defaults to "+inf".
  18. # You can set this to -1 to disable registration.
  19. #max_users: 1000
  20. # a list of other known repositories we can talk to
  21. uplinks:
  22. npmjs:
  23. url: https://registry.npmjs.org/
  24. timeout: 10m
  25. fail_timeout: 10m
  26. cache: false
  27. max_fails: 40
  28. maxage: 30m
  29. # See https://github.com/verdaccio/verdaccio/issues/1329
  30. # Attempting to make install from Verdaccio more resilient in CI
  31. agent_options:
  32. keepAlive: true
  33. maxSockets: 40
  34. maxFreeSockets: 10
  35. packages:
  36. '@*/*':
  37. # scoped packages
  38. access: $all
  39. publish: $all
  40. proxy: npmjs
  41. '**':
  42. # allow all users (including non-authenticated users) to read and
  43. # publish all packages
  44. #
  45. # you can specify usernames/groupnames (depending on your auth plugin)
  46. # and three keywords: "$all", "$anonymous", "$authenticated"
  47. access: $all
  48. # allow all known users to publish packages
  49. # (anyone can register by default, remember?)
  50. publish: $all
  51. # if package is not available locally, proxy requests to 'npmjs' registry
  52. proxy: npmjs
  53. # You can specify HTTP/1.1 server keep alive timeout in seconds for incomming connections.
  54. # 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.
  55. # 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.
  56. server:
  57. keepAliveTimeout: 0
  58. # To use `npm audit` uncomment the following section
  59. # middlewares:
  60. # audit:
  61. # enabled: true
  62. # log settings
  63. logs:
  64. - {type: stdout, format: pretty, level: info}
  65. #- {type: file, path: verdaccio.log, level: info}