<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Github-Proxy on ffff65535</title><link>https://blog.ffff65535.com/tags/github-proxy/</link><description>Recent content in Github-Proxy on ffff65535</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sun, 24 May 2026 07:20:00 +0800</lastBuildDate><atom:link href="https://blog.ffff65535.com/tags/github-proxy/index.xml" rel="self" type="application/rss+xml"/><item><title>自建 GitHub 加速服务：从 CF Workers 迁移到 VPS 部署 hubproxy + Caddy</title><link>https://blog.ffff65535.com/posts/2026/05/24/self-hosted-github-proxy-hubproxy-caddy/</link><pubDate>Sun, 24 May 2026 07:20:00 +0800</pubDate><guid>https://blog.ffff65535.com/posts/2026/05/24/self-hosted-github-proxy-hubproxy-caddy/</guid><description>&lt;p>之前用的 &lt;a href="https://github.com/hunshcn/gh-proxy">gh-proxy&lt;/a>，基于 Cloudflare Workers 搭建。现在换了新域名 &lt;code>1s.gs&lt;/code>，改用 &lt;a href="https://github.com/sky22333/hubproxy">hubproxy&lt;/a> 部署在自己的 VPS 上，完全自托管，不再依赖第三方服务。&lt;/p>
&lt;hr>
&lt;h2 id="架构">架构&lt;/h2>
&lt;pre tabindex="0">&lt;code>用户 → 1s.gs → Caddy (:80/:443) → hubproxy (:5000)
 ↕
 hubproxy_net Docker 网络
&lt;/code>&lt;/pre>&lt;ul>
&lt;li>Caddy 负责 HTTPS 和反代&lt;/li>
&lt;li>hubproxy 不暴露端口，仅通过 Docker 内部网络通信&lt;/li>
&lt;li>旧域名 &lt;code>github-proxy.top&lt;/code> 显示迁移提示页，3 秒后跳转到新域名&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="步骤">步骤&lt;/h2>
&lt;h3 id="1-部署-hubproxy">1. 部署 hubproxy&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>mkdir -p /opt/services/hubproxy
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>&lt;code>/opt/services/hubproxy/docker-compose.yml&lt;/code>：&lt;/strong>&lt;/p></description></item></channel></rss>