reverse-forward-proxy
Reverse proxy to resources behind a forward proxy. The purpose of this is to simplify configuration of clients or allow scaling behind load balancers that do not support forward proxying on the back-end (e.g. HAProxy, Squid, Apache).
Usage
# Required.
HTTP_PROXY=http://192.168.1.2:8080
# Optional. Defaults to $HTTP_PROXY
HTTPS_PROXY=http://192.168.1.2:8080
# Optional.
SSL_CERT_FILE=
# Optional. Enabled when set to '1'
REVERSE_FORWARD_PROXY_VERBOSE=
# Optional. Default is "localhost"
REVERSE_FORWARD_PROXY_HOST=
# Optional. Default is "8080"
REVERSE_FORWARD_PROXY_PORT=
# Optional. Default is "X-Reverse-Forward-Proxy-Target"
REVERSE_FORWARD_PROXY_TARGET_HEADER=
reverse-forward-proxy
Now the server will be up and listening on http://localhost:8080 for requests.
Requests must have header X-Reverse-Forward-Proxy-Target set to the remote
host to connect to via the proxy.
The server will make the request via $HTTP_PROXY and return the response.
Testing
pytest
make docker-test
docker run --rm --net=host svagi/h2load --h1 -n 100 -c5 -H "X-Reverse-Forward-Proxy-Target: http://files/" http://localhost:$(make get-port)/file.100m
Metadata
Release files for reverse-forward-proxy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reverse-forward-proxy-0.1.0.tar.gz | 8.2 kB | Without provenance | Details for reverse-forward-proxy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reverse_forward_proxy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for reverse_forward_proxy-0.1.0-py3-none-any.whl |
Total release size: 19.9 kB
Release files / reverse-forward-proxy-0.1.0.tar.gz
| Download URL | reverse-forward-proxy-0.1.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88c392e2706be4bccbe87714645c3429413d035d6a734b11fed96ee91302428e
|
|
BLAKE2b-256 checksum How to use checksums |
5cf4f47f95ac0ec274296841e1a5e9d7a7e5447f17f84fbd3604a5f27ebb4a9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / reverse_forward_proxy-0.1.0-py3-none-any.whl
| Download URL | reverse_forward_proxy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0133f1ba548894d4838765d59e85fa2c522d358bb73ed05b8521518fa5683e5b
|
|
BLAKE2b-256 checksum How to use checksums |
c15f46adc43d1b79c4e73459c716ebca1fb82b86ee1f57227c9df1c4d646bc7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Security for reverse-forward-proxy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.