Commit Graph

694 Commits

Author SHA1 Message Date
Brian Tiger Chow
9dd12922b3 refactor(routing) expose Bootstrap() error on routing interface 2015-02-15 04:41:16 -08:00
Brian Tiger Chow
1dfcce9f5a fix(grc) move Bootstrap method onto routing interface 2015-02-15 04:41:16 -08:00
Brian Tiger Chow
19eb35137b refactor(routing) rename grandcentral to supernode
thanks @mappum

remove .go-ipfs
2015-02-15 04:41:10 -08:00
Brian Tiger Chow
770489ab2c fix(corerouting) remove TODO. no longer applies now that routing servers are specified manually 2015-02-14 14:13:56 -08:00
Brian Tiger Chow
a6710e9f53 feat(gcr/s) comment 2015-02-14 14:13:56 -08:00
Brian Tiger Chow
9e5b3b7773 refactor(gcr/c) pass host.Host into GCR client 2015-02-14 14:13:54 -08:00
Brian Tiger Chow
46bbd11e6b fix(gcr/s,c) register stream handlers 2015-02-14 14:13:54 -08:00
Brian Tiger Chow
d80e9aba7a feat(gcr/c) add support for multiple servers 2015-02-14 14:13:54 -08:00
Brian Tiger Chow
73b544c932 feat(corerouting) add package for custom routing options
fix(corerouting): connect to routing servers when setting up GCR client

doc(corerouting) add TODO to move stuff to routing bootstrap
2015-02-14 14:13:54 -08:00
Juan Batiz-Benet
247649969e Merge pull request #726 from kevinwallace/gateway_hostname
gateway: attempt to resolve hostname to ipfs path
2015-02-12 18:52:16 -08:00
Jeromy Johnson
6eb5d8ea77 Merge pull request #774 from jbenet/block-put-fix
Fixed 'ipfs block put' panic
2015-02-11 20:21:11 -08:00
Matt Bell
bbca9a1c37 Fixed 'ipfs block put' panic 2015-02-11 14:56:36 -08:00
Jeromy
7a2545a14b implement nodebuilder 2015-02-11 21:47:07 +00:00
Jeromy
140c70d772 document some packages 2015-02-10 22:59:10 +00:00
Kevin Wallace
e5abf0764c corehttp: add test for gateway with mocked namesys
License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 12:54:43 -08:00
Kevin Wallace
794b7b7b3e corehttp: tear off makeHandler, for tests
License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 12:50:47 -08:00
Kevin Wallace
084cdc3ed8 gateway: attempt to resolve hostname to ipfs path
This allows someone to host a static site by pointing a TXT record at their
content in IPFS, and a CNAME record at an IPFS gateway.

Note that such a setup technically violates RFC1912 (section 2.4; "A CNAME
record is not allowed to coexist with any other data."), but tends to work in
practice.

We may want to consider changing the DNS->IPFS resolution scheme to allow this
scenario to be RFC-compliant (e.g. store the mapping on a well-known subdomain
to allow CNAME records on the domain itself).

License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 11:27:06 -08:00
Kevin Wallace
fbd76ebb5b corehttp: ServeOption supports chaining muxes
Each option now additionally returns the mux to be used by future options. If
every options returns the mux it was passed, the current behavior is unchanged.

However, if the option returns an a new mux, it can mediate requests to handlers
provided by future options:

    return func(n *core.IpfsNode, mux *http.ServeMux) (*http.ServeMux, error) {
      childMux := http.NewServeMux()
      mux.Handle("/", handlerThatDelegatesToChildMux)
      return childMux, nil
    }

License: MIT
Signed-off-by: Kevin Wallace <kevin@pentabarf.net>
2015-02-08 11:27:06 -08:00
Juan Batiz-Benet
872c64dd79 gateway: dont cache ipns paths
ipns paths are mutable and should not be cached. this error is
a byproduct of the currently messy gateway route. We should split
the /ipfs and /ipns routes up.
2015-02-07 10:10:05 -08:00
Brian Tiger Chow
8558838d00 fix(core) check nil for _all_ owned resources
since construction can fail, and construction is non-trivial, it's
probably safer to never assume resource exists.

cc @jbenet @whyrusleeping
2015-02-06 11:22:43 -07:00
Brian Tiger Chow
db644fe1b7 allow access to the field for convenience
decalarative configuration is superior. the thread-safety because
important during normal operation
2015-02-06 08:13:15 -08:00
Juan Batiz-Benet
64a4c27913 corehttp: allow all webui paths we published.
Otherwise we break users links! cc @mappum
2015-02-06 07:30:42 -08:00
Matt Bell
0195c03664 core/corehttp: Updated WebUI hash 2015-02-04 23:51:06 -08:00
Matt Bell
2d173c3a25 core/corehttp: Return 403 for blocked requests instead of 404 2015-02-04 18:46:59 -08:00
Matt Bell
b1ca07d6c5 core/corehttp: Added gateway path whitelisting 2015-02-04 18:46:54 -08:00
Matt Bell
262e78122a core/corehttp: Added Suborigin header to gateway responses 2015-02-04 16:53:24 -08:00
Brian Tiger Chow
d50a7ff003 feat(corehttp) add a Gateway blocklist
use pointer

use func

comment on decider to clarify whether it allows or denies

fix set conf

gstw
2015-02-04 16:17:39 -08:00
Jeromy
2501a7c7b7 update UI from PR comments 2015-02-04 23:07:13 +00:00
Jeromy
4770c5e142 only expose IpfsNode as param 2015-02-04 23:07:13 +00:00
Jeromy
b79fffc965 implement metadata node for unixfs and other 2015-02-04 23:07:12 +00:00
Juan Batiz-Benet
e384aec2a9 cmds/root: ipfs root text arrangement 2015-02-03 12:17:59 -08:00
Juan Batiz-Benet
10cd499a8b cmds/swarm connect had broken 2015-02-03 05:51:31 -08:00
Juan Batiz-Benet
581c4e558e cmds/id: show self addrs 2015-02-03 05:51:31 -08:00
Juan Batiz-Benet
58f39687cf logs: removed all log.Errors unhelpful to users
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
2015-02-03 01:06:07 -08:00
Juan Batiz-Benet
d13876ffe9 commands/id: version was flipped 2015-02-02 21:05:32 -08:00
Juan Batiz-Benet
b0a1cf0371 ipfs swarm addrs: print out known addresses
this will help us introspect what's going on.
2015-02-02 21:05:32 -08:00
Juan Batiz-Benet
e908effb4b AddrManager: use addr manager with smarter TTLs
This addr manager should seriously help with the addrsplosion
problem.
2015-02-02 21:04:14 -08:00
Matt Bell
e5f3ac99c3 core/coreunix: Documented return values 2015-02-02 10:13:33 -08:00
Matt Bell
1ad5b345b8 core/commands: add: Added -w/--wrap-with-directory option 2015-02-02 10:07:35 -08:00
Matt Bell
62333521c6 core/coreunix: Created 'AddWrapped' function to add files with a wrapped directory (to preserve filename in path) 2015-02-02 10:07:35 -08:00
Jeromy
061a866306 ensure dagreaders are cleaned up after 'cat' command finishes 2015-02-02 08:33:54 +00:00
Brian Tiger Chow
88fa7388de feat(core) add shutdown message 2015-02-01 21:54:20 -08:00
Brian Tiger Chow
d0f9be56e7 refac(core) privatize method 2015-02-01 21:54:20 -08:00
Brian Tiger Chow
1beef957da refac(core): expose core.OnlineWithRouting constructor option
fix FIXUP maybeRouter in core
2015-02-01 21:54:19 -08:00
Brian Tiger Chow
c114b04ae1 feat(bitswap): synchronous close 2015-02-01 21:54:19 -08:00
Juan Batiz-Benet
c43f539f3d cmds/cat: fix length to use reader.Size()
unixfs file size != merkledag cumulative size
2015-02-01 19:24:36 -08:00
Juan Batiz-Benet
aff1d8bdcf ipfs swarm disconnect (opposite of connect) 2015-02-01 06:37:14 -08:00
Juan Batiz-Benet
3cd3424900 cmds/swarm: now speaks ipfsaddr (.../ipfs...) 2015-02-01 06:36:51 -08:00
Juan Batiz-Benet
bebc3ca0fd cmd/bootstrap: bugfix on add (dedup) 2015-02-01 06:07:21 -08:00
Juan Batiz-Benet
188d336204 cmds/bootstrap: fix marshalling + listing errors 2015-02-01 05:36:07 -08:00