This is yet another short Cuckoo post.
If you would like to quickly get the Cuckoo API to work with Apache this one is for you.
You can have both the API and the Web Interface configuration in the same webserver config.
Add the following to your chosen Apache virtualhost configuration (default, ssl)
# Cuckoo API
WSGIDaemonProcess api user=<USER> group=<GROUP> processes=1 threads=5
WSGIScriptAlias /api <PATH>/cuckoo/utils/api.wsgi process-group=api
<Directory <PATH>/cuckoo/utils/>
WSGIApplicationGroup %{GLOBAL}
<Files api.wsgi>
Require all granted
</Files>
</Directory>
In the Cuckoo utils directory create the file api.wsgi
# make api.py wsgi enabled
import os
import sys
cur_dir = os.path.dirname(__file__)
os.chdir(cur_dir)
sys.path.append(cur_dir)
import bottle
import api
application = bottle.default_app()
/Mikael @nsmfoo
No comments:
Post a Comment