ipfs-node-server-static
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "ipfs-node-server-static", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Static file server middleware for ipfs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
IPFS Middleware | ||
=============== | ||
Server ipfs objects from `/ipfs/` on a server. | ||
Server ipfs objects from `/ipfs/` on a server through the API | ||
interface. | ||
By default only objects are served and actual api access is disabled. | ||
See other options at the end to enable the API. | ||
If you wish to simply serve static files through the ipfs gateway | ||
I guess you guys [proxy-middleware](https://www.npmjs.com/package/proxy-middleware) | ||
Install | ||
@@ -62,2 +69,8 @@ ``` | ||
`api`: true - Enables api pass through via /api/ | ||
*API* | ||
By default `ipfs-node-server-static` uses the api to fullfil requests. You | ||
can enable the pass of `/api/` as well by passing true to the `api` option. | ||
``` | ||
var ipfs_static = require('./')('localhost', 5001, {api: true}) | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5599
6
76