Skip to content

Instantly share code, notes, and snippets.

View hecheng337's full-sized avatar
🎯
Focusing

He Cheng hecheng337

🎯
Focusing
View GitHub Profile
@hecheng337
hecheng337 / MisakaF_Reverse_Proxy.md
Last active July 11, 2025 06:59
反向代理 MisakaF 公费服 (Nginx)

如果你之前已经设置好了反向代理服务器:

1.将原来的 location / {} 复制一份,粘贴到下面;
2.在原来的 location 块中加入一行:
proxy_redirect https://MisakaF视频推流地址/ https://你服务器的地址/;
3.在复制的 location 块中,将 location / 改成 location /p/,将 proxy_pass 的目标地址改成 视频推流地址 /p/

完整的 Nginx 配置示范:

map $http_upgrade $connection_upgrade {

Keybase proof

I hereby claim:

  • I am hecheng337 on github.
  • I am hecheng (https://keybase.io/hecheng) on keybase.
  • I have a public key whose fingerprint is 372D 0DFD 4167 89BC DC15 DAA3 147F CEAA C3C2 7F73

To claim this, I am signing this object: