Skip to content
Discussion options

You must be logged in to vote

See the diagram in https://github.com/PrivateBin/PrivateBin/wiki/Configuration#sizelimit - its not just PHP and it's POST and memory limits at play, but also the webserver settings for the maximum POST sizes, etc.

This script, which is not maintained by us, seems to use nginx. In nginx you need to change the client_max_body_size setting, it's default is only 1 MiB, which matches the issue you encounter.

Raising it to 1 GiB is definitely a bad idea, since your instance, according to the script, is limited to 1 GiB of RAM and in PHP on the server side the paste will get loaded into memory at least twice, once to parse and validate the JSON and to check if the payload is valid base64 and doe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gh2023-aesun
Comment options

Answer selected by gh2023-aesun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants