Python (Gunicorn)
Requirements
Installation & Configuration
1
Install Zen Firewall by Aikido
pip install aikido_zenexport AIKIDO_TOKEN=AIK_RUNTIME_YOUR_TOKEN_HEREimport aikido_zen
aikido_zen.protect()import aikido_zen.decorators.gunicorn as aik
@aik.post_fork
def post_fork(server, worker):
# Keep your existing post_fork logic here if you already have one.
passgunicorn -c gunicorn_config.py --workers 2 app:app2
4
5
Setup rate limiting in the dashboard



You are rate limited by Aikido firewall. (Your IP: 1.2.3.4)Last updated
Was this helpful?
