verdaccio.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ##
  2. ## verdaccio.yaml -- Verdaccio Server Configuration
  3. ##
  4. listen: http://127.0.0.1:4873
  5. url_prefix: http://127.0.0.1:4873
  6. #https:
  7. # key: @l_prefix@/etc/verdaccio/server.key
  8. # cert: @l_prefix@/etc/verdaccio/server.crt
  9. # ca: @l_prefix@/etc/verdaccio/ca.crt
  10. #http_proxy: http://127.0.0.1:3128/
  11. #https_proxy: https://127.0.0.1:3128/
  12. #no_proxy: example.com,localhost,127.0.0.1
  13. max_body_size: 20mb
  14. storage: @l_prefix@/var/verdaccio/pkg
  15. plugins: @l_prefix@/lib/verdaccio/node_modules
  16. auth:
  17. htpasswd:
  18. file: @l_prefix@/var/verdaccio/etc/htpasswd
  19. max_users: +inf
  20. npm:
  21. registry: https://registry.npmjs.org
  22. timeout: 5000
  23. logs:
  24. - type: file
  25. path: @l_prefix@/var/verdaccio/log/verdaccio.log
  26. format: pretty-timestamped
  27. level: info
  28. web:
  29. enable: true
  30. title: Verdaccio
  31. logo: logo.png
  32. scope: \@example
  33. uplinks:
  34. npmjs:
  35. url: https://registry.npmjs.org/
  36. timeout: 30s
  37. maxage: 2m
  38. max_fails: 2
  39. fail_timeout: 5m
  40. packages:
  41. "@example/*":
  42. access: $all
  43. publish: $authenticated
  44. "**":
  45. access: $all
  46. publish: $authenticated
  47. proxy: npmjs
  48. middlewares:
  49. profile-api:
  50. audit:
  51. enabled: true