12 lines
246 B
Bash
Executable File
12 lines
246 B
Bash
Executable File
#!/bin/sh
|
|
|
|
daemon="${1:-nginx}"
|
|
|
|
if [[ "$daemon" = "nginx" ]]; then
|
|
nginx -g 'daemon off;'
|
|
elif [[ "$daemon" = "ipfs" ]]; then
|
|
ipfs config profile apply server
|
|
ipfs config --json Addresses.Gateway '"/ip4/127.0.0.1/tcp/80"'
|
|
ipfs daemon
|
|
fi
|