PROXY protocol v1 / v2 support
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- python
- 領域
- networking
研究方向
未指定任何 repository 檔案或測試。首先閱讀連結的 HAProxy PROXY protocol 規格,並比較 Gunicorn 的 --proxy-protocol 行為;完成應意味著 httptools 在 HTTP 請求之前支援所要求的 PROXY protocol v1 和 v2 用戶端資訊。
由索引模型根據 Issue 內容生成。
描述
Behind a reverse-proxy or a load balancer, you often need to get the original client IP.
A lot of load balancer provide these information with the PROXY protocol - HAproxy for exemple.
I have a load balancer that provide only this method to get the client info, and I would not be the only one.
Here a doc of the protocol: http://www.haproxy.org/download/2.4/doc/proxy-protocol.txt
In a nutshell, it's one line added on top of the body, here for the v1 protocol:
PROXY TCP4 192.168.0.1 192.168.0.11 56324 443\r\n
GET / HTTP/1.1\r\n
Host: 192.168.0.11\r\n
\r\n
This protocol is implemented in Gunicorn, and can be activated with --proxy-protocol: https://docs.gunicorn.org/en/stable/settings.html#proxy-protocol
edit: A NodeJS parser: https://github.com/racker/node-proxy-protocol/blob/master/index.js
- 主要語言
- Python
- 星號
- 1.3k
- 分支
- 106
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
MagicStack/httptools 的其他 Issue
-
Add riscv64 (linux_riscv64) wheel to PyPI releases可能已有人在做 @gounthar 於 209 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
MagicStack/httptools#136 ·
-
難度 2/5 1-3 小時 新手友好度 48/100
MagicStack/httptools#151 ·
-
難度 3/5 1-2 天 新手友好度 68/100
MagicStack/httptools#140 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 25/100
MagicStack/httptools#127 · 2 則留言 · 1 個 reaction ·
-
Custom build_ext breaks parallel build/wheel可能已有人在做 @DivyamTalwar 於 29 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 48/100
MagicStack/httptools#126 ·
查看 MagicStack/httptools 的全部 Issue
相似的 Issue
-
automated issue report
難度 1/5 1 小時以內 新手友好度 85/100
RapidAI/RapidOCRDocs#119 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 85/100
btclib-org/btclib-node#1833 ·
維護者通常 1 天內回覆
-
IRIS reader: no-data velocity bins (DB_VEL, DB_VELC) returned as 0.0 m/s instead of NaN可能已有人在做 @syedhamidali 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 80/100
elodin-sys/elodin#890 ·
維護者通常 1 天內回覆