Jeromy
0d2853dbaa
go-ipfs-config: remove test for removed dead config version fields
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 13:54:12 -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
a7c4694354
go-ipfs-config: 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
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
389545c750
go-ipfs-config: correct go-log dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:10 -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
rht
b94954635f
go-ipfs-config: Add config option for flatfs no-sync
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
45deffe50e
go-ipfs-config: S3 datastore support
...
To test it, set up an S3 bucket (in an AWS region that is not US
Standard, for read-after-write consistency), run `ipfs init`, then
edit `~/.ipfs/config` to say
"Datastore": {
"Type": "s3",
"Region": "us-west-1",
"Bucket": "mahbukkit",
"ACL": "private"
},
with the right values. Set `AWS_ACCESS_KEY_ID` and
`AWS_SECRET_ACCESS_KEY` in the environment and you should be able to
run `ipfs add` and `ipfs cat` and see the bucket be populated.
No automated tests exist, unfortunately. S3 is thorny to simulate.
License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
3f419cc599
go-ipfs-config: Implement pluggable Datastore types, with nothing implemented yet
...
License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -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
1e4bd88117
go-ipfs-config: vendor logging lib update
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-05 15:57:21 -08: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
Jeromy
b6d1a3f6ee
go-ipfs-config: update code to use new logging changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-27 11:04:56 -07:00
Lars Gierth
bf8e4ab52c
go-ipfs-config: config: update pluto's peerID
...
We lost its private key a while ago...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-10-19 21:04:42 +02:00
Lars Gierth
bdee8cb3ad
go-ipfs-config: config: update bootstrap list hostname
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-10-19 21:04:42 +02:00
Jeromy
f6c74ee68b
go-ipfs-config: replace imports with absolute path instead of using symlink
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:30:50 -07:00
Jeromy
a28d610d80
go-ipfs-config: make publish more configurable and add test for repub
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:44 -07:00
Jeromy
4f6eb40056
go-ipfs-config: Implement ipns republisher
...
This commit adds a very basic process that will periodically go through
a list of given ids and republish the values for their ipns entries.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
Jeromy
809269399e
go-ipfs-config: extract logging
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 17:35:50 -07: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
Juan Batiz-Benet
b73f2d531d
go-ipfs-config: Added API + Gateway support for arbitrary HTTP headers
...
This commit fixes + improves CORS support
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:08:09 -07:00
Juan Batiz-Benet
3861ff304e
go-ipfs-config: config: DialBlocklist -> Swarm.AddrFilters
...
This commit changes the DialBlocklist key to be under the key
Swarm.AddrFilters instead.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-02 16:11:46 -07:00
Jeromy
eb6a0a5d89
go-ipfs-config: add in basic address dial filtering
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-23 01:29:29 -07:00
rht
316b2d1de9
go-ipfs-config: Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
2015-05-26 23:18:04 +07:00
Jeromy
d5503594e3
go-ipfs-config: implement a config option for mdns
2015-04-22 00:55:31 -07:00
Christian Couder
c685f571ea
go-ipfs-config: config: change default config dir name to .ipfs
...
This changes .go-ipfs to .ipfs everywhere.
And by the way this defines a DefaultPathName const
for this name.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-04-20 02:25:41 -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
154216d34d
go-ipfs-config: Added fuse allow_other option
...
ipfs config Mounts.FuseAllowOther --bool true
ipfs daemon --mount
2015-04-02 15:11:27 -07: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
44ef2bab38
go-ipfs-config: fix(config) rename variable GCR -> SNR
2015-02-15 06:29:15 -08:00
Brian Tiger Chow
0ca9469bf3
go-ipfs-config: add three more supernode routers
2015-02-15 04:41:19 -08:00
Brian Tiger Chow
46a4b1a408
go-ipfs-config: feat(config/supernode) add 5 supernodes
2015-02-15 04:41:18 -08:00
Brian Tiger Chow
fd2fcf0879
go-ipfs-config: fix(corerouting) pass transport addr
2015-02-15 04:41:18 -08:00
Brian Tiger Chow
4b98e19165
go-ipfs-config: fix(repo/config) Update gcr_servers.go TODO rename
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
b4bc6482c8
go-ipfs-config: fix(routingd) update port and servers
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
67f8655f18
go-ipfs-config: fix(config/gcr) include protocol
2015-02-15 04:41:17 -08:00
Brian Tiger Chow
df1e24d846
go-ipfs-config: feat(config) add GCR config section
2015-02-15 04:41:17 -08:00