Fix the ipfs config

The whole thing was inconsistent and didn't work when creating a server
from scratch
This commit is contained in:
Greg Karékinian
2018-08-06 12:14:20 +02:00
parent b2d92723d7
commit d0f2275ebb
3 changed files with 11 additions and 13 deletions

View File

@@ -7,6 +7,7 @@
# All rights reserved - Do Not Redistribute
#
require 'json'
include_recipe "ipfs"
# Configure ipfs
@@ -18,18 +19,18 @@ end
# Set up the Gateway to be writable
ipfs_config "Gateway.Writable" do
value "true"
value true
end
# Set up CORS headers
ipfs_config "API.HTTPHeaders.Access-Control-Allow-Credentials" do
value '["true"]'
value ["true"]
end
ipfs_config "API.HTTPHeaders.Access-Control-Allow-Methods" do
value '["PUT","GET","POST"]'
value ["PUT", "GET", "POST"]
end
ipfs_config "API.HTTPHeaders.Access-Control-Allow-Origin" do
value '["*"]'
value ["*"]
end
include_recipe "kosmos-ipfs::letsencrypt"