Switching to pulling ips from the host

This commit is contained in:
ulmentflam 2024-06-26 12:49:50 -04:00
parent e053d47f6e
commit fd155ce899
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ $STD ln -s /usr/local/kubo/ipfs /usr/local/bin/ipfs
ipfs init ipfs init
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001 ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080 ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://${IP}: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-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\"]"
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]'
msg_ok "Installed IPFS" msg_ok "Installed IPFS"