verdaccio / monorepo

🏰 Core dependencies and plugins for verdaccio 5.x branch ⚠️ DEPRECATED
https://verdaccio.org
MIT License
81 stars 62 forks source link

Use 302 redirects for aws-s3-storage plugin #677

Open Reonaydo opened 1 year ago

Reonaydo commented 1 year ago

Hello!

We store our packages in verdaccio. It is configured to use S3 storage with bare-metal minio server.

But it generates a lot of network traffic. Because verdaccio downloads package from S3 and after that returns it to client.

As I know it is possible to make not proxying tarballs but create temporary token in S3 and return 302 redirect to client.

For example Gitlab server does this. It reduces traffic load and delay