From 441a96c956e780ecb607dc3b4cc898aa26276a79 Mon Sep 17 00:00:00 2001 From: ulmentflam Date: Wed, 26 Jun 2024 12:54:09 -0400 Subject: [PATCH] Changing host script --- install/ipfs-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/ipfs-install.sh b/install/ipfs-install.sh index bb377192..205b2598 100644 --- a/install/ipfs-install.sh +++ b/install/ipfs-install.sh @@ -28,7 +28,8 @@ $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:/$(hostname -I | awk '{print $1}'):5001\", \"http://localhost:3000\", \"http://127.0.0.1:5001\", \"https://webui.ipfs.io\", \"http://0.0.0.0:5001\"]" +LXCIP=$(hostname -I | awk '{print $1}') +ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http:/${LXCIP}: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"