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

fix(wsgi): add settings to increase size uploads limit #298

Open
wants to merge 3 commits into
base: release/votepeloclima-v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pubish_org_eleicoes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'app/project/**'
- 'app/tailwind/**'
- 'app/admin_styled/**'
- 'app/wsgi.ini'
- 'app/org_eleicoes/**'
branches:
- main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish_org_amazonia_de_pe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'app/project/**'
- 'app/tailwind/**'
- 'app/admin_styled/**'
- 'app/wsgi.ini'
- 'app/org_amazonia_de_pe/**'
branches:
- main
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish_org_nossas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'app/project/**'
- 'app/tailwind/**'
- 'app/admin_styled/**'
- 'app/wsgi.ini'
- 'app/org_nossas/**'
branches:
- main
Expand Down
8 changes: 7 additions & 1 deletion app/wsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ processes = 4
threads = 2
http = 0.0.0.0:8000
die-on-term = true
buffer-size=131070
buffer-size = 65535
post-buffering = 4096
# 60 MB (ajuste para seu limite)
limit-post = 62914560
# Tempo em segundos
harakiri = 120
socket-timeout = 120
3 changes: 3 additions & 0 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ services:
- traefik.http.routers.votepeloclima.tls=true
- traefik.http.routers.votepeloclima.tls.certresolver=myresolver
- traefik.http.routers.votepeloclima.rule=${VOTEPELOCLIMA_TRAEFIK_ROUTERS_RULE:-HostRegexp(`votepeloclima.staging.bonde.org`,`www.votepeloclima.staging.bonde.org`)}
# Regras de upload
- traefik.http.middlewares.votepeloclima.buffering.maxRequestBodyBytes=62914560
- traefik.http.middlewares.votepeloclima.buffering.maxResponseBodyBytes=62914560

nossas:
image: ${NOSSAS_DOCKER_IMAGE:-nossas/nossas-cms:latest}
Expand Down