Brian Tiger Chow
951ff4f747
repo is owned by node, so close the node
2015-02-01 21:54:17 -08:00
Brian Tiger Chow
cbed858993
use plain-old core.IPFSNode constructor in daemon command
...
fix(cmd/daemon) set node on req context since it expects daemon to be
present when handling commands over the API
@jbenet revenge of the request context redux
2015-02-01 21:53:45 -08:00
Juan Batiz-Benet
c372255807
daemon: fix output + time waiting
2015-02-01 04:29:32 -08:00
Juan Batiz-Benet
f1d34a2a85
test/sharness: fix errors
...
- core: daemon stdout print to cmd + daemon init checks
- core: fixed bug where the gateway was printed as "API"
- sharness/test-lib: daemon init checks
- sharness/test-lib: portable TCP port check
- sharness/init: fix test bits output
- sharness: use common hashes in one place.
- move t0100-http-gateway -> t0111-gateway-writable
- sharness: test-lib funcs for gateway config
- sharness/t0111-gateway-writable: use sh funcs
- sharness/t0111-gateway-writable: fixes
- escape all vars (always `cmd "$VAR"` never `cmd $VAR`)
- use $FILEPATH, not $path
- last test seems to fail
2015-01-31 22:54:34 -08:00
Mildred Ki'Lya
7d09da3c8b
Make gateway read-only by default and add option to make it writable
2015-01-31 23:36:45 +01:00
Juan Batiz-Benet
73234479fa
init docs: go generated welcome dir + files
...
updated sharness hashes
2015-01-31 07:51:30 -08:00
Matt Bell
7c5b276179
cmd/ipfs: daemon: Added root redirect handler to corehttp options (for both gateway and API)
2015-01-28 16:01:42 -08:00
Juan Batiz-Benet
76d9d89aff
user friendliness in logs + output
2015-01-26 17:01:00 -08:00
Brian Tiger Chow
4b78b535b6
perform multiaddr conversion in the function
2015-01-24 01:37:03 -08:00
Brian Tiger Chow
e9d3c9828c
perform multiaddr conversion in the function
2015-01-24 01:32:27 -08:00
Matt Bell
7b4de230eb
commands: Refactored Command#Run function signature to (req Request, res Response)
2015-01-23 18:29:29 -08:00
Brian Tiger Chow
fadedf9e68
refactor(core) extract corehttp package
...
PACKAGE DOCUMENTATION
package corehttp
FUNCTIONS
func GatewayOption(n *core.IpfsNode, mux *http.ServeMux) error
func ListenAndServe(n *core.IpfsNode, addr ma.Multiaddr, options
...ServeOption) error
func WebUIOption(n *core.IpfsNode, mux *http.ServeMux) error
TYPES
type ServeOption func(*core.IpfsNode, *http.ServeMux) error
func DaemonOption(cctx commands.Context) ServeOption
2015-01-22 01:08:59 -08:00
Brian Tiger Chow
40e41d24f7
feat(fsrepo): protect with a repo lockfile
...
NB: daemon is one spot the repo lock is typically acquired
2015-01-14 03:02:23 -08:00
Juan Batiz-Benet
cac7e025b8
daemon: log error from gateway
2015-01-12 01:31:59 -08:00
Juan Batiz-Benet
4afb4e090f
daemon gateway async
2015-01-12 01:14:32 -08:00
Juan Batiz-Benet
2c83cd5627
daemon: only try gateway addr if there
2015-01-12 01:05:15 -08:00
Juan Batiz-Benet
ed41ac27fd
daemon: refactor common parts of serve funcs
2015-01-12 01:01:21 -08:00
Matt Bell
f39f3fe432
cmd/ipfs: Redirect requests to /webui to webui app
2015-01-11 22:15:33 -08:00
Matt Bell
e25b08231c
cmd/ipfs: Renamed 'ipfsHandler' to 'gatewayHandler'
2015-01-11 22:15:33 -08:00
Matt Bell
cb84a376bd
cmd/ipfs: Added an ipfsHandler constructor
2015-01-11 22:15:33 -08:00
Simon Kirkby
32823d2085
Static Website serving and listing
...
adds
trailing slash redirection
index.html return
templated directory listing
Signed off : Simon Kirkby <tigger@interthingy.com>
2015-01-11 22:15:33 -08:00
Matt Bell
9119435cb6
cmd/ipfs: Added gateway server to daemon
2015-01-11 22:15:32 -08:00
Juan Batiz-Benet
cf62f63b58
better daemon + main exit semantics
2015-01-04 00:47:27 -08:00
Juan Batiz-Benet
e21b1f662b
fuse mount lifecycle fixes
...
This commit cleans up how mounting was being done.
It now successfully signals when it is properly mounted
and listen to close signals correctly.
2015-01-04 00:47:27 -08:00
Matt Bell
706ebe8d24
daemon: Set allowed API origins in API_ORIGIN environment variable
2014-11-25 06:12:35 -08:00
Jeromy
34da5f039c
log formatting (info -> infof)
2014-11-21 03:54:26 +00:00
Juan Batiz-Benet
43452fdeb7
updated multiaddr + multiaddr-net
...
I broke out multiaddr/net to its own package so
that multiaddr parsing could remain lean. multiaddr-net
will vendor special implementations of protocols (like utp)
2014-11-20 00:58:48 -08:00
Juan Batiz-Benet
a7d1fd42d8
updating daemon addr output
2014-11-18 08:19:25 -08:00
Brian Tiger Chow
e12edd2053
fix(daemon) ensure IPFS is initialized before starting the daemon
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-18 06:42:44 -08:00
Juan Batiz-Benet
5aaa45db9a
transitioned ipfs2 -> ipfs
2014-11-18 06:15:00 -08:00