Skip to content

minio 拼接后路径缺少协议 #355

@ztelliot

Description

@ztelliot

检查清单

是什么版本出现了此问题?

master

使用的什么数据库?

MySQL 8.x

使用的哪种方式部署?

Docker

在线站点地址

No response

发生了什么?

sonic 似乎默认使用 https 与 minio 服务器通信,无法与只启用 http 的 minio 服务器通信。
image

在换用支持 https 的 endpoint 后,由于 endpoint 不能包含协议,所以拼接完成的链接同样没有协议,导致前端以相对路径预览附件以及插入文章。
image

此外,还发现当文件目录留空时无法正常上传文件,即使上传至根目录也需要设置为 / 。

相关日志输出

No response

附加信息

综上,希望能允许选择与 minio 的通信协议。同时,由于服务端可能直接通过内网与 minio 连接,endpoint 可能不适用于外部访问,因此,希望能自定义用于前端预览的 base url。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions