<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>NGINX on Ops FreeEdge</title>
    <link>https://ops.freeedge.uk/tags/nginx/</link>
    <description>Recent content in NGINX on Ops FreeEdge</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 03 Apr 2026 17:00:00 +0000</lastBuildDate>
    <atom:link href="https://ops.freeedge.uk/tags/nginx/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Tailscale Serve vs NGINX vs Caddy：HTTP 反向代理能力深度对比</title>
      <link>https://ops.freeedge.uk/posts/tailscale-serve-vs-nginx-caddy/</link>
      <pubDate>Fri, 03 Apr 2026 17:00:00 +0000</pubDate>
      <guid>https://ops.freeedge.uk/posts/tailscale-serve-vs-nginx-caddy/</guid>
      <description>&lt;h2 id=&#34;引言&#34;&gt;引言&lt;/h2&gt;
&lt;p&gt;在安全网络领域，Tailscale 以其基于 WireGuard 的网状 VPN 彻底改变了设备互联方式。其中 &lt;strong&gt;Tailscale Serve&lt;/strong&gt; 是内置的服务暴露工具，可将本地 HTTP 服务安全地共享给 tailnet 内的其他设备。但与经过实战检验的 &lt;strong&gt;NGINX&lt;/strong&gt; 和新兴的 &lt;strong&gt;Caddy&lt;/strong&gt; 相比，Tailscale Serve 在反向代理能力上表现如何？本文聚焦负载均衡、HTTPS 支持、Header 操控、缓存、健康检查及易用性等维度进行深度横评。&lt;/p&gt;
&lt;h2 id=&#34;tailscale-servetailnet-原生服务暴露&#34;&gt;Tailscale Serve：Tailnet 原生服务暴露&lt;/h2&gt;
&lt;p&gt;Tailscale Serve（&lt;code&gt;tailscale serve&lt;/code&gt;）是集成在 Tailscale 客户端内的 CLI 命令，通过 Tailscale 加密的 WireGuard 隧道向 tailnet 其他节点暴露本地 HTTP/HTTPS 服务。&lt;/p&gt;
&lt;h3 id=&#34;核心特性&#34;&gt;核心特性&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;简易暴露&lt;/strong&gt;：运行 &lt;code&gt;tailscale serve http://localhost:8080&lt;/code&gt; 即可通过 MagicDNS（例如 &lt;code&gt;http://mydevice.tailnet.ts.net&lt;/code&gt;）将本地服务代理到 tailnet。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;自动 HTTPS 证书&lt;/strong&gt;：通过 &lt;code&gt;tailscale cert&lt;/code&gt; 获取 Let&amp;rsquo;s Encrypt 证书，支持 &lt;code&gt;--https=443&lt;/code&gt; 安全服务。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;路径前缀&lt;/strong&gt;：支持按路径代理，例如 &lt;code&gt;tailscale serve /api/ http://localhost:8080&lt;/code&gt;。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;基础认证与 Header&lt;/strong&gt;：能力有限，依赖 Tailscale ACL 做认证，无内置 Header 重写。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;负载均衡&lt;/strong&gt;：不支持，仅支持单一上游目标。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;健康检查&lt;/strong&gt;：不支持。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tailnet 范围限定&lt;/strong&gt;：默认仅 tailnet 内可达，安全策略由 ACL 兜底。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;局限性&lt;/strong&gt;：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
