• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mayocream/pastebin-ipfs:

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

mayocream/pastebin-ipfs

开源软件地址:

https://github.com/mayocream/pastebin-ipfs

开源编程语言:

Go 46.4%

开源软件介绍:

pastebin-ipfs

go node docker deploy

简体中文

(IPFS Archivists)

Still in development, Pull Requests are welcomed.

Pastebin built on IPFS, securely served by Distributed Web and Edge Network.

It's like gist but for anonymous. Alternative to Ubuntu Pastebin.

paste.shoujo.io

Features

  • Stored in IPFS distributed network
  • AES-GCM Encryption
  • OpenAPI (CORS Origin *)
  • File upload (API Only)
  • Cache by CDN (or IPFS Gateway)
  • Syntax highlight by Prismjs
  • Markdown Preview
  • No Expiration

Usage

Web

Webpage serves Gallery and provide GUI to paste your snippets.

Vist Webpage.

API

API Docs: OpenAPI v3 - Swagger UI

Pastebin it has a rate limit at 20 qps.

Terminal

Create snippets:

$ curl -T doc.md https://paste.shoujo.io/api/v0/ # remember to have a slash '/' at the end
# or
$ curl -X POST https://paste.shoujo.io/api/v0/ -d 'いつか君に伝えたいと思っていた気持ちは'
# or
$ curl -X PUT https://paste.shoujo.io/api/v0//lyrics.txt -d 'Stars fall, birds sleep'

Cat snippets:

curl https://paste.shoujo.io/api/v0/QmTnhJH8azDsudkxgp8wNLEN5Zq86NAE6DAkzwGBDpaQ6Z/plain.txt

Self-Hosted

Kubernetes

Deploy pastebin-ipfs with Helm.

git clone https://github.com/mayocream/pastebin-ipfs
cd pastebin-ipfs/helm
helm install pastebin-ipfs .

Refer values.yaml for more detail.

Docker Compose

Edit deploy/docker/docker-compose.yml file.

docker-compose up -d

Docker

You must have ipfs-daemon running on your host first.

Check out IPFS docker-compose.yml.

docker run -p 8080:3939 mayocream/pastebin-ipfs:latest

Development

make run # start ipfs daemon at http://127.0.0.1:5001
         # run pastebin API at http://127.0.0.1:3939
make web-live # run Webpage

Feedback

You can provide suggestion or ask question by open a Github Issue in any languages.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
SamueleA/create-react-app-ipfs-deploy发布时间:2022-06-23
下一篇:
yeasy/docker-ipfs: Docker Image for IPFS node发布时间:2022-06-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap