chore(git): 停止追踪 config.json(本机运行时配置,含 token)

config.json 里是机器本地运行时状态:token/refreshToken、tokenExpireTime、downloadDir、
名称、isRecording 等,每台机器都不一样,且含有效期内的凭据。它被当作"bundled 配置"写入
时还会整体覆盖 AppData 下的实际配置(token/refreshToken/hikvision 会一起丢)。
入库既没意义又有泄露风险,改为不追踪(文件保留在本地,未删除)。

打包/默认配置仍由 config.packaged.json 提供,未受影响。

注意:其它机器 pull 到这次删除时,若本地 config.json 有改动会被拒("local changes would
be overwritten"),需要先备份该文件再 pull,或改用当前工作区的配置。
This commit is contained in:
liufumingren 2026-09-15 22:37:40 +08:00
parent 1f4083709f
commit f81605af2a
2 changed files with 3 additions and 32 deletions

3
.gitignore vendored
View File

@ -28,3 +28,6 @@ runtime.json
*.db-shm
*.db-wal
v133_monitor_tmp.ps1
# 本机运行配置(含 token、下载目录、本机名称等运行时状态;打包模板用 config.packaged.json)
/config.json

View File

@ -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": ""
}