openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

MAX_ENTRY_SIZE Limited to 32MB, How to change it on my own openvsx server?

Open zlweicoder opened this issue 2 years ago • 3 comments

As you can see in the picture below, I want to upload this extension to my own openvsx server by using ovsx cli, but the size of the vsix file is limited to 32MB by serve. image image

Is there anyway to change the limit by env variable? I don't want to build my openvsx server image.

Thanks a lot for your help.

zlweicoder avatar Apr 18 '22 02:04 zlweicoder

@zlweicoder You can refactor this constant to an application property, so that it becomes configurable in application.properties. Then use @Value to use the property in a @Component. You can find examples in the codebase.

amvanbaren avatar May 16 '22 18:05 amvanbaren

Thanks for your solution, please be free to close this issue.

zlweicoder avatar May 17 '22 02:05 zlweicoder

@zlweicoder Could you open a pull request (PR) containing the changes you've made?

amvanbaren avatar May 17 '22 11:05 amvanbaren