https://github.com/openupm/verdaccio-storage-proxy
A Verdaccio storage proxy to decouple database, search, packument, and tarball accesses.
https://github.com/openupm/verdaccio-storage-proxy
hacktoberfest verdaccio verdaccio-plugin verdaccio-storage-proxy
Last synced: 6 months ago
JSON representation
A Verdaccio storage proxy to decouple database, search, packument, and tarball accesses.
- Host: GitHub
- URL: https://github.com/openupm/verdaccio-storage-proxy
- Owner: openupm
- License: bsd-3-clause
- Created: 2020-06-26T17:44:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T10:52:16.000Z (over 2 years ago)
- Last Synced: 2025-04-14T07:03:36.023Z (6 months ago)
- Topics: hacktoberfest, verdaccio, verdaccio-plugin, verdaccio-storage-proxy
- Language: TypeScript
- Homepage: https://github.com/openupm/verdaccio-storage-proxy
- Size: 1.37 MB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# verdaccio-storage-proxy
[](#contributors-)
  
A verdaccio storage proxy to decouple database, search, packument, and tarball accesses.
E.g. using the aws-s3-storage for tarball accesses, then using database storage for the rest accesses to create robust mixed storage for a cluster environment.
Access types:
- database: accesses related to package CRD, security, and token.
- search: accesses related to search.
- packument: accesses related to packument CRUD.
- tarball: accesses related to tarball read and write.## Installation
```bash
npm install verdaccio-storage-proxy
```## Configuration
```yaml
store:
storage-proxy:
database_backend: redis-storage
search_backend: redis-storage
packument_backend: redis-storage
tarball_backend: aws-s3-storage
backends:
aws-s3-storage:
bucket: openupm
region: us-east-1
endpoint: http://127.0.0.1:9000
accessKeyId: admin
secretAccessKey: password
s3ForcePathStyle: true
keyPrefix: 'verdaccio/'
tarballACL: public-read
redis-storage:
host: 127.0.0.1
...
```The example configuration dispatches tarball accesses to aws-s3-storage and the rest to [verdaccio-redis-storage](https://github.com/openupm/verdaccio-redis-storage).
## Development
See the [verdaccio contributing guide](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md) for instructions setting up your development environment.
Once you have completed that, use the following npm tasks.- `npm run build`
Build a distributable archive
- `npm run test`
Run unit test
For more information about any of these commands run `npm run ${task} -- --help`.
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!