Skip to content
Snippets Groups Projects
Select Git revision
  • c2500212eb4479b8bfcff36e9c5367b38b7dffbc
  • dev default protected
  • vainamoinen197-transactiondocument-replace-vec-fields-by-smallvec-2
  • dvermd/200-keypairs-dewif
  • elois/wot
  • jawaka/155-dbex-add-dump-fork-tree-command
  • elois/195-bcdbwriteop
  • elois/deps-crypto
  • elois/gva-monetary-mass
  • elois/191-sled
  • elois/195
  • ji_emme/gva-humantimefield
  • 184-gva-rename-commontime-field-to-blockchaintime
  • ji_emme/182-gva-implement-block-meta-data
  • ji_emme/rml14
  • hugo/151-ws2pv2-sync
  • ji_emme/181-gva-implement-identity-request
  • ji_emme/89-implement-client-api-gva-graphql-verification-api
  • logo
  • test-juniper-from-schema
  • elois/exemple-gva-global-context
  • v0.2.0-a4 protected
  • v0.2.0-a2 protected
  • v0.2.0-a protected
  • v0.1.1-a1 protected
  • documents/v0.10.0-b1 protected
  • crypto/v0.4.0-b1 protected
  • crypto/v0.3.0-b3 protected
  • crypto/v0.3.0-b2 protected
  • crypto/v0.3.0-b1 protected
  • wot/v0.8.0-a0.9 protected
  • wot/v0.8.0-a0.8 protected
  • 0.1.0-a0.1 protected
  • v0.0.1-a0.12 protected
  • v0.0.1-a0.11 protected
  • v0.0.1-a0.10 protected
  • v0.0.1-a0.9 protected
  • v0.0.1-a0.8 protected
  • v0.0.1-a0.7 protected
  • v0.0.1-a0.6 protected
  • v0.0.1-a0.5 protected
41 results

init.rs

Blame
  • configure.sh 1.13 KiB
    #!/bin/sh
    set -ex
    
    # --- bootstrap ---
    # remove default bootstrap nodes
    ipfs bootstrap rm all
    # add custom bootstrap
    ipfs config Bootstrap --json '["/dns/datapod.coinduf.eu/tcp/4001/p2p/12D3KooWFp4JsoDo5FX8CFLtyJjaWWRZ8q3gr8uT2s9To2GYzRNA"]'
    
    # --- rpc ---
    # allow easy access through ssh tunnel on port 5002
    # ipfs --api=/ip4/127.0.0.1/tcp/5002
    ipfs config API.HTTPHeaders.Access-Control-Allow-Origin --json '["http://127.0.0.1:5002"]'
    ipfs config API.HTTPHeaders.Access-Control-Allow-Methods --json '["PUT", "POST"]'
    
    # --- gateway ---
    # prevent gateway from fetching foreign data
    # ipfs config Gateway.NoFetch --json true
    # ipfs config Gateway.NoFetch --json false
    # public gateway without subdomain (no wildcard)
    # enables /ipfs and /routing (delegated routing)
    # public gateway with subdomain (needs wildcard)
    ipfs config Gateway.PublicGateways --json "{\"$KUBO_GATEWAY_DOMAIN\":{\"UseSubdomains\":false,\"Paths\":[\"/ipfs\",\"/routing\"]},\"$KUBO_GATEWAY_SUBDOMAIN\":{\"UseSubdomains\":true,\"Paths\":[\"/ipfs\",\"/routing\"]}}"
    
    # only reprovide pinned data
    # ipfs config Reprovider.Strategy "pinned"
    # ipfs config Reprovider.Strategy --json null