Jeromy
ff30558195
make it easier to create custom dag objects via the CLI
2015-02-23 21:33:38 -08:00
Jeromy
69e09d40c5
add version info endpoint to gateway
2015-02-20 11:49:48 -08:00
Jeromy
15b181ffe2
return early from add PostRun if error is set
2015-02-19 13:52:30 -08:00
Jeromy
a29c0fc751
move blocking calls out of single threaded loops, cancel contexts ASAP
2015-02-19 06:04:39 +00:00
Jeromy
3cda8ca685
teach ipfs refs -r how to use GetBlocks
2015-02-19 03:21:55 +00:00
Jeromy
5253b6ab13
pass routed host into bitswap construction
2015-02-18 19:11:38 +00:00
Jeromy
03c0b2d3e0
keep routing logic out of NewStream on routedHost
2015-02-18 19:11:37 +00:00
Jeromy
6241c25984
make contructor code a little less magical
2015-02-18 19:11:33 +00:00
Jeromy
e40e5699f9
use a routedHost in the core node constructor
2015-02-18 18:56:57 +00:00
Jeromy
d8d933c862
move core/net.go to 'corenet' and change interface a tad
2015-02-18 18:56:56 +00:00
Jeromy
8b8a600a81
add dial and listen methods to the core for super awesomeness
2015-02-18 18:56:56 +00:00
Juan Batiz-Benet
34e4d8c3a6
updated webui
2015-02-16 13:53:21 -08:00
Juan Batiz-Benet
01feeac1bb
new webui hash
2015-02-16 04:34:36 -08:00
Juan Batiz-Benet
cc8ed14e7a
bootstrap: update bootstrapping process.
...
Note: the dht-specific part of the bootstrap function
was only there to make sure to call `dht.Update(ctx, npeer)`.
This already happens on all new connections made by the
network, as the dht is signed up for notifications.
2015-02-15 04:41:16 -08:00
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