Skip to content

Commit

Permalink
remove http header config
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyongri110 committed Apr 23, 2020
1 parent d0d2979 commit 7f4b0b1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions install_btfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ go clean -modcache
make install
btfs init

# cross-origin resource sharing
btfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"*\"]"
btfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST", "OPTIONS"]'
btfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"
btfs config Addresses.API /ip4/0.0.0.0/tcp/5001
btfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080

# echo a message if btfs is installed successfully
var_btfs=$(which btfs)
if [ -n "$var_btfs" ]; then
Expand Down

0 comments on commit 7f4b0b1

Please sign in to comment.