Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max request size hit easily when behind reverse proxy #179

Open
lucienastie opened this issue Jan 10, 2025 · 1 comment
Open

Max request size hit easily when behind reverse proxy #179

lucienastie opened this issue Jan 10, 2025 · 1 comment
Labels
deployment Anything related to deployment documentation Documentation has to be improved

Comments

@lucienastie
Copy link

Hello ! Love your project !

I've been using it behind traefik reverse proxy and on my network I also have a SSO so eventually long cookies with tokens slip into requests. As of right now my request size is 7.383Ko which hits UWSGI max request size of 4096 by default.

Would it be okay to up the buffer-size on the uwsgi.ini or add a line to the docs saying that it can easily be exceeded and adding this to the docker compose :

command: "/usr/sbin/uwsgi --ini /app/uwsgi.ini -b 65535"

Image used : redimp/otterwiki:2-slim

@redimp
Copy link
Owner

redimp commented Jan 10, 2025

Hey @lucienastie, thank you for bringing this up.

You can configure this by setting without changing the uwsgi.ini or the command by setting the environment variable UWSGI_BUFFER_SIZE.

I will add this info to the FAQ or maybe better to the Advanced Configuration section.

@redimp redimp added documentation Documentation has to be improved deployment Anything related to deployment labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Anything related to deployment documentation Documentation has to be improved
Projects
None yet
Development

No branches or pull requests

2 participants