Commit Graph

46 Commits

Author SHA1 Message Date
Jakub Sztandera
30b5a1f28c go-ipfs-config: config: add config option for bloom filter
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-16 12:24:01 +01:00
Jakub Sztandera
35108597dd go-ipfs-config: config: Add explicit default value for HashOnRead
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 22:38:07 +02:00
Jakub Sztandera
c36294a933 go-ipfs-config: Update go-log in whole dependency tree (#2898)
* Update golog in go-ipfs

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-secio for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-crypto for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-peer for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Import peersore, it wasn't imported

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peerstore

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peer

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update secio

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 09:38:07 -07:00
Jeromy Johnson
d2f3855b55 go-ipfs-config: Merge pull request #2778 from ipfs/feature/CORS-on-gateway-by-default
Add CORS headers to Read Only Gateway Default config
2016-06-15 09:59:30 -07:00
Jeromy
f48cecdd37 go-ipfs-config: update libp2p to v3.3.1
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-01 16:45:46 -07:00
Jakub Sztandera
705652ea63 go-ipfs-config: Add CORS headers to Read Only Gateway Default config
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-01 12:21:51 +02:00
Jeromy
e36dc46a63 go-ipfs-config: update go-libp2p 3.2.2, nil maddr fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:23:10 -07:00
Jeromy
b5c55cf2a1 go-ipfs-config: update libp2p with go-multiaddr and go-stream-muxer updates
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-10 16:06:28 -07:00
Richard Littauer
ef1a5c04a8 go-ipfs-config: Capitalized NOTE, first letter of following word
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 16:57:19 -04:00
Lars Gierth
7c3d8a108f go-ipfs-config: Use extracted go-libp2p-crypto, -secio, -peer packages
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:48:06 -07:00
Lars Gierth
1244da163c go-ipfs-config: Update go-libp2p
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:23:47 -07:00
Lars Gierth
21887fac8b go-ipfs-config: repo: properly init Datastore config, and leave it be
We didn't previously initialize the Datastore config section.
The respective function exists, but was dead code up until now.

This lead to weird decisions like the GC code deciding on defaults,
and writing these to the config file. Don't want GC to touch the config.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 16:21:14 -07:00
Jeromy
713fe1cdbd go-ipfs-config: 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
46e32373f0 go-ipfs-config: clean up dead code and config fields
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 13:11:30 -07:00
Jeromy
1868295693 go-ipfs-config: switch to new libp2p with mss crypto
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Lars Gierth
0747b9cecd go-ipfs-config: 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
7beb8be675 go-ipfs-config: 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
37118595ee go-ipfs-config: update libp2p dep
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-09 09:53:19 -08:00
Jeromy
8a262c832a go-ipfs-config: do that last thing again
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 15:37:39 -08:00
Jeromy
5bad15f8ee go-ipfs-config: update libp2p dep
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 10:19:50 -08:00
Jeromy
8ff4f93d94 go-ipfs-config: go-keyspace dep from libp2p added
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:08 -08:00
Jeromy
ac586580ba go-ipfs-config: 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
Tommi Virtanen
1f3ad37541 go-ipfs-config: Remove Config file section "Datastore", it's not used
This gives us a clean slate for the new code, avoiding leftovers.

License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Jeromy
8c25058225 go-ipfs-config: hard code things
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-30 14:43:37 -08:00
dignifiedquire
511fb7e96e go-ipfs-config: Add access-control-headers to gateway config
License: MIT
Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
2015-11-25 20:11:20 +01:00
dignifiedquire
e7989f1214 go-ipfs-config: Add correct access control headers to the default api config
License: MIT
Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
2015-11-25 20:11:20 +01:00
Juan Benet
7c4736abac go-ipfs-config: Merge pull request #1959 from ipfs/remove-log-config
repo: remove Log config
2015-11-16 11:32:54 -05:00
Lars Gierth
5ed0af6438 go-ipfs-config: repo: remove Log config
We stopped logging to files in a676b5a8ac
and this config section was missed.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-11-11 18:32:24 +01:00
rht
14cf564b3a go-ipfs-config: Add fixed period repo GC + test
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-10 14:03:29 +07:00
Jeromy
d84895e0d9 go-ipfs-config: cache ipns entries to speed things up a little
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 12:53:08 -08:00
Juan Benet
ba9bec857e go-ipfs-config: Merge pull request #1076 from zorun/fix-listen-ipv6
Default config: listen on IPv6 for the swarm address
2015-08-15 06:41:26 +02:00
Jeromy
d5503594e3 go-ipfs-config: implement a config option for mdns 2015-04-22 00:55:31 -07:00
Juan Batiz-Benet
6457cc5ab8 go-ipfs-config: remove debugerrors
We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.

It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
2015-04-20 00:35:35 -07:00
Baptiste Jonglez
ffacc10342 go-ipfs-config: Default config: listen on IPv6 for the swarm address 2015-04-14 14:26:51 +02:00
Ho-Sheng Hsiao
25c4d28de9 go-ipfs-config: Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Brian Tiger Chow
fd2fcf0879 go-ipfs-config: fix(corerouting) pass transport addr 2015-02-15 04:41:18 -08:00
Brian Tiger Chow
df1e24d846 go-ipfs-config: feat(config) add GCR config section 2015-02-15 04:41:17 -08:00
Matt Bell
57814a36bf go-ipfs-config: repo/config: Added default gateway address to initial config 2015-02-04 16:53:24 -08:00
Brian Tiger Chow
58445c2824 go-ipfs-config: fix(config) use max backups to limit number of backups 2015-02-03 17:16:26 -08:00
Juan Batiz-Benet
b8d8594801 go-ipfs-config: fsrepo: fix output to writer 2015-02-03 02:27:24 -08:00
Brian Tiger Chow
4309541e87 go-ipfs-config: feat(config) default Log.MaxSizeMB = 500 2015-02-02 18:26:47 -08:00
Juan Batiz-Benet
9adf5bc2bf go-ipfs-config: bootstrap: use ipfsaddr for boostrap peers ⚠️
⚠️ this commit makes your current configs unusable, as the
default bootstrap peers. You may need to edit your config.

Go from:

```js
Bootstrap: [
  {
    "Address": "/ip4/104.131.131.82/tcp/4001",
    "PeerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
  }
]
```

To:
```js
Bootstrap: [
  "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
]
```
2015-02-01 05:16:52 -08:00
Mildred Ki'Lya
cf854f9a20 go-ipfs-config: Make gateway read-only by default and add option to make it writable 2015-01-31 23:36:45 +01:00
Juan Batiz-Benet
075ae67fdd go-ipfs-config: init docs: go generated welcome dir + files
updated sharness hashes
2015-01-31 07:51:30 -08:00
Matt Bell
6579236d39 go-ipfs-config: cmd/ipfs: Add empty gateway object when initting config 2015-01-28 16:01:42 -08:00
Brian Tiger Chow
69d7848d2e go-ipfs-config: move config.Init into config package 2015-01-27 16:23:58 -08:00