Skip to main content

A client for consuming request forwarder server requests

Project description

Request Forwarder Client

A lightweight client for receiving and executing requests from request forwarder server.

Mandatory OS variable:

export REQUEST_FORWARDER_TOKEN=<your_token>

Optional OS variables:

# MQTT broker address (default: 37.157.254.65)
export REQUEST_FORWARDER_BROKER=<your custom server ip/host>

# Mode of operation (default: 'exec')
# 'exec': Execute the received command
# Any other value: Just print the received command without executing it
export REQUEST_FORWARDER_MODE=<anything except 'exec' will just print the request>

# Override the scheme (http/https) of URLs in commands
export REQUEST_FORWARDER_OVERRIDE_SCHEME=<http/https>

# Redirect requests to a different URL
# Example: https://newhost:9090
export REQUEST_FORWARDER_REDIRECT_URL=<url>

# Override the port in URLs
export REQUEST_FORWARDER_OVERRIDE_PORT=<port>

# Override the path in URLs
export REQUEST_FORWARDER_OVERRIDE_PATH=<path>

# Ignore certificate checks (add -k flag to curl commands)
# Values: true, false (default: false)
export REQUEST_FORWARDER_CERTIFICATE_CHECK_IGNORE=<true|false>

Installation

pip install request-forwarder-client

License

This project is licensed under the Apache 2.0 license. See the LICENSE file for details.

Project details


Download files

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

Source Distribution

request_forwarder_client-1.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

request_forwarder_client-1.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file request_forwarder_client-1.1.0.tar.gz.

File metadata

File hashes

Hashes for request_forwarder_client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e72de4264f61401c83d70231d43f40a06820b441de2eea89214e9c5fe3559210
MD5 e8dc0827132b8625f91f0945adf85a3b
BLAKE2b-256 98da59ec7fc497dc48e5c4df3738c15a3948195366b6536a4e8251e10f16f054

See more details on using hashes here.

File details

Details for the file request_forwarder_client-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for request_forwarder_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1009cbfa4c913b95faaec18f218bfee29db7c2f145a6148c9584930371b08e26
MD5 4bcdbcf0fe9b85ce62ff11cfffba2ffc
BLAKE2b-256 05b78ce0ba00bfa4d28e194e2eef8afab9bb7adc2bb7acb794247383e7cfbd88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page