Skip to main content

Resilient Circuits Web Server Component

Project description

Resilient Circuits Web Server

Provides a Web server that can be extended by additional components. This is useful for implementing a Threat Service, or for webhooks.

To have your Python method called with requests at /path/endpoint,

  • Make a class that inherits from circuits.web.BaseController,
  • Set self.channel="path",
  • Use the rc_webserver.web.@exposeWeb decorator on a method, e.g. @exposeWeb("endpoint").

Changelog

2020-07-15: version 37.2

  • Updated for python 3.

Environment

This package requires that it is installed on a RHEL platform and that the resilient-circuits application is running. Install this package with 'pip', or python setup.py install. To set the config values in the app.config file run resilient-circuits config -u.

Config values example:

[webserver]

# IP or DNS for the web server. Default is localhost.
# server=0.0.0.0

# Port for the web server. Default is 9000.
# port=9000

# Set the web server to use secure protocol. secure=1 means HTTPS, and secure=0 means HTTP. Default is 0
# secure=1

# The cert file is the private key certificate for the TLS server. This is required if secure=1. Default is None.
# certfile=~/.resilient/ssl.cer

Run with: resilient-circuits run.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rc-webserver, version 40.2.1939
Filename, size File type Python version Upload date Hashes
Filename, size rc-webserver-40.2.1939.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page