5be6e26f7b
Forgotten go-fmt
...
Not sure why CI didn't catch this
2020-03-25 15:03:17 +01:00
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
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
3c9039a00b
cmd: ipfs handle GUI environment on Windows
2020-03-12 16:15:23 -07:00
7c6e212b2d
Update the license distributed with dist builds to the dual one
...
This was an old leftover
2020-02-06 22:27:15 +01:00
a53d48059b
fix: migrate from deprecated warning function
2020-01-28 21:20:21 -08:00
c2d1f3a6a3
chore(dep): update deps
...
Update all deps.
2020-01-28 21:20:17 -08:00
07cbba7c40
Fix Typos
2019-12-25 03:12:41 +00:00
2a9e5005da
plugins: introduce PluginDaemonInternal to directly interact with IpfsNode
2019-11-22 13:18:44 +01:00
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
164dd287be
Merge pull request #6675 from ipfs/feat/systemd-activation
...
add systemd support
2019-09-30 15:22:44 -07:00
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
0d0b4fc857
feat(systemd): extract socket activation logic
2019-09-27 16:09:17 -07:00
37c19cc630
lint(systemd): remove dead code
2019-09-27 16:08:30 -07:00
87f2e38017
systemd: add notify support
...
That way, we can reliably know when the daemon is ready.
2019-09-27 16:08:30 -07:00
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
1b05265862
cr: fix copy/paste error
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
6eb84227c6
cr: group related variables
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
429c4b537c
implement systemd socket activation
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
150b6dd1bd
plugins: add support for plugin configs
...
For now, configs specified in `daemon --init-config` and `init CONFIG` are not
available. We should fix this eventually but isn't necessary for now (and
supporting this will be annoying).
2019-08-29 17:17:23 -07:00
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
f6f8d68574
version: don't print 'VERSION-' if no commit is specified
...
fixes #6022
2019-08-28 00:06:46 -07:00
995e674cfb
feat: add ability to use existing config during init
2019-08-25 21:15:17 -04:00
39bb640c35
Merge pull request #6474 from ipfs/feat/builtin-plugin
...
feat: make it easier to load custom plugins
2019-07-11 18:55:13 -07:00
2b61dbb612
main: clarify api-flag behavior
2019-07-03 14:10:56 -07:00
074305690a
fix: ignore stale APIs
...
fixes #5784
2019-06-29 11:17:38 +02:00
4badef2a14
feat: make it easier to load custom plugins
...
1. Allow loading from arbitrary and multiple directories.
2. Make it possible to directly load built-in plugins that _aren't_ in the
preload list.
2019-06-28 08:42:29 +02:00
2865ae79a1
install.sh: Fix wrong destination path for ipfs binary
...
License: MIT
Signed-off-by: Kirill Goncharov <kdgoncharov@gmail.com>
2019-06-08 19:21:59 +03:00
ec19d4c54f
Merge pull request #6321 from ipfs/ci/golangci-lint
...
Add golangci-lint
2019-05-15 13:38:31 -07:00
017564a863
fail start when loading a plugin fails
...
Otherwise, we simply panic later.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-15 12:09:19 -07:00
4924b80e10
chore: fix linter nits
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:26 -07:00
96e6dd294f
Merge pull request #6319 from ipfs/fix/ulimit-tests
...
fix setting ulimit
2019-05-14 09:36:42 -07:00
bff8326b97
ulimit: fix setting ulimit
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-13 14:52:24 -07:00
c318e3472e
fix ulimit tests
...
Not sure why CI wasn't failing.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:20:04 -07:00
5f64b270f8
cmdkit -> cmds
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:00:20 -07:00
4b7a24f0af
Merge pull request #6266 from ipfs/fix/fd-limit
...
raise default fd limit to 8192
2019-05-10 09:37:17 -07:00
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
ff85e38392
raise default fd limit to 8192
...
fixes #6247
Really, we need a global _resource_ manager service that can sum requests from
the datastore, libp2p, etc. for more file descriptors. However, we don't have
that.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-26 02:52:30 -07:00
a0fe27816a
Revert "raise default fd limit to 8192"
2019-04-26 02:50:36 -07:00
8ec386117b
raise default fd limit to 8192
...
fixes #6247
Really, we need a global _resource_ manager service that can sum requests from
the datastore, libp2p, etc. for more file descriptors. However, we don't have
that.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-04-25 23:16:55 -07:00
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
d35dac70f0
Cleanup core package
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
cc2be2e73a
Fix goprocess / lifecycle / ctx relations
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-17 16:56:27 -07:00
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
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
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
e4afcb71e8
interrupt: fix send on closed
...
If we get a signal while shutting down, we could end up sending on a closed
channel.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-28 02:44:25 +00:00
3e199ab3f7
mk: s/go-build/go-build-relative/
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:58 +01:00
42e191c017
gx: unrewrite
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:56 +01:00
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