switch to gevent

This commit is contained in:
ziirish 2015-12-07 21:53:05 +01:00
parent 9f04cff241
commit 98da74e423
7 changed files with 9 additions and 8 deletions

View file

@ -4,7 +4,7 @@ CONFIG = {
'--bind=0.0.0.0:5000',
'--user=burpui',
'--workers=5',
'--worker-class=eventlet',
'--worker-class=gevent',
'--access-logfile=/var/log/gunicorn/burp-ui_access.log',
'--error-logfile=/var/log/gunicorn/burp-ui_error.log',
'burpui:init(conf="/etc/burp/burpui.cfg",logfile="/var/log/gunicorn/burp-ui_info.log")',

View file

@ -2,7 +2,7 @@ FROM debian:jessie
MAINTAINER ziirish@ziirish.info
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor logrotate locales wget curl python2.7-dev git python-virtualenv gunicorn python-eventlet python-pip cron libffi-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor logrotate locales wget curl python2.7-dev git python-virtualenv gunicorn python-pip cron libffi-dev \
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
&& locale-gen en_US.UTF-8 \
&& dpkg-reconfigure locales \

View file

@ -12,6 +12,7 @@ cd
pip install --upgrade pip
pip install "requests[security]"
pip install --upgrade $BURPUI
pip install gevent
pip install redis
pip install Flask-Session

View file

@ -7,18 +7,18 @@ online restoration) may take some time and thus may block any further requests.
With `Gunicorn`_, you have several workers that can proceed the requests so you
can handle more users.
You need to install ``gunicorn`` and ``eventlet``:
You need to install ``gunicorn`` and ``gevent``:
::
pip install eventlet
pip install gevent
pip install gunicorn
You will then be able to launch `Burp-UI`_ this way:
::
gunicorn -k eventlet -w 4 'burpui:init(conf="/path/to/burpui.cfg")'
gunicorn -k gevent -w 4 'burpui:init(conf="/path/to/burpui.cfg")'
When using ``gunicorn``, the command line options are not available. Instead,
run the `Burp-UI`_ ``init`` method directly. Here are the parameters you can

View file

@ -2,7 +2,7 @@ Flask==0.10.1
Flask-Login==0.3.2
Flask-Bower==1.2.1
Flask-WTF==0.12
flask-restplus==0.8.1
flask-restplus==0.8.3
WTForms==2.0.2
sphinxcontrib-httpdomain==1.3.0
six==1.10.0

View file

@ -2,6 +2,6 @@ Flask==0.10.1
Flask-Login==0.3.2
Flask-Bower==1.2.1
Flask-WTF==0.12
flask-restplus==0.8.1
flask-restplus==0.8.3
WTForms==2.0.2
six==1.10.0

View file

@ -214,7 +214,7 @@ setup(
extras_require={
'ldap_authentication': ['ldap3'],
'burp2-extra': ['ujson'],
'gunicorn-extra': ['eventlet', 'redis', 'Flask-Session'],
'gunicorn-extra': ['gevent', 'redis', 'Flask-Session'],
'test': test_requires,
},
tests_require=test_requires,