-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
检查了配置都是正确的但是一直报404不知道是啥原因 #44
Comments
如何复现?---- On Wed, 2022-06-15 14:47:52 ***@***.***> wrote ----
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
=============================================================================UPGIT 配置=============================================================================默认上传器default_uploader = "github" 上传文件名的格式模板(仅特定上传器适配)/ 目录分隔符, 作用: 是区分目录{year} 年份, 例如: 2022{month} 月份, 例如: 02{day} 天, 例如: 01{unix_ts} 时间戳, 例如: 1643617626{fname} 原始文件名,如 logo (不含后缀名){fname_hash} {fname}的 MD5 散列值{ext} 文件后缀名, 例如.png下面的例子生成的文件名预览: 2022/01/upgit_20220131_1643617626.png如果目录不存在将会被程序自动创建rename = "{year}/{month}/upgit_{year}{month}{day}_{unix_ts}{ext}" -----------------------------------------------------------------------------自定义输出格式-----------------------------------------------------------------------------{url} 图片文件的网络URL地址[output_formats] -----------------------------------------------------------------------------直链替换规则 RawUrl -[replace]-> Url-----------------------------------------------------------------------------如果您的网络访问Github异常或者缓慢,您可以尝试下面的配置以开启CDN加速[replacements]"raw.githubusercontent.com" = "cdn.jsdelivr.net/gh" =============================================================================以下为各个上传器的配置示例. 用不到的留空即可=============================================================================Github 上传器[uploaders.github] 保存文件的分支,例如 master 或 mainbranch = "main" 您的拥有"repo"权限的 Github 令牌获取Github Token连接: https://github.com/settings/tokenspat = "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" 您的公共Github存储库的名称注意: 为了让您和他人可以访问到图片资源, 您的Github仓库一定要是公开的,在私有仓库中Github会拦截未授权的请求,你将会得到一个404.repo = "upgit-demo" 您的 Gtihub 用户名username = "[email protected]" SMMS 上传器[uploaders.smms] Get token from https://sm.ms/home/apitokentoken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" Imgur 上传器[uploaders.imgur] Get token from https://api.imgur.com/oauth2/addclientSee your apps in https://imgur.com/account/settings/appsclient_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" Chevereto Uploader[uploaders.chevereto] 腾讯云 COS[uploaders.qcloudcos] 七牛云存储[uploaders.qiniu] Generate Token: http://jsfiddle.net/gh/get/extjs/4.2/icattlecoder/jsfiddle/tree/master/uptokentoken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==" Gitee[uploaders.gitee] https://gitee.com/profile/personal_access_tokens/newaccess_token = "70496eed0d71d67b826d5c88f70eb297" [uploaders.cloudinary] [uploaders.easyimage] |
用的是这个配置,直接传github就会404 |
环境是window |
用户名不要写成邮箱。 |
好的,谢谢 |
No description provided.
The text was updated successfully, but these errors were encountered: