1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-24 07:15:27 +02:00
Files
Scripts
MD5.ps1
Robocopy.bat
SHA1.ps1
SHA256.ps1
alert.ps1
calculator.ps1
calibre-server
cc_find_changes.bat
cc_transfer_mastership.bat
check_windows_system_files.bat
crash_dumps.ps1
domain_table.csv
download.ps1
email.ps1
empty-dir.ps1
exe_info.ps1
hashdir
init-git.ps1
ipfs-publish
ipfs-server
latlong.ps1
list-cmdlets.ps1
list-empty-dirs.ps1
list-modules.ps1
list-processes.ps1
list-unused-files.ps1
make-install.ps1
moon.ps1
news.ps1
password.ps1
passwords.ps1
poweroff.ps1
reboot.ps1
screenshot.ps1
screenshots.ps1
speak.ps1
status
swap2ram
test.ps1
train-dns-cache.ps1
translate.ps1
txt2wav.ps1
validate-xml.ps1
wakeup.ps1
weather-alert.ps1
weather-report.ps1
weather-worldwide.ps1
weather.ps1
worldcities.csv
worldcities_license.txt
zip-dir.ps1
LICENSE
README.md
PowerShell/Scripts/ipfs-server
2020-10-16 15:24:25 +00:00

20 lines
633 B
Bash
Executable File

#!/bin/sh
# Syntax: ./ipfs-server
# Description: starts an IPFS server
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
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 port 4001 for IPv4/v6 is open by your router!"
ipfs daemon --enable-pubsub-experiment &
exit 0