From f81605af2aaf0c3aa9fe080ddbb9eb8198400278 Mon Sep 17 00:00:00 2001 From: liufumingren Date: Tue, 15 Sep 2026 22:37:40 +0800 Subject: [PATCH] =?UTF-8?q?chore(git):=20=E5=81=9C=E6=AD=A2=E8=BF=BD?= =?UTF-8?q?=E8=B8=AA=20config.json=EF=BC=88=E6=9C=AC=E6=9C=BA=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=90=AB=20token?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config.json 里是机器本地运行时状态:token/refreshToken、tokenExpireTime、downloadDir、 名称、isRecording 等,每台机器都不一样,且含有效期内的凭据。它被当作"bundled 配置"写入 时还会整体覆盖 AppData 下的实际配置(token/refreshToken/hikvision 会一起丢)。 入库既没意义又有泄露风险,改为不追踪(文件保留在本地,未删除)。 打包/默认配置仍由 config.packaged.json 提供,未受影响。 注意:其它机器 pull 到这次删除时,若本地 config.json 有改动会被拒("local changes would be overwritten"),需要先备份该文件再 pull,或改用当前工作区的配置。 --- .gitignore | 3 +++ config.json | 32 -------------------------------- 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 config.json diff --git a/.gitignore b/.gitignore index fab2878..6236132 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,6 @@ runtime.json *.db-shm *.db-wal v133_monitor_tmp.ps1 + +# 本机运行配置(含 token、下载目录、本机名称等运行时状态;打包模板用 config.packaged.json) +/config.json diff --git a/config.json b/config.json deleted file mode 100644 index 59e1dae..0000000 --- a/config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "wsPort": 17301, - "wsPorts": [ - 17301, - 17302, - 17303 - ], - "httpPort": 17311, - "httpPorts": [ - 17311, - 17312, - 17313 - ], - "logLevel": "info", - "printerDefault": "", - "maxPrintJobs": 10, - "isService": false, - "remoteWs": { - "url": "ws://printer.wms.gztbyc.com/ws", - "reconnectInterval": 3000 - }, - "hikvision": { - "downloadDir": "G:/gameauto/recordings", - "maxStorage": "50GB", - "circularRecording": true - }, - "refreshTokenExpireTime": 0, - "tokenExpireTime": 1784925603819, - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3YXJlaG91c2UiOiIxMDAwMDAiLCJjb21wdXRlcklkIjoiMjgiLCJpYXQiOjE3ODQ5MjIwMDMsImV4cCI6MTc4NDkyNTYwM30.lpXdfZaIgoJhW0neOT6tzg7JhqFqfmVytWgkwgQlmc8", - "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3YXJlaG91c2UiOiIxMDAwMDAiLCJjb21wdXRlcklkIjoiMjgiLCJpYXQiOjE3Nzg2MTAwNDMsImV4cCI6NDkzNDM3MDA0M30.JkOtPdc6VA5IDxy6E6Pqk5nffmE5VagoXtXYr7cNLZc", - "name": "" -} \ No newline at end of file