mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-12-02 00:46:27 +08:00
fix(cli): preserve public host in local API proxy
This commit is contained in:
@@ -300,6 +300,8 @@ LOCAL_FRONTEND_SERVICE_SCRIPT = textwrap.dedent(
|
||||
app.use(
|
||||
'/api',
|
||||
proxy(`${backendHost}:${backendPort}`, {
|
||||
// 保留设备访问的主机名,避免播放清单生成后端回环地址。
|
||||
preserveHostHdr: true,
|
||||
proxyReqPathResolver: req => `/api${req.url}`
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user