create: 代理配置写入后台文件
MemRelay-Operation: memory-save:rapdrama-proxy-persist-20261022 MemRelay-Resource: e4c541c1-c308-484f-9d93-83fe723442ca
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
title: 代理配置写入后台文件
|
||||||
|
type: decision
|
||||||
|
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/代理配置写入后台文件
|
||||||
|
stable_id: e4c541c1-c308-484f-9d93-83fe723442ca
|
||||||
|
scope: project
|
||||||
|
memory_type: decision
|
||||||
|
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 1
|
||||||
|
request_id: rapdrama-proxy-persist-20261022
|
||||||
|
created_at: '2026-10-22T12:09:18.730909+00:00'
|
||||||
|
updated_at: '2026-10-22T12:09:18.730909+00:00'
|
||||||
|
tags:
|
||||||
|
- proxy
|
||||||
|
- dramabox
|
||||||
|
---
|
||||||
|
|
||||||
|
桌面程序每次启动用随机端口提供页面,浏览器本地存储按地址加端口分开。代理只写在 localStorage 时,重启后会丢,后台以直连访问 dramaboxapp.com,页面返回 403,分集读不出来。
|
||||||
|
决定:代理由后台保存在 cache/proxy.json(已 gitignore)。进程启动时加载,GET/POST /api/proxy 读写同一份。页面启动读这份配置,不要用空的「关闭」把后台代理盖掉。密码只留在该文件,不写入普通记忆。
|
||||||
|
当前用户使用的是本机 HTTP 代理 127.0.0.1:7897。有这个代理时,泰语影片页能返回 200 并读到分集。
|
||||||
Reference in New Issue
Block a user