From fd4be3c080479112e7f43f19675349bc54a841f9 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Tue, 24 Nov 2026 18:59:42 +0800 Subject: [PATCH] =?UTF-8?q?15m44=20=E6=A8=A1=E6=9D=BF=E5=85=A5=E5=BA=93+?= =?UTF-8?q?=E7=9C=9F=E5=AE=9E=E4=B8=8D=E5=85=A5=E5=BA=93:=20img.json(?= =?UTF-8?q?=E5=90=AB=E7=9C=9F=E5=AE=9Ebaseurl/key)=E5=8A=A0.gitignore?= =?UTF-8?q?=E4=B8=8D=E5=85=A5=E5=BA=93,=20=E6=96=B0=E5=A2=9Eimg.json.templ?= =?UTF-8?q?ate=E5=8D=A0=E4=BD=8D=E7=AC=A6=E6=A8=A1=E6=9D=BF=E9=9A=8F?= =?UTF-8?q?=E4=BB=93=E8=B5=B0(=E7=94=9F=E4=BA=A7FTP=E5=8D=95=E7=8B=ACput?= =?UTF-8?q?=E7=9C=9F=E5=AE=9Eimg.json,=20loadImgJson=E8=AF=BBimg.json)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ img.json.template | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 img.json.template diff --git a/.gitignore b/.gitignore index e214542..6ceabc7 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,6 @@ db/ # 存放测试脚本 / 探针 / 测试数据 / 备份文件,已被 git拉黑(2026-10-09) .workbuddy/ /nul + +# 15m44 图床配置: 模板值随仓走, 真实 baseurl/key 不入库(生产 FTP 单独 put) +img.json diff --git a/img.json.template b/img.json.template new file mode 100644 index 0000000..aa3b558 --- /dev/null +++ b/img.json.template @@ -0,0 +1,39 @@ +{ + "模式": { + "type": "", + "说明": [ + "1. type留空→走图床", + "2. 填GitHub→走GitHub issue(本期未启用)" + ] + }, + "repo": { + "url": "https://github.com/username/reponame", + "Client ID": "12345", + "Client secrets": "12345", + "type": { + "public": true, + "private": false, + "备注": "仓库类型2选1,同时双开默认public" + } + }, + "图像/附件支持": true, + "图片大小(单位KB)": 2048, + "图片备注": "仅使用图床时填写,GitHub可不填", + "baseurl": "https://example.com/", + "key": "example", + "后缀格式": { + "写法标准": "1行1个", + "建议": "仅开放常见格式,比如jpg、png等", + "type": [ + "jpg", + "png", + "bmp", + "jpeg" + ] + }, + "说明": [ + "1. 默认支持简单图床EasyImages2.0", + "2. 记得在设置-图床安全-API上传点上", + "3. 记得替换占位符为真实地址(真实img.json已gitignore不入库)" + ] +}