An open API service indexing awesome lists of open source software.

https://github.com/yann-y/fds

ipfs s3 gateway
https://github.com/yann-y/fds

go ipfs minio s3

Last synced: 3 days ago
JSON representation

ipfs s3 gateway

Awesome Lists containing this project

README

          

ipfs s3 网关
目前常用的s3 接口已经实现

# ipfs安装
[官方仓库](https://github.com/ipfs/kubo.git)
修改配置文件。
把/ip4/127.0.0.1/tcp/5001修改为/ip4/0.0.0.0/tcp/5001
```json
{
"Addresses": {
"API": "/ip4/0.0.0.0/tcp/5001",
"Announce": [],
"AppendAnnounce": [],
"Gateway": "/ip4/127.0.0.1/tcp/8080",
"NoAnnounce": [],
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip6/::/tcp/4001",
"/ip4/0.0.0.0/udp/4001/quic",
"/ip4/0.0.0.0/udp/4001/quic-v1",
"/ip4/0.0.0.0/udp/4001/quic-v1/webtransport",
"/ip6/::/udp/4001/quic",
"/ip6/::/udp/4001/quic-v1",
"/ip6/::/udp/4001/quic-v1/webtransport"
]
}
}
```
# 启动方式
## build fds
```shell
make build
```
## Run
```shell
# --pool-addr 为ipfs 地址
./fds daemon --pool-addr=/ip4/192.168.2.30/tcp/5001
```
启动没有报错,就可以正常使用了。
![img.png](docs/images/img.png)

```bash
# 默认ak/sk
access_key = filedagadmin
secret_key = filedagadmin
```
s3cmd使用配置
```
access_key = filedagadmin
secret_key = filedagadmin
host_base = 192.168.2.26:9000
host_bucket = bucket-name
use_https = false
```
# speed
![part.png](docs/images/part.png)
# Contributing
PRs are welcome!