Skip to content

AlgoNode/seapin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seapin

Anonymous IPFS HTTP gateway backed by S3-compatible storage.

Stores and serves content-addressed objects at /ipfs/{CID} routes. Uploads compute a CIDv1 (raw codec, SHA2-256) and store the file in an S3 bucket keyed by CID.

Quick Start

docker compose up -d

This starts:

  • MinIO on ports 9000 (API) and 9001 (console)
  • Seapin on port 8080

The S3 bucket is created automatically on startup if it doesn't exist.

Upload

curl -X POST -F file=@myfile.txt http://localhost:8080/upload

Response:

{"cid":"bafkreig5z3h...","url":"/ipfs/bafkreig5z3h..."}

Download

curl http://localhost:8080/ipfs/bafkreig5z3h...

Configuration

All settings are via environment variables (with defaults for the docker-compose setup):

Variable Default Description
S3_ENDPOINT minio:9000 S3-compatible endpoint
S3_BUCKET ipfs Bucket name
S3_ACCESS_KEY minioadmin Access key
S3_SECRET_KEY minioadmin Secret key
S3_USE_SSL false Use HTTPS for S3
LISTEN_ADDR :8080 HTTP listen address

About

S3 storage IPFS compatible gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published