1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-12-19 01:30:17 +08:00
Commit Graph

48 Commits

Author SHA1 Message Date
Andrew Gillis
4009ad3e5a chore: stop using go-homedir (#10568)
* chore: stop using go-homedir

The `github.com/mitchellh/go-homedir` repo is archived, no longer needed, and no longer maintained.

- `homedir.Dir` is replaced by the stdlib `os.UserHomeDir`
- `homedir.Expand` is replaced by fsutil.ExpandHome` in the `github.com/ipfs/kubo/misc/fsutil` package.

Additional functionality, such as `DirWritable` and `FileExists` was moved into or included in the `github.com/ipfs/kubo/misc/fsutil` package.
2024-11-05 07:45:11 -08:00
Andrej Manduch
6dbae76818 fix: align systemd unit file with default IPFS installation path (#10163) 2023-10-05 07:29:10 +00:00
UnkwUsr
2a20180819 chore(misc/README.md): trim duplicated content 2023-08-08 15:21:47 +02:00
Seungbae Yu
cb280cbf16 docs: replace docs.ipfs.io with docs.ipfs.tech (#9158)
* docs: fix redirecting URL in README.md
* all: replace `docs.ipfs.io` with `docs.ipfs.tech`
* apply suggestions from code review

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-08-05 19:01:10 +03:00
Dimitris Apostolou
0c2f9d5950 Fix typos (#8548) 2021-11-17 21:16:06 +01:00
Steven Allen
0060d5f7c8 feat: programmatic shell completions
These are missing some of the features of the current hand-rolled
completions, but:

1. Are less buggy.
2. Cover _all_ commands.
3. Don't need to be manually maintained (which we never do anyways).

fixes #4551
fixes #8033
2021-07-01 08:46:49 -07:00
Steven Allen
ce617a03e2 fix: set systemd startup timeout to infinity
fixes #7369
fixes #8034
2021-03-31 16:20:46 -07:00
@RubenKelevra
b47ecd0cba systemd: specify repo path, to avoid unnecessary subdirectory 2020-06-16 00:49:00 +02:00
@RubenKelevra
77f2b04cce misc/README.md: import readme from ipfs/website repo
Authors:
@lgierth @CameronNemo @jessicaschilling

URL: https://github.com/ipfs/website/blob/master/static/docs/examples/init/README.md

License: MIT
2020-06-13 07:54:40 +02:00
@RubenKelevra
25a2e31b63 systemd: add a service file with systemd hardening features 2020-05-26 10:25:32 +02:00
@RubenKelevra
e9843fbd31 systemd: disable swap-usage for ipfs 2020-05-10 16:17:06 +02:00
Steven Allen
cfcd876b2f Merge pull request #7265 from RubenKelevra/feat/longer_systemd_timeouts
systemd: add helptext
2020-05-08 13:30:47 -07:00
Steven Allen
e6c43a6360 Merge pull request #7287 from RubenKelevra/feat/systemd-service-add-documentation-link
systemd: add the link to the docs
2020-05-08 13:29:55 -07:00
@RubenKelevra
d66004d6db systemd: add state directory setting
this will inform systemd where the service stores it's persistent data and where it needs write access.
Systemd will create the folder and set the right owner rights.
2020-05-07 23:18:50 +02:00
@RubenKelevra
18c9ad012a systemd: add the link to the docs 2020-05-07 23:13:08 +02:00
@RubenKelevra
06abad73e6 systemd: add helptext to the service file which explains how to make changes 2020-05-01 15:17:52 +02:00
Steven Allen
826826c911 Merge pull request #7261 from cachance7/master
Updates bash completions to be compatible with zsh
2020-04-30 14:44:40 -07:00
@RubenKelevra
dfb52fb3e2 systemd.service: enable restart on crash and run as system user 'ipfs'
add some optional paramters with short help texts
add sysuser.conf
2020-04-30 22:00:30 +02:00
Casey Chance
4d97e3746a Uses builtin check rather than env var 2020-04-30 10:49:36 -07:00
Casey Chance
a6e84f9047 Updates bash completions to be compatible with zsh
The `compopt` bash builtin is not supported by zsh's bash compatibility
features. By checking for zsh presence and using `complete` instead,
this script becomes suitable for use with both bash and zsh.
2020-04-30 10:11:15 -07:00
Dimitris Apostolou
1e437c7e97 Fix typos and cleanup 2020-04-20 22:00:01 +03:00
@RubenKelevra
51bf173f19 update bash completion for ipfs add 2020-04-05 18:47:49 +02: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
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
db45c4d0d9 remove bitswap unwant
This command messes with internal state and doesn't even work at the moment. If
you don't want a block, you should cancel the request that's trying to fetch it.

fixes #5295

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-28 10:21:10 -07:00
Steven Allen
a0bedf6a5b remove the rest of the supernode code
missed in the initial cleanup

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-14 16:43:30 -07:00
Sherod Taylor
bc75d3b88a Removed tour command and fix test
License: MIT
Signed-off-by: Sherod Taylor <sherodtaylor@gmail.com>
2017-08-09 10:14:57 -04:00
Michelle Lee
f7d9aba433 Remove duplicate release checklist
Removing this one, and keeping https://github.com/ipfs/go-ipfs/blob/master/docs/releases.md (per @larsgeirth in https://github.com/ipfs/blog/issues/97)

Please review/modify thoroughly, I am not familiar enough with go-ipfs release process to comment on contents.
2017-05-22 13:18:15 -04:00
Jakub Sztandera
4104673165 misc: fix mistakes in release checklist
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 23:02:10 +01:00
Jakub Sztandera
9e2e249110 misc: improve release checklist
also prep it for templeating

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-21 20:43:37 +01:00
Elias Gabrielsson
e9594c9b23 Updated Bash complete script
Some minor bug still exist but not breaking.
Everything is marked with "TODO" inline the script.

License: MIT
Signed-off-by: Elias Gabrielsson <elias@benefactory.se>
2016-11-13 16:31:16 +01:00
Nathan Musoke
ac4200f1ea bash_completion: Add a couple missing commands
Add "bitswap" and "repo" to bash completion for `ipfs stats`. They are
listed under `ipfs stats --help`.

Also added their respective subcommands.

License: MIT
Signed-off-by: Nathan Musoke <nathan.musoke@gmail.com>
2016-11-08 20:51:48 +13:00
Lars Gierth
5807e5c09e bash: bring --unrestricted-api completion back (sorry!)
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-08-30 21:29:55 -07:00
Lars Gierth
1afebc21f3 gateway: clean up its surface, and remove BlockList
This patch is in preparation for the gateway's extraction.

It's interesting to trace technical debt back to its
origin, understanding the circumstances in which it
was introduced and built up, and then cutting it back
at exactly the right places.

- Clean up the gateway's surface
  The option builder GatewayOption() now takes only
  arguments which are relevant for HTTP handler muxing,
  i.e. the paths where the gateway should be mounted.
  All other configuration happens through the
  GatewayConfig object.

- Remove BlockList
  I know why this was introduced in the first place,
  but it never ended up fulfilling that purpose.
  Somehow it was only ever used by the API server,
  not the gateway, which really doesn't make sense.
  It was also never wired up with CLI nor fs-repo.
  Eventually @krl started punching holes into it
  to make the Web UI accessible.

- Remove --unrestricted-api
  This was holes being punched into BlockList too,
  for accessing /ipfs and /ipn on the API server.
  With BlockList removed and /ipfs and /ipns freely
  accessible, putting this option out of action
  is safe. With the next major release,
  the option can be removed for good.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-19 00:52:35 +02:00
Lars Gierth
f7230b0480 repo: don't create logs directory, not used any longer
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-15 13:50:46 -07:00
Jeromy Johnson
22fcd18ad6 Merge pull request #2100 from jedahan/smarter-launchd-install
More robust version checking
2016-03-01 23:19:07 -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
Jonathan Dahan
77bfa9d145 More robust version checking
License: MIT
Signed-off-by: Jonathan Dahan <jonathan@jonathan.is>
2016-02-01 16:34:00 -05:00
Jonathan Dahan
966cd8b7c7 Install daemon system-wide if on El Capitan
License: MIT
Signed-off-by: Jonathan Dahan <jonathan@jonathan.is>
2015-12-17 02:02:52 -05:00
Jonathan Dahan
5ed2322772 Have install.sh use the full path to ipfs binary if detected
License: MIT
Signed-off-by: Jonathan Dahan <jonathan@jonathan.is>
2015-12-16 11:31:55 -05:00
Jeromy
220d6b168f Ipfs version 0.3.9
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-31 01:49:30 -04:00
Juan Benet
81227ecb40 Merge pull request #1496 from MichaelMure/bash_completion
Update the bash completion script
2015-07-19 22:19:12 -07:00
Michael Muré
78e9794be0 Add the missing long argument for ipfs mount
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2015-07-18 15:00:26 +02:00
Michael Muré
557d5f211d Update the bash completion script
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2015-07-18 14:50:29 +02:00
Stephen Sugden
9fc7dfbd15 Template plist to work around launchd limitations
`launchd` doesn't allow you to *use* environment variables. Nor does it support
tilde-expansion of program names & arguments after OSX 10.10.

To work around this, I've made the plist file a template and included a small
install script that will interpolate the correct values.
2015-05-01 11:33:18 +02:00
Stephen Sugden
904ce1080e Add launchctl agent plist for OSX
I found this useful to have, and figured it might save somebody else a
few minutes of re-inventing the wheel.
2015-05-01 10:57:08 +02:00
Michael Muré
e8f51c2d57 ipfs-completion.bash: add the missing get command 2015-04-07 13:55:27 +02:00
Michael Muré
a1ac0b55c0 Add a basic command line completion for IPFS
Does auto-complete for the ipfs commands, subcommands and parameters.

Reported to works for bash and zfs

The completion could be smarter for some parameters (marked as #TODO)
2015-03-25 22:14:44 +01:00