-
I'm using django with gunicorn, which requires request buffering, so as to not be susceptible to Slowloris and other attacks. I would think that rails/unicorn has the same requirement. I managed to get it working with the following entries in deploy.yml: traefik:
args:
entryPoints.http.address: ":80"
entryPoints.http.http.middlewares: buffering-mw
servers:
web:
hosts:
cmd: python gunicorn <my_app> --bind=3000 # ...
labels:
traefik.http.middlewares.buffering-mw.buffering.maxRequestBodyBytes: 5000000
traefik.http.middlewares.buffering-mw.buffering.memRequestBodyBytes: 5000000
traefik.http.middlewares.buffering-mw.buffering.maxResponseBodyBytes: 5000000
traefik.http.middlewares.buffering-mw.buffering.memResponseBodyBytes: 5000000 I have the following questions:
Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
jeremy
May 12, 2024
Replies: 1 comment 1 reply
-
Yes, yes, and yes! /cc @djmb @kevinmcconnell |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nuschk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, yes, and yes! /cc @djmb @kevinmcconnell