From b351bad9946c2142f54cd069334cb6a874c96574 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 15 Jun 2017 14:49:57 -0700 Subject: [PATCH] Add object/data endpoint to IPFS nginx config This is needed for the ipfs-api client to store data from e.g. kosmos-web. --- .../templates/default/nginx_conf_ipfs.kosmos.org.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site-cookbooks/kosmos-ipfs/templates/default/nginx_conf_ipfs.kosmos.org.erb b/site-cookbooks/kosmos-ipfs/templates/default/nginx_conf_ipfs.kosmos.org.erb index 9afd2ea..f2321a2 100644 --- a/site-cookbooks/kosmos-ipfs/templates/default/nginx_conf_ipfs.kosmos.org.erb +++ b/site-cookbooks/kosmos-ipfs/templates/default/nginx_conf_ipfs.kosmos.org.erb @@ -35,14 +35,15 @@ server { location /api/v0/cat { proxy_pass http://_ipfs/api/v0/cat; } - location /api/v0/add { proxy_pass http://_ipfs/api/v0/add; } - location /api/v0/object/get { proxy_pass http://_ipfs/api/v0/object/get; } + location /api/v0/object/data { + proxy_pass http://_ipfs/api/v0/object/data; + } <% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%> ssl_certificate <%= @ssl_cert %>;