mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Added ipfs_server
This commit is contained in:
parent
0e24ec1b90
commit
0fc9af3329
11
Scripts/ipfs_server
Executable file
11
Scripts/ipfs_server
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
ipfs init --profile server
|
||||
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
|
||||
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8765
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://pi:5001", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
||||
echo "NOTE: Make sure IPv4/v6 port 4001 is open by your router!"
|
||||
ipfs daemon &
|
||||
#taskset 0x7 ipfs daemon &
|
||||
|
Loading…
Reference in New Issue
Block a user