S3: error with non AWS S3 provider

未關閉
#1,952 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
42/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
aws, javascript
領域
backend, cloud

研究方向

先從 package.json 開始,檢查固定的 @aws-sdk/client-s3 版本,然後追蹤現有的 S3 設定和用戶端建構流程。將可用的用戶端參數與 CodiMD 提供的設定進行比較,並確認 Garage 這類非 AWS 提供者是否能夠使用路徑樣式定址,而不會出現回報的主機名稱錯誤。

由索引模型根據 Issue 內容生成。

描述

Hello.

Some S3 providers require forcePathStyle, in case of self hosting a garageHQ I got the following error:

2025-12-18T13:37:00.094Z error:         Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: s3-codimd.s3.test.example.net. is not in the cert's altnames: DNS:*.test.example.net, DNS:test.example.net

At the same time, the S3 client library is outdated, 0.1.0-preview.2 is 6 years old and does not support the forcePathStyle option. The latest @aws-sdk/client-s3 is 3.954.0.

I think codimd should permit to configure all S3 parameters to adapt configuration for specific providers and use cases.

Regards.

主要語言
JavaScript
星號
10.2k
分支
1.1k
PR 合併指標
30 天內沒有已合併 PR

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

hackmdio/codimd 的其他 Issue

查看 hackmdio/codimd 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。