{"id":39934198,"url":"https://github.com/dedok/nginx-stream-proxy-protocol-v2","last_synced_at":"2026-01-18T18:33:43.903Z","repository":{"id":48171431,"uuid":"348339277","full_name":"dedok/nginx-stream-proxy-protocol-v2","owner":"dedok","description":"The patch for NGINX.Streams which brings support of proxy protocol v2","archived":false,"fork":false,"pushed_at":"2022-08-12T07:44:33.000Z","size":75,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2023-03-27T11:21:05.595Z","etag":null,"topics":["nginx","patch","proxy-protocol","stream","v2"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dedok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-16T12:29:31.000Z","updated_at":"2023-03-27T11:21:05.595Z","dependencies_parsed_at":"2022-09-16T23:21:08.493Z","dependency_job_id":null,"html_url":"https://github.com/dedok/nginx-stream-proxy-protocol-v2","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/dedok/nginx-stream-proxy-protocol-v2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedok%2Fnginx-stream-proxy-protocol-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedok%2Fnginx-stream-proxy-protocol-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedok%2Fnginx-stream-proxy-protocol-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedok%2Fnginx-stream-proxy-protocol-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dedok","download_url":"https://codeload.github.com/dedok/nginx-stream-proxy-protocol-v2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dedok%2Fnginx-stream-proxy-protocol-v2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28547279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nginx","patch","proxy-protocol","stream","v2"],"created_at":"2026-01-18T18:33:43.813Z","updated_at":"2026-01-18T18:33:43.893Z","avatar_url":"https://github.com/dedok.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NGINX.Stream / Proxy Protocol v2\n\nThe patch for NGINX.Streams which brings support of proxy protocol v2.\nFor getting information about configuration please see `Configuration`.\n\nThe implementataion is based on `2.2.Binary header format (version 2)` from the\ndocument [1].\n\nAlso if you need to extend the proxy protocol reading please see this project [2].\n\n```\n[1] http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt\n[2] https://github.com/slact/nginx_proxy_protocol_tlv_vars\n```\n\n# Current status\n\n1. It tested only on Linux, Mac (OSX).\nThis patch would not work compile under Windows platform, because codes are using some GCC attributes.\n3. I'm happy to get any feedback about TLV features. Please create a ticket, if you wish to see more TLV features.\n\n## Current TLVs features:\n1. SSL: version, cn, cert conn, cipher, key alg, sig alg.\n\n# Plans\n\nThe plan is: I would like to add this patch to the official NGINX.Stream in the future.\nPlease see this ticket for getting more details: https://trac.nginx.org/nginx/ticket/1639\n\n# Configuration\n\n**syntax:** *proxy_protocol on|off|v2*\n\n1. on and off working as described in the official documentataion [1]\n2. v2 sets sending proxy protocol v2 line to the backend.\n\n```\n[1] http://nginx.org/en/docs/stream/ngx_stream_proxy_module.html#proxy_protocol\n```\n\n# How to build\n1. Choose the version of the NGINX (ex: stream-proxy-protocol-v2-release-1.19.8.patch)\n2. Apply the patch:\n\n```bash\n$\u003e cd NGINX-SOURCES-ROOT\n$\u003e patch -p1 \u003c stream-proxy-protocol-v2-release-1.19.8.patch\n# Compile NGINX\n```\n# Docker\nWARNING:\nnginx would be built for debug purposes and with debug options,\nbe careful do not use this image's settings for the production.\n1. Change upstreams in the nginx.conf file\n2. Execute:\n```bash\n$\u003e docker build -t nginx-proxy-protocol-v2 .\n$\u003e docker run -i -t nginx-proxy-protocol-v2 bash\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdedok%2Fnginx-stream-proxy-protocol-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdedok%2Fnginx-stream-proxy-protocol-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdedok%2Fnginx-stream-proxy-protocol-v2/lists"}