Mereithhh / vanblog

一款简洁实用优雅的个人博客系统
https://vanblog.mereith.com
GNU General Public License v3.0
2.86k stars 406 forks source link

[问题反馈]: 目前发现博客内部,除了网址图标和MD图片引用外,其他的位置如果使用外部图床,图片无法显示 #67

Closed duliyouxijuzi closed 2 years ago

duliyouxijuzi commented 2 years ago

问题描述 | Describe the bug

image

图床设置为腾讯COS,结果导入的图片无法显示 https://pic.xiaojuziya.com/picgo/logo.png 例如这张 image 网址图片链接不对 image

复现网址 | Website URL

https://www.xiaojuziya.com/

版本 | Version

v0.41.5

部署方式? | How do you deploy vanblog?

Docker 部署(文档默认)

duliyouxijuzi commented 2 years ago

picgo配置是从本地picgo拷贝过去的 { "picBed": { "current": "tcyun", "uploader": "tcyun", "smms": { "token": "" }, "tcyun": { "version": "v5", "secretId": "", "secretKey": "", "bucket": "", "appId": "", "area": "ap-chengdu", "path": "picgo/", "customUrl": "https://pic.xiaojuziya.com", "options": "" }, "list": [ { "type": "tcyun", "name": "腾讯云COS", "visible": true } ] }, "settings": { "shortKey": { "picgo:upload": { "enable": true, "key": "CommandOrControl+Shift+P", "name": "upload", "label": "QUICK_UPLOAD" } }, "showUpdateTip": true, "server": { "port": 36677, "host": "127.0.0.1", "enable": true }, "pasteStyle": "HTML", "privacyEnsure": true, "autoStart": true, "useBuiltinClipboard": true, "rename": true, "autoRename": true }, "needReload": false, "picgoPlugins": {}, "debug": true, "PICGO_ENV": "GUI" }

Mereithhh commented 2 years ago

你检查一下部署 vanblog 时的 "ALLOW_DOMAINS" 变量,多半是因为这个没加上你的图床域名。

Mereithhh commented 2 years ago

你把 pic.xiaojuziya.com 加上去试试,注意用英文逗号分隔。 如果是一键脚本部署,执行修改配置。如果是 docker-compose 部署,那就改一下编排里的环境变量再重启即可。 image

Mereithhh commented 2 years ago

https://vanblog.mereith.com/ref/faq.html#%E5%9B%BE%E7%89%87-%E4%BD%9C%E8%80%85-logo-%E5%8A%A0%E8%BD%BD%E4%B8%8D%E5%87%BA%E6%9D%A5

Mereithhh commented 2 years ago

在交流群里反馈来看,应该已经解决了,此 issue 就先关了