{ "info": { "author": "Chris Hunt", "author_email": "chrahunt@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3" ], "description": "# reverse-forward-proxy\n\nReverse proxy to resources behind a forward proxy. The purpose of this is to\nsimplify configuration of clients or allow scaling behind load balancers that\ndo not support forward proxying on the back-end (e.g. HAProxy, Squid, Apache).\n\n## Usage\n\n```\n# Required.\nHTTP_PROXY=http://192.168.1.2:8080\n# Optional. Defaults to $HTTP_PROXY\nHTTPS_PROXY=http://192.168.1.2:8080\n# Optional.\nSSL_CERT_FILE=\n# Optional. Enabled when set to '1'\nREVERSE_FORWARD_PROXY_VERBOSE=\n# Optional. Default is \"localhost\"\nREVERSE_FORWARD_PROXY_HOST=\n# Optional. Default is \"8080\"\nREVERSE_FORWARD_PROXY_PORT=\n# Optional. Default is \"X-Reverse-Forward-Proxy-Target\"\nREVERSE_FORWARD_PROXY_TARGET_HEADER=\nreverse-forward-proxy\n```\n\nNow the server will be up and listening on `http://localhost:8080` for requests.\n\nRequests must have header `X-Reverse-Forward-Proxy-Target` set to the remote\nhost to connect to via the proxy.\n\nThe server will make the request via `$HTTP_PROXY` and return the response.\n\n## Testing\n\n```\npytest\n```\n\n```\nmake docker-test\ndocker 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\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chrahunt/reverse-forward-proxy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "reverse-forward-proxy", "package_url": "https://pypi.org/project/reverse-forward-proxy/", "platform": "", "project_url": "https://pypi.org/project/reverse-forward-proxy/", "project_urls": { "Homepage": "https://github.com/chrahunt/reverse-forward-proxy" }, "release_url": "https://pypi.org/project/reverse-forward-proxy/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Reverse proxy for forward proxy", "version": "0.1.0" }, "last_serial": 5438402, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d1957bfc01c72e5fcc16efcc6fc60f66", "sha256": "0133f1ba548894d4838765d59e85fa2c522d358bb73ed05b8521518fa5683e5b" }, "downloads": -1, "filename": "reverse_forward_proxy-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1957bfc01c72e5fcc16efcc6fc60f66", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11660, "upload_time": "2019-06-23T22:29:17", "url": "https://files.pythonhosted.org/packages/c1/5f/46adc43d1b79c4e73459c716ebca1fb82b86ee1f57227c9df1c4d646bc7c/reverse_forward_proxy-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2ccbe15e051f7ebb6a15cfb107d0d97", "sha256": "88c392e2706be4bccbe87714645c3429413d035d6a734b11fed96ee91302428e" }, "downloads": -1, "filename": "reverse-forward-proxy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b2ccbe15e051f7ebb6a15cfb107d0d97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8229, "upload_time": "2019-06-23T22:29:08", "url": "https://files.pythonhosted.org/packages/5c/f4/f47f95ac0ec274296841e1a5e9d7a7e5447f17f84fbd3604a5f27ebb4a9f/reverse-forward-proxy-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1957bfc01c72e5fcc16efcc6fc60f66", "sha256": "0133f1ba548894d4838765d59e85fa2c522d358bb73ed05b8521518fa5683e5b" }, "downloads": -1, "filename": "reverse_forward_proxy-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1957bfc01c72e5fcc16efcc6fc60f66", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11660, "upload_time": "2019-06-23T22:29:17", "url": "https://files.pythonhosted.org/packages/c1/5f/46adc43d1b79c4e73459c716ebca1fb82b86ee1f57227c9df1c4d646bc7c/reverse_forward_proxy-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2ccbe15e051f7ebb6a15cfb107d0d97", "sha256": "88c392e2706be4bccbe87714645c3429413d035d6a734b11fed96ee91302428e" }, "downloads": -1, "filename": "reverse-forward-proxy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b2ccbe15e051f7ebb6a15cfb107d0d97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8229, "upload_time": "2019-06-23T22:29:08", "url": "https://files.pythonhosted.org/packages/5c/f4/f47f95ac0ec274296841e1a5e9d7a7e5447f17f84fbd3604a5f27ebb4a9f/reverse-forward-proxy-0.1.0.tar.gz" } ] }