config.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # This is the default config file. It allows all users to do anything,
  3. # so don't use it on production systems.
  4. #
  5. # Look here for more config file examples:
  6. # https://github.com/verdaccio/verdaccio/tree/master/conf
  7. #
  8. # path to a directory with all packages
  9. storage: ./storage
  10. # path to a directory with plugins to include
  11. plugins: ./plugins
  12. web:
  13. # WebUI is enabled as default, if you want disable it, just uncomment this line
  14. enable: false
  15. title: Verdaccio
  16. auth:
  17. htpasswd:
  18. file: ./htpasswd
  19. # Maximum amount of users allowed to register, defaults to "+inf".
  20. # You can set this to -1 to disable registration.
  21. #max_users: 1000
  22. # a list of other known repositories we can talk to
  23. uplinks:
  24. npmjs:
  25. url: https://registry.npmjs.org/
  26. timeout: 10m
  27. max_fails: 20
  28. cache: false
  29. packages:
  30. '@*/*':
  31. # scoped packages
  32. access: $anonymous
  33. publish: $anonymous
  34. proxy: npmjs
  35. '**':
  36. # allow all users (including non-authenticated users) to read and
  37. # publish all packages
  38. #
  39. # you can specify usernames/groupnames (depending on your auth plugin)
  40. # and three keywords: "$all", "$anonymous", "$authenticated"
  41. access: $anonymous
  42. # allow all known users to publish packages
  43. # (anyone can register by default, remember?)
  44. publish: $anonymous
  45. # if package is not available locally, proxy requests to 'npmjs' registry
  46. proxy: npmjs
  47. # You can specify HTTP/1.1 server keep alive timeout in seconds for incomming connections.
  48. # 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.
  49. # 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.
  50. server:
  51. keepAliveTimeout: 0
  52. # To use `npm audit` uncomment the following section
  53. # middlewares:
  54. # audit:
  55. # enabled: true
  56. # log settings
  57. logs:
  58. - {type: stdout, format: pretty, level: info}
  59. #- {type: file, path: verdaccio.log, level: info}