github.com/kotalco/kotal@v0.3.0/controllers/ipfs/config_ipfs.sh (about)

     1  #!/bin/sh
     2  
     3  set -e
     4  
     5  ipfs config Addresses.API /ip4/$IPFS_API_HOST/tcp/$IPFS_API_PORT
     6  ipfs config Addresses.Gateway /ip4/$IPFS_GATEWAY_HOST/tcp/$IPFS_GATEWAY_PORT
     7  
     8  export IFS=";"
     9  for profile in $IPFS_PROFILES; do
    10      ipfs config profile apply $profile
    11      echo "$profile profile has been applied"
    12  done