ipfs/kubo

Gateway docs need to be updated to reflect supported features

開放

#10,234 建立於 2023年11月27日

 (1 則留言) (0 個反應) (0 位負責人)Go (2,725 個分叉)batch import
P2effort/hoursexp/novicehelp wantedtopic/docs

倉庫指標

星標
 (13,906 顆星)
PR 合併指標
 (平均合併 4天 2小時) (30 天內合併 28 個 PR)

描述

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

https://github.com/ipfs/kubo/blob/master/docs/gateway.md For convenience, the gateway (mostly) acts like a normal web-server when serving a directory:

If the directory contains an index.html file: If the path does not end in a /, append a / and redirect. This helps avoid serving duplicate content from different paths.† Otherwise, serve the index.html file. Dynamically build and serve a listing of the contents of the directory.

Among the above functions, a new page redirection function is added for directories without index.html, such as redirecting to ipfs.io. No need to directly build directory listing contents

貢獻者指南