Fix the ipfs config
The whole thing was inconsistent and didn't work when creating a server from scratch
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user