Adin Schmahmann
b88bdfeb9d
chore: update go-multiaddr and go-multiaddr-net
2020-08-25 15:24:48 -04:00
Adin Schmahmann
692e9f59ff
refactor: get rid of cmdDetails awkwardness
2020-08-04 18:28:40 -04:00
Petar Maymounkov
4674f770b7
Choosable key types at initialization
...
* add support for choosing a peer key type (e.g. RSA or Ed25519) when initializing the repo
* test all variants of ipfs init: RSA, Ed25519 and default
* update subdomain gateway sharness test to publish IPNS using RSA and
Ed25519 keys
* use default identity bit lengths defined in config repo instead of
having separate defaults in go-ipfs
* update config repo dependency
Co-authored-by: Will Scott <will@cypherpunk.email>
Co-authored-by: Petar Maymounkov <petarm@gmail.com>
2020-07-14 14:42:49 -04:00
Steven Allen
e164af1f2a
feat: add a transport config section
...
This way, users can disable transports (especially QUIC), and set muxer/security
transport priorities.
2020-06-16 15:15:47 -07:00
Dimitris Apostolou
1e437c7e97
Fix typos and cleanup
2020-04-20 22:00:01 +03:00
Roman Khafizianov
90b7b53a40
fix the typo in the serveHTTPApi
...
It looks like the incorrect address passed into the logger in case of error
2020-04-14 13:24:49 +03:00
Steven Allen
56e0e18294
feat: add a dhtserver option
2020-04-06 18:53:16 -07:00
Peter Rabbitson
5be6e26f7b
Forgotten go-fmt
...
Not sure why CI didn't catch this
2020-03-25 15:03:17 +01:00
Marcin Rataj
3ecccd6e1d
feat(gateway): subdomain and proxy gateway
...
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-03-18 08:50:38 -07:00
Steven Allen
11c229bb14
rename ProxyOption to P2PProxyOption
...
(we're implementing an _actual_ proxy)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-03-17 19:34:44 -07:00
Steven Allen
a53d48059b
fix: migrate from deprecated warning function
2020-01-28 21:20:21 -08:00
flowed
07cbba7c40
Fix Typos
2019-12-25 03:12:41 +00:00
Michael Muré
2a9e5005da
plugins: introduce PluginDaemonInternal to directly interact with IpfsNode
2019-11-22 13:18:44 +01:00
Steven Allen
460c2119e4
daemon: support unix domain sockets for the API/gateway
...
All the work was client-side. Unix domain socket multiaddrs already worked
server-side.
fixes #4218
2019-09-30 17:21:28 -07:00
Steven Allen
164dd287be
Merge pull request #6675 from ipfs/feat/systemd-activation
...
add systemd support
2019-09-30 15:22:44 -07:00
Oli Evans
bbe2f5077e
feat: add ipfs version info to prometheus metrics
...
Adds `ipfs_info` prometheus metric with version and commit info
```prometheus
ipfs_info{commit="9ea7c6a11-dirty",version="0.5.0-dev"} 1
```
This follows the same pattern as go and other systems, adding a gauge metric that is set to 1, with the version info addeds as labels.
This is a common pattern for prometheus. It lets operators merge version info into other prometheus metrics by multiplying it with the other stat, as described in https://www.robustperception.io/exposing-the-software-version-to-prometheus
For example, we already expose the go version info as
```prometheus
go_info{version="go1.12.9"} 1
```
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-09-30 15:41:29 +01:00
Steven Allen
0d0b4fc857
feat(systemd): extract socket activation logic
2019-09-27 16:09:17 -07:00
Steven Allen
87f2e38017
systemd: add notify support
...
That way, we can reliably know when the daemon is ready.
2019-09-27 16:08:30 -07:00
Steven Allen
a4914a4478
systemd: merge API/gateway addresses
...
Instead of letting systemd override the configured addresses, merge them. This
is likely the "expected" behavior.
2019-09-27 16:08:30 -07:00
Steven Allen
1b05265862
cr: fix copy/paste error
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
Steven Allen
429c4b537c
implement systemd socket activation
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
Steven Allen
d2a1ce3c5c
Merge pull request #6489 from djdv/feat/init-with-config-file
...
feat: add ability to use existing config during init
2019-08-28 16:19:36 -07:00
Steven Allen
f6f8d68574
version: don't print 'VERSION-' if no commit is specified
...
fixes #6022
2019-08-28 00:06:46 -07:00
Dominic Della Valle
995e674cfb
feat: add ability to use existing config during init
2019-08-25 21:15:17 -04:00
Steven Allen
5f64b270f8
cmdkit -> cmds
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:00:20 -07:00
Oli Evans
be5d5fdca6
fix: windows friendly daemon help
...
tweak the daemon --help output to use escaped double quotes instead
of single quotes so the same command can be used on windows.
fixes : #2034
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-04-30 09:26:09 +01:00
Łukasz Magiera
da473d286f
constructor: move libp2p related stuff to subpackage
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-23 13:30:25 +02:00
Łukasz Magiera
d35dac70f0
Cleanup core package
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
Łukasz Magiera
cc2be2e73a
Fix goprocess / lifecycle / ctx relations
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
Steven Allen
285a276418
wait for daemon to completely stop, even on error
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-03 15:59:07 -07:00
Steven Allen
a44f0d251f
make sure to close the repo if we fail to properly start the daemon
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-03 15:46:40 -07:00
Steven Allen
1f293eff1b
chore: fix a bunch of issues caught by golangci-lint
...
Most of these are probably harmless but a few looked like they might actually be
bugs. Most of them are just faulty tests.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-29 11:57:45 +00:00
Jakub Sztandera
42e191c017
gx: unrewrite
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:56 +01:00
Steven Allen
3dac4609a8
split 'mode' into IsOnline and IsDaemon flags
...
1. They don't _have_ to be mutually exclusive.
2. local, mode, etc is _really_ confusing.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-04 19:00:47 -08:00
Steven Allen
3fa1bfe1bc
gx: update cmds and flatfs
...
fixes #6028 , fixes crash when writing after closing on flatfs.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-01 12:17:49 -08:00
Steven Allen
f227862e88
gx: update go-ipfs-cmds, go-bitswap, go-libp2p-kad-dht, and go-mplex
...
Fixes the latest batch of bugs found in RC testing.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-27 12:39:24 -08:00
Hector Sanjuan
6972a9aa4d
Gx Bubble. libp2p-6.0.38
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-02-27 01:10:59 +00:00
Steven Allen
3c2536dd81
gx: update go-ipfs-cmds
...
fixes #6021
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-25 16:45:43 -07:00
Steven Allen
2f17b951c2
gx: update deps
...
* Updates go-ipfs-cmds to try to get the tests to pass on travis.
* While we're at it, fix duplicate gx deps.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-19 13:12:21 -08:00
Jakub Sztandera
28cf3de0f9
Update protobuf
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-02-18 20:46:22 +01:00
Steven Allen
e97a60b073
gx: update go-ipfs-files
...
fix compatibility issue with js-ipfs
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-11 10:48:58 -08:00
Steven Allen
a9f2aee3fc
plugin: add plugin type for daemon plugins
...
This allows users to run multiple go-ipfs "clients" in-process.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-30 12:54:04 -08:00
Łukasz Magiera
7c2aa0e9a9
gx: update go-unixfs to propagate archive changes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-30 20:58:32 +01:00
Hector Sanjuan
ab270fbaa7
Bubble go-ipfs-cmds 2.0.10
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-01-10 21:31:11 +01:00
Steven Allen
1e9a638af0
Merge pull request #5907 from ipfs/gx/update
...
gx: update deps
2019-01-09 17:37:10 -08:00
Steven Allen
08cc5da55f
gx: update deps
...
Importantly:
* fixes a bunch of MFS bugs
* pulls in some bitswap improvements
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 19:19:34 -08:00
Steven Allen
5f04831190
daemon: print a newline before errors
...
The `ipfs init` command prints out a ton of information which can make it hard
to spot errors. Print a newline before these errors
We could do this for every command but there are some tricky edge cases:
1. This would look funny if there's no other output.
2. It might mess break tools parsing the output (not expecting empty lines).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 13:20:12 -08:00
Steven Allen
7a9b1716f9
daemon: don't print anything when raising file descriptor limit
...
This isn't an error and 99.999% of users won't care.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-07 19:30:29 -08:00
Steven Allen
0a1a223fd5
daemon: don't give C-c feedback until we actually start the daemon.
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-07 19:23:41 -08:00
Łukasz Magiera
7efffc3579
Make Gateway.NoFetch apply to API too
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-04 03:06:23 +01:00