[PYTHON] Try the Taxii server (3.gunicorn settings)

Continuing from previous, try taxii server.

--gunicorn settings

pip install gunicorn Install gunicorn.

You can also find the base script at ʻopentaxii / http.py`.

from .middleware import create_app
from .config import ServerConfig
from .server import TAXIIServer
from .utils import configure_logging

config = ServerConfig()
configure_logging(config.get('logging', {'': 'info'}))

server = TAXIIServer(config)
app = create_app(server)
app.debug = False

As you can see from the above ʻOpentaxii / config.py loads the defaults.yml confirmed in 1. ʻOpentaxii / server.py will start the service as a server. Logs are managed at ʻopentaxii / utils.py`.

You can start it with gunicorn opentaxii.http: app --bind 0.0.0.0:9000.

After that, I would like you to use each method for automatic startup.

Next time, I would like to confirm the posts to the collection.

Reference site

Recommended Posts

Try the Taxii server (3.gunicorn settings)
Try the Taxii server (1. Server settings)
Try the Taxii server (2. Service / Collection settings)
Python server settings (nginx + Gunicorn)
Reload the server set up with gunicorn when changing the code
Try using the Twitter API
Try using the Twitter API
Try using the PeeringDB 2.0 API
Launch the IPython notebook server
Try doubling the PyODE slider
Settings to be made when starting up the linux server centos7
Settings until the Dango project is started on the server with Pycharm