usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34k stars 2.46k forks source link

S3 Storage can't be used #3397

Closed lhchong closed 5 months ago

lhchong commented 5 months ago

Describe the bug

为什么endpoint地址前会自动增加bucket?

感谢开发者开源这个项目,我当前仍在使用 v0.21版本,希望可以修复s3相关配置; 如果是我的使用方式不对,请告知我正确的用法,谢谢;

image

image

Steps to reproduce

  1. 部署并启动memos,注册一个账号
    services:
    usememos:
    image: 'neosmemo/memos:0.22'
    network_mode: 'host'
    environment:
      - MEMOS_DRIVER=mysql
      - MEMOS_DSN=root:123456@tcp(192.168.100.10:33608)/memos_v1
    volumes:
      - './data/:/var/opt/memos'
    ports:
      - '5230:5230'
    container_name: memos
    #restart: always
  2. 配置s3存储,将endpoint填写为ip地址
  3. 在home页上传一个附件,稍等片刻会提示错误

The version of Memos you're using

v0.22

Screenshots or additional context

No response

MusicMadman commented 5 months ago

同样问题,期待解决。

Issues-translate-bot commented 5 months ago

Issue is not in English. It has been translated automatically.


Same problem, looking forward to solving it.

Puopa commented 5 months ago

他就是会自动把桶名加到endpoint之前。如果加桶名可以访问的话,你可以将endpoint改为带桶名的,然后桶名那里直接/ 这样可以上传,一种解决方案吧。如果你的endpoint加了桶名无法访问那我暂时还没解决方案。

Issues-translate-bot commented 5 months ago

Issue is not in English. It has been translated automatically.


It will automatically add the bucket name before the endpoint. If you can access it by adding a bucket name, you can change the endpoint to one with a bucket name, and then directly / This can be uploaded, which is a solution. If your endpoint is inaccessible after adding a bucket surface, I don't have a solution yet.

boojack commented 5 months ago

We will use presigned urls to provide more secure links. It is recommended to use an S3 API-compatible object store such as cloudflare R2.

Jesn commented 5 months ago

Encountered the same problem

MyEnergyFiled commented 5 months ago

他就是会自动把桶名加到endpoint之前。如果加桶名可以访问的话,你可以将endpoint改为带桶名的,然后桶名那里直接/ 这样可以上传,一种解决方案吧。如果你的endpoint加了桶名无法访问那我暂时还没解决方案。

这样确实可以

Issues-translate-bot commented 5 months ago

Issue is not in English. It has been translated automatically.


It will automatically add the bucket name before the endpoint. If you can access it by adding a bucket name, you can change the endpoint to one with a bucket name, and then directly / in the bucket name to upload. This is a solution. If your endpoint is inaccessible after adding a bucket name, I don't have a solution yet.

This is indeed possible

byronlau commented 3 weeks ago
  1. 0.18 可以
  2. 使用ip:port 可以
Issues-translate-bot commented 3 weeks ago

Issue is not in English. It has been translated automatically.


  1. 0.18 OK
  2. You can use ip:port