0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-10 23:39:31 -05:00
verdaccio/test/unit/partials/config/yaml/api.web.spec.yaml
Juan Picado c91d6beb8b
feat: add rate limit to web endpoints (#2799)
* feat: add rate limit to web endpoints

* fix: types express conflict

* fix: undefined issue

* fix: tests
2021-12-23 17:35:31 +01:00

25 lines
446 B
YAML

storage: ./storage_default_storage
web:
title: Verdaccio
rateLimit:
windowMs: 5000000
max: 100000
uplinks:
npmjs:
url: http://localhost:4873/
packages:
'@*/*':
access: $all
publish: $all
proxy: npmjs
unpublish: npmjs
'forbidden-place':
access: nobody
publish: $all
'*':
access: $all
publish: $all
unpublish: xxx
proxy: npmjs
logs:
- { type: stdout, format: pretty, level: trace }