TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Dynamic-proxy – A universal dynamic reverse proxy built on Nginx

4 点作者 bmgoau将近 4 年前

1 comment

bmgoau将近 4 年前
Throw a host header at it and it will proxy to it! No need to hardcode domains and upstreams in the configuration. Dynamically builds balancers and connection pools from the incoming host header.<p>Could be a workaround for HTTP clients that don&#x27;t use or leverage keepalives effectively, don&#x27;t retry and&#x2F;or don&#x27;t load balance across all IPs in a DNS record.<p><pre><code> * Implements retries, keepalives (idle&#x2F;persistent connection pooling) and load balancing when your client can&#x27;t! * Optimised nginx Openresty config for speed and high traffic. https:&#x2F;&#x2F;github.com&#x2F;openresty&#x2F;docker-openresty * Dynamic connection pooling to any domain using lookups performed by Kong lua-resty-dns-client https:&#x2F;&#x2F;github.com&#x2F;Kong&#x2F;lua-resty-dns-client * resolves A, AAAA, CNAME and SRV records, including port * parses &#x2F;etc&#x2F;hosts * parses &#x2F;resolv.conf and applies LOCALDOMAIN and RES_OPTIONS variables * caches dns query results in memory * synchronizes requests (a single request for many requestors, eg. when cached ttl expires under heavy load) * Supports self-signed SSL using iteration on the-one-cert https:&#x2F;&#x2F;github.com&#x2F;flotwig&#x2F;the-one-cert * Above point allows ALPN, HTTP2 and TLS1.3 from local box or wherever you trust the certificate.</code></pre>