Update IPFS to the latest release
Also fix the ipfs config
This commit is contained in:
@@ -8,3 +8,4 @@ version '0.1.0'
|
||||
|
||||
depends 'ipfs'
|
||||
depends 'kosmos-base'
|
||||
depends 'kosmos-nginx'
|
||||
|
||||
@@ -18,7 +18,7 @@ end
|
||||
|
||||
# Set up the Gateway to be writable
|
||||
ipfs_config "Gateway.Writable" do
|
||||
value true
|
||||
value "true"
|
||||
end
|
||||
|
||||
# Set up CORS headers
|
||||
@@ -26,7 +26,7 @@ ipfs_config "API.HTTPHeaders.Access-Control-Allow-Credentials" do
|
||||
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 '["*"]'
|
||||
|
||||
@@ -12,9 +12,11 @@ unless node.chef_environment == "development"
|
||||
include_recipe "kosmos-base::letsencrypt"
|
||||
end
|
||||
|
||||
include_recipe "kosmos-nginx"
|
||||
|
||||
root_directory = "/var/www/ipfs.kosmos.org"
|
||||
|
||||
directory "#{root_directory}/.well-known" do
|
||||
directory "#{root_directory}/.well-known/acme-challenge" do
|
||||
owner node["nginx"]["user"]
|
||||
group node["nginx"]["group"]
|
||||
action :create
|
||||
|
||||
Reference in New Issue
Block a user