Go to file
Hector Sanjuan adb290ed2d Fix #639: restapi: Handle CORS preflight requests (OPTIONS)
This adds support for handling preflight requests in the REST API
and fixes currently mostly broken CORS.

Before we just let the user add custom response headers to the
configuration "headers" key but this is not the best way because
CORs headers and requests need special handling and doing it wrong
has security implications.

Therefore, I have added specific CORS-related configuration options
which control CORS behavour. We are forced to change the "headers"
defaults and will notify the users about this in the changelog.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-01-11 13:25:21 +01:00
.github Fix #412: Add an issue template 2018-05-30 14:43:04 +02:00
.gx gx publish 0.7.0 2018-11-01 19:49:36 +01:00
.snapcraft New credentials for pushing snaps 2018-01-10 18:33:33 +01:00
adder Feat #632: Keep default /add behaviour outside of conditional block 2019-01-07 14:10:16 +01:00
allocator Unrewrite deps 2018-12-17 14:16:38 +01:00
api Fix #639: restapi: Handle CORS preflight requests (OPTIONS) 2019-01-11 13:25:21 +01:00
ci Pre-create and pre-connect hosts in tests 2018-04-05 16:49:26 +02:00
cmd Merge pull request #627 from ipfs/issue_445 2019-01-08 18:26:53 +01:00
config Unrewrite deps 2018-12-17 14:16:38 +01:00
consensus/raft Unrewrite deps 2018-12-17 14:16:38 +01:00
deptools Update gx and gx-go to latest stable 2018-10-31 17:12:12 +01:00
docker Docker: Run with daemon --upgrade by default. 2018-04-27 07:57:08 +02:00
informer Unrewrite deps 2018-12-17 14:16:38 +01:00
ipfsconn/ipfshttp Update to go-ipfs-files 2.0.3 2018-12-17 14:29:44 +01:00
monitor Unrewrite deps 2018-12-17 14:16:38 +01:00
pintracker Feat #445: Use TrackerStatus as filter. Simplify and small misc. 2019-01-07 19:45:07 +01:00
pstoremgr Unrewrite deps 2018-12-17 14:16:38 +01:00
rpcutil Unrewrite deps 2018-12-17 14:16:38 +01:00
sharness Added tests for /monitor/metrics/{metrics_type} 2018-12-21 08:24:40 +05:30
snap Fix publishing snaps 2018-10-25 12:40:33 +02:00
state Unrewrite deps 2018-12-17 14:16:38 +01:00
test Fix #382: Extract headers from IPFS API requests & apply them to hijacked ones. 2018-12-18 16:05:12 +01:00
version Fix #382: Extract headers from IPFS API requests & apply them to hijacked ones. 2018-12-18 16:05:12 +01:00
.codeclimate.yml codeclimate 2018-08-07 20:12:05 +02:00
.dockerignore Issue #259: Address CR comments 2017-12-04 13:59:48 +01:00
.gitignore Add a docker-compose.yml example with 2 peers and auto-bootstrap. 2018-10-23 18:25:43 +02:00
.travis.yml Fix publishing snaps 2018-10-25 12:40:33 +02:00
add_test.go Fix #543: Use only healthy peers when adding everywhere (+tests) 2018-09-27 08:12:29 +02:00
allocate.go Unrewrite deps 2018-12-17 14:16:38 +01:00
CHANGELOG.md Update 0.7.0 date 2018-11-01 22:55:56 +01:00
cluster_config_test.go add env config; refactor LoadJSON tests 2018-10-26 19:38:30 +10:00
cluster_config.go Unrewrite deps 2018-12-17 14:16:38 +01:00
cluster_test.go Fix #382: Extract headers from IPFS API requests & apply them to hijacked ones. 2018-12-18 16:05:12 +01:00
cluster.go Feat #445: Use TrackerStatus as filter. Simplify and small misc. 2019-01-07 19:45:07 +01:00
clusterhost.go Unrewrite deps 2018-12-17 14:16:38 +01:00
config_test.go Remove proxy_ prefix from testing configurations 2018-12-17 12:34:04 +01:00
connect_graph.go Unrewrite deps 2018-12-17 14:16:38 +01:00
CONTRIBUTING.md Docs: Move to website. 2018-04-27 09:05:11 +02:00
docker-compose.yml Set CLUSTER_SECRET from shell 2018-10-24 21:20:53 +02:00
Dockerfile Update to go-1.11 2018-10-01 12:03:08 +02:00
Dockerfile-bundle Docker: Run with daemon --upgrade by default. 2018-04-27 07:57:08 +02:00
Dockerfile-test Put a note for deprecating json fields 2018-12-17 08:24:17 +05:30
ipfscluster_test.go Fix #382: Extract headers from IPFS API requests & apply them to hijacked ones. 2018-12-18 16:05:12 +01:00
ipfscluster.go Unrewrite deps 2018-12-17 14:16:38 +01:00
LICENSE ipfscluster-server executable 2016-12-21 19:37:25 +01:00
logging.go Unrewrite deps 2018-12-17 14:16:38 +01:00
Makefile Set CLUSTER_SECRET from shell 2018-10-24 21:20:53 +02:00
package.json Fix #639: Import rs/cors with Gx 2019-01-11 12:36:04 +01:00
peer_manager_test.go Unrewrite deps 2018-12-17 14:16:38 +01:00
pnet_test.go Feat: Enable DHT-based peer discovery and routing for cluster peers 2018-07-24 15:33:41 +02:00
README.md Copyedit in README 2018-09-26 07:54:51 +10:00
release.sh Fix #382: Extract headers from IPFS API requests & apply them to hijacked ones. 2018-12-18 16:05:12 +01:00
rpc_api.go Unrewrite deps 2018-12-17 14:16:38 +01:00
util.go Unrewrite deps 2018-12-17 14:16:38 +01:00

IPFS Cluster

Made by Main project IRC channel standard-readme compliant GoDoc Go Report Card Build Status Coverage Status

Pinset orchestration for IPFS.

logo

IPFS Cluster is a stand-alone application and a CLI client that allocates, replicates, and tracks pins across a cluster of IPFS daemons.

It provides:

  • A cluster peer application: ipfs-cluster-service, to be run along with go-ipfs.
  • A client CLI application: ipfs-cluster-ctl, which allows easily interacting with the peer's HTTP API.

Are you using IPFS Cluster?

Please participate in the IPFS Cluster user registry.


Table of Contents

Documentation

Please visit https://cluster.ipfs.io/documentation/ to access user documentation, guides and any other resources, including detailed download and usage instructions.

News & Roadmap

We regularly post project updates to https://cluster.ipfs.io/news/ .

The most up-to-date Roadmap is available at https://cluster.ipfs.io/roadmap/ .

Install

Instructions for different installation methods (including from source) are available at https://cluster.ipfs.io/documentation/download .

Usage

Extensive usage information is provided at https://cluster.ipfs.io/documentation/ , including:

Contribute

PRs accepted. As part of the IPFS project, we have some contribution guidelines.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © Protocol Labs, Inc.