Skip to content
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

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

Closed
duliyouxijuzi opened this issue Oct 11, 2022 · 5 comments
Labels
问题反馈 反馈问题帮助我们改进 VanBlog

Comments

@duliyouxijuzi
Copy link

duliyouxijuzi commented Oct 11, 2022

问题描述 | 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 duliyouxijuzi added the 问题反馈 反馈问题帮助我们改进 VanBlog label Oct 11, 2022
@duliyouxijuzi
Copy link
Author

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
Copy link
Owner

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

@Mereithhh
Copy link
Owner

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

@Mereithhh
Copy link
Owner

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

@Mereithhh Mereithhh pinned this issue Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
问题反馈 反馈问题帮助我们改进 VanBlog
Projects
None yet
Development

No branches or pull requests

2 participants