Add object/data endpoint to IPFS nginx config

This is needed for the ipfs-api client to store data from e.g.
kosmos-web.
This commit is contained in:
Basti 2017-06-15 14:49:57 -07:00
parent afc07c3192
commit b351bad994

View File

@ -35,14 +35,15 @@ server {
location /api/v0/cat { location /api/v0/cat {
proxy_pass http://_ipfs/api/v0/cat; proxy_pass http://_ipfs/api/v0/cat;
} }
location /api/v0/add { location /api/v0/add {
proxy_pass http://_ipfs/api/v0/add; proxy_pass http://_ipfs/api/v0/add;
} }
location /api/v0/object/get { location /api/v0/object/get {
proxy_pass http://_ipfs/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) -%> <% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
ssl_certificate <%= @ssl_cert %>; ssl_certificate <%= @ssl_cert %>;