- 安装Docker
1curl -fsSL https://get.docker.com | sudo bash -s docker && sudo systemctl enable --now docker - 安装gh-proxy
1234docker run -d --name="gh-proxy-py" \-p 0.0.0.0:5773:80 \--restart=always \hunsh/gh-proxy-py:latest - Nginx反代
12345location / {proxy_pass http://127.0.0.1:5773/;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;}
来源详情: gh-proxy