chore: 运行时 config.json 不再纳入 git 跟踪,改用 config.example.json 模板
config.json 是运行时高频写入的数据文件(网页改配置、每次 App_Store 打包递增 构建号都会写盘),纳入版本控制会导致服务器每次 git pull 与本地生产配置冲突。 - git rm --cached backend/data/config.json(保留磁盘文件,仅移出索引) - .gitignore 显式忽略 backend/data/config.json 并补充说明 - 新增 config.example.json 作为结构模板(不含真实密钥/生产数据) - README 说明其为运行时文件、pull 不覆盖,及从模板初始化的方式 首次部署仍可通过根目录 config.json 自动导入为 backend/data/config.json。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
91e9b027e8
commit
3cb4053ab5
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"apps": {
|
||||
"1": {
|
||||
"name": "示例应用",
|
||||
"server": "测试环境",
|
||||
"API": "https://api3-dev.example.com",
|
||||
"AppGuid": "00000000-0000-0000-0000-000000000000",
|
||||
"AssDom": "applinks:dev-data1.example.com",
|
||||
"UniversalLink": "https://dev-data1.example.com",
|
||||
"upload_key": "example_app",
|
||||
"tencent": "",
|
||||
"weixinlogin": "",
|
||||
"weixinpay": "",
|
||||
"skins": ["default.zip"],
|
||||
"certificates": {
|
||||
"Ad_Hoc": {
|
||||
"name": "com.example.app",
|
||||
"cer": "证书名称或标识",
|
||||
"pro": "描述文件名称",
|
||||
"theme": "default"
|
||||
},
|
||||
"App_Store": {
|
||||
"name": "com.example.app",
|
||||
"cer": "证书名称或标识",
|
||||
"pro": "描述文件名称",
|
||||
"theme": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemes": {
|
||||
"1": { "name": "readoor31", "ossFloder": "readoor" }
|
||||
},
|
||||
"servers": {
|
||||
"测试环境": {
|
||||
"api": "https://api3-dev.example.com",
|
||||
"assDom": "applinks:dev-data1.example.com",
|
||||
"universalLink": "https://dev-data1.example.com",
|
||||
"app_id_prefix": 1
|
||||
},
|
||||
"正式环境": {
|
||||
"api": "https://api3.example.com",
|
||||
"assDom": "applinks:data1.example.com",
|
||||
"universalLink": "https://data1.example.com",
|
||||
"app_id_prefix": 2
|
||||
}
|
||||
},
|
||||
"next_app_id_prefix": 3,
|
||||
"branches": ["master", "develop"],
|
||||
"upload": {
|
||||
"mode": "webdav",
|
||||
"oss": {
|
||||
"access_key_id": "",
|
||||
"access_key_secret": "",
|
||||
"endpoint": "",
|
||||
"bucket_name": "",
|
||||
"base_url": ""
|
||||
},
|
||||
"webdav": {
|
||||
"server_url": "",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"base_path": "",
|
||||
"public_url": ""
|
||||
},
|
||||
"dingtalk": {
|
||||
"enabled": false,
|
||||
"webhook_url": "",
|
||||
"secret": ""
|
||||
}
|
||||
},
|
||||
"versions": {
|
||||
"app_ver": "2.180.0",
|
||||
"build_map": {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user