environment variable no more required for gunicorn

This commit is contained in:
ziirish 2016-06-24 18:41:25 +02:00
parent 32d46ba5ed
commit 889580266c
3 changed files with 4 additions and 8 deletions

View file

@ -46,7 +46,7 @@ def main():
def server(options=None):
from burpui import init, lookup_config
from burpui import create_app, lookup_config
if not options:
options = parse_args(mode=False)
@ -54,7 +54,7 @@ def server(options=None):
conf = lookup_config(options.config)
check_config(conf)
server = init(conf, options.log, options.logfile, False, debug=options.debug)
server = create_app(conf, options.log, options.logfile, False, debug=options.debug)
server.manual_run()

View file

@ -1,11 +1,9 @@
CONFIG = {
'working_dir': '/',
'environment': {
'SERVER_SOFTWARE': 'gunicorn',
},
'args': (
'--bind=0.0.0.0:5000',
'--user=burpui',
'--group=burpui',
'--workers=5',
'--timeout=300',
'--worker-class=gevent',

View file

@ -18,11 +18,9 @@ You will then be able to launch `Burp-UI`_ this way:
::
SERVER_SOFTWARE=gunicorn gunicorn -k gevent -w 4 'burpui:init(conf="/path/to/burpui.cfg")'
gunicorn -k gevent -w 4 'burpui:create_app(conf="/path/to/burpui.cfg")'
.. note:: The ``SERVER_SOFTWARE=gunicorn`` is mandatory
When using ``gunicorn``, the command line options are not available. Instead,
run the `Burp-UI`_ ``init`` method directly. Here are the parameters you can
play with: