Commit Graph

640 Commits

Author SHA1 Message Date
Lars Gierth
caec086c28 metrics: add prometheus back
With a proper IpfsCollector object and tests, this time.
The collector object makes it easy to add further metrics,
like e.g. bitswap wants/provs.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 19:33:16 -07:00
Jeromy
bdc5456d52 update libp2p dep to fix hanging listeners problem
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-11 12:52:54 -07:00
Jeromy
8f3a51ac42 switch to new libp2p with mss crypto
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Jeromy
e661832575 hide fd adjusting code behind daemon feature flag
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 07:41:09 -07:00
Jeromy
0cb01acd71 don't use Max for setting Current
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-06 18:09:50 -07:00
Jeromy
48ee44c46a try to raise ulimit if its too low
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-06 18:09:50 -07:00
Lars Gierth
09937f84b6 gateway: enforce allowlist for path prefixes
The gateway accepts an X-Ipfs-Path-Prefix header,
and assumes that it is mounted in a reverse proxy
like nginx, at this path. Links in directory listings,
as well as trailing-slash redirects need to be rewritten
with that prefix in mind.

We don't want a potential attacker to be able to
pass in arbitrary path prefixes, which would end up
in redirects and directory listings, which is why
every prefix has to be explicitly allowed in the config.

Previously, we'd accept *any* X-Ipfs-Path-Prefix header.

Example:

We mount blog.ipfs.io (a dnslink page) at ipfs.io/blog.

nginx_ipfs.conf:

    location /blog/ {
        rewrite "^/blog(/.*)$" $1 break;
        proxy_set_header Host blog.ipfs.io;
        proxy_set_header X-Ipfs-Gateway-Prefix /blog;
        proxy_pass http://127.0.0.1:8080;
    }

.ipfs/config:

    "Gateway": {
        "PathPrefixes": ["/blog"],
        // ...
    },

dnslink:

    > dig TXT _dnslink.blog.ipfs.io
    dnslink=/ipfs/QmWcBjXPAEdhXDATV4ghUpkAonNBbiyFx1VmmHcQe9HEGd

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-04 16:31:57 -04:00
Jeromy
9f75ac4d75 update utp and cleanup more godeps along the way
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-29 19:18:14 -07:00
Jeromy
97d583dd8f update libp2p dep
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-09 09:53:19 -08:00
Jeromy
d7dab3afea Use gx vendored go-ipfs-utils where possible
For the rest of the packages in util, move them to thirdparty
and update the references. util is gone!

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Jeromy
3faedb5208 remove goprocess from godeps, use gx vendored one
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Stephen Whitmore
40a49c8399 Mounts detect unmounts and track mount state.
This lets FUSE mounts to track whether they are active or not by
tracking when fs.Serve terminates.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-07 19:54:59 -08:00
Jeromy Johnson
5a0b8023be Merge pull request #2256 from ipfs/feat/gx-libp2p
vendor libp2p with gx
2016-02-05 16:52:02 -08:00
Jeromy
c9b83c506c makefile fixes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-05 15:50:40 -08:00
Jeromy Johnson
b11abe283b Merge pull request #2267 from rht/wire/ctx-http-request-2
Directly wire ctx into http request
2016-02-04 10:24:26 -08:00
Jeromy Johnson
8fadb11ae3 Merge pull request #2284 from Kubuxu/fix/#2035
Change sample API origin settings from wildcard to example.com
2016-02-02 22:35:27 -08:00
Thomas Gardner
aaa6569f2c trivial: various superficial fixes
misc/completion/ipfs-completion.bash: add `ipfs stats` to BASH completion

core/commands/mount_unix.go: ensure error is not nil before printing it

contribute.md: fix bibliography indexing in example

core/commands/swarm.go: change tabs to spaces in USAGE message

*: 80-column readability improvements

License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-02-03 15:46:28 +10:00
Jakub Sztandera
e26c1fe60a Change sample API origin settings from wildcard to example.com
Resolves #2035

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@gmail.com>
2016-02-02 22:24:07 +01:00
Jeromy
2263539c1c do that last thing again
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 15:37:39 -08:00
Jeromy
c0101c0c4b update libp2p dep
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 10:19:50 -08:00
Jeromy
b5a93ead62 gx install stuff in cmd/ipfs/Makefile
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:14 -08:00
Jeromy
0e8a6700f9 correct go-log dep
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:10 -08:00
Jeromy
3d0aa592ec go-keyspace dep from libp2p added
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:08 -08:00
Jeromy
0e312f5caf initial vendoring of libp2p outside of the repo with gx
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:06 -08:00
rht
6f76129b87 Simplify context canceled err message
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-30 10:26:35 +07:00
Jeromy Johnson
8207fa7d07 Merge pull request #2244 from ipfs/feature/capitalize-and-periods
Capitalized beginning of line messages, added periods
2016-01-26 22:31:02 -08:00
Richard Littauer
38647fad92 Added small note about shutdown
See https://github.com/ipfs/go-ipfs/pull/2180#issuecomment-171889567

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-24 22:41:52 +00:00
Richard Littauer
28fe2e4f4c Capitalized beginning of line messages, added periods
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-24 22:39:34 +00:00
rht
6cfc00e18b Merge pull request #2231 from rht/docs/punc-caps
Fix punc-caps issues of cli Tagline
2016-01-23 12:52:08 +07:00
rht
f5b8c7c4ef Merge pull request #2180 from ipfs/feature/shutdown
Edited following @chriscool feedback
2016-01-23 12:10:59 +07:00
rht
21e39240ab Fix punc-caps issues of cli Tagline
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-22 02:36:17 +07:00
Richard Littauer
6f222711d9 Added env var info to init, dameon help
See #1296

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-13 10:56:34 -05:00
Richard Littauer
48353a7036 Edited following @chriscool feedback
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-12 16:35:04 -05:00
Jeromy
b5ef584f40 replace go-psutil with go-sysinfo
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
f3f776067a remove old update code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy Johnson
453d30ae9b Merge pull request #2159 from ipfs/feature/shutdown
Added a shutdown note to daemon description
2016-01-10 20:11:32 +01:00
Yuval Langer
7fb8fecea0 Fix typo.
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-01-08 07:57:52 +02:00
Richard Littauer
dec4a72da1 Added a shutdown note to daemon dsec
Cf https://github.com/ipfs/support/issues/5

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-07 13:12:54 -05:00
Jeromy
0dd3735a45 run external commands client side
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-30 11:08:09 -08:00
rht
0123971118 Move api version check to header
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-12-28 03:48:50 -08:00
Lars Gierth
0b50080b68 seccat: fix secio context
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-21 01:21:38 +01:00
rht
48a33ffb67 Add fixed period repo GC + test
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-10 14:03:29 +07:00
Jeromy
a23609fc4d improve conn refused error check
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

rewrite path to filepath in fsrepo

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

remove api file on repo close

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

update function to check normal net.OpErrors

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-08 16:09:47 -08:00
Jeromy
94bdce63a7 vendor logging lib update
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-05 15:57:21 -08:00
Juan Benet
43622bd5ee added gobuilder no_go_fmt flag to right file
License: MIT
Signed-off-by: Juan Benet <juan@benet.ai>
2015-10-31 04:36:13 -04:00
Juan Benet
bf415b0dff Merge pull request #1889 from ipfs/fix/log-writer
fix bug in mirrorwriter removal
2015-10-28 16:57:52 -04:00
Jeromy
c023d187b5 update code to use new logging changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-27 11:04:56 -07:00
Jeromy
ad0792959e purposely fail builds pre1.5
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-21 10:19:02 -07:00
Jeromy
6976ca7480 fix makefile failing when not in a git repo
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-19 15:39:25 -07:00
Jeromy
11104d401e system diagnostics command
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-18 19:50:15 -07:00