From 0072061aa0ee3e1dec238d40071bee76d2e8511b Mon Sep 17 00:00:00 2001 From: ulmentflam Date: Wed, 26 Jun 2024 12:15:41 -0400 Subject: [PATCH] Adding configs to the install script --- install/ipfs-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/ipfs-install.sh b/install/ipfs-install.sh index 6b3be6e0..204155a7 100644 --- a/install/ipfs-install.sh +++ b/install/ipfs-install.sh @@ -26,6 +26,10 @@ wget -q "$(curl -s "https://api.github.com/repos/ipfs/kubo/releases/latest" | gr tar -xzf kubo*linux-amd64.tar.gz -C /usr/local $STD ln -s /usr/local/kubo/ipfs /usr/local/bin/ipfs ipfs init +ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001 +ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080 +ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://192.168.68.99:5001", "http://localhost:3000", "http://127.0.0.1:5001", "https://webui.ipfs.io", "http://0.0.0.0:5001"]' +ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]' msg_ok "Installed IPFS" msg_info "Creating Service"