mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-27 02:14:31 +01:00
Add restart mechanism
This commit is contained in:
parent
4d952583fd
commit
0d3f421d3a
@ -11,12 +11,14 @@ ipfs init --profile server
|
|||||||
|
|
||||||
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/8765
|
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8765
|
||||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://$HOSTNAME:5001", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://raspi:5001", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
|
||||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
||||||
|
|
||||||
echo "NOTE: Make sure port 4001 for IPv4/v6 is open by your router!"
|
echo "NOTE: Make sure port 4001 for IPv4/v6 is open by your router!"
|
||||||
while true; do
|
while true; do
|
||||||
ipfs daemon
|
ipfs daemon
|
||||||
|
echo "IPFS server has stopped, restarting ..."
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user