Skip to content

Instantly share code, notes, and snippets.

@michel47
Last active April 8, 2021 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michel47/83eea73b21055838c9bfe6831b16149d to your computer and use it in GitHub Desktop.
Save michel47/83eea73b21055838c9bfe6831b16149d to your computer and use it in GitHub Desktop.
Tiny IPFS repository

The minimum size repository for a running ipfs node is about 16KB

screenshot 1

~Dr I·T

#
pandoc -o index.html README.md
<meta charset="utf8">
<p>The minimum size repository for a running ipfs node is about 16KB</p>
<figure>
<img src="screenshot1.png" alt="" /><figcaption>screenshot 1</figcaption>
</figure>
<p>~Dr I·T</p>
#
set -e
export IPFS_PATH=.
rm -f config
ipfs init
ipfs repo gc
rm -rf blocks/??
rm -f datastore/*
rm -rf keystore
rm -rf blocks/.temp
rm -f blocks/diskUsage.cache
ipfs config --json Gateway.NoFetch true
ipfs config --json Bootstrap '[]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://webui.ipfs.io"]'
xdg-open https://webui.ipfs.io
ipfs daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment