Commit Graph

3440 Commits

Author SHA1 Message Date
Marcin Rataj
fd01acdfc0
feat(gateway): ?filename with download=true
This implements 'attachment' mode triggered then
?filename parameter is accompanied with &download=true

When Content-Disposition: attachment is detected by a modern browser
it will skip rendering and immediately open the "save as" dialog,
making this useful feature for using IPFS gateway as target of
"Download" links on various websites.

Parameter name was suggested in:
https://github.com/ipfs/go-ipfs/pull/4177#issuecomment-414870327
2020-09-16 22:15:18 +02:00
Adin Schmahmann
904ad1626a fix: remove the (empty) alias for --ipns-base 2020-09-09 11:30:45 -04:00
Adin Schmahmann
6cbda0f62f refactor: put all --ipns-base options in one place 2020-09-09 11:30:45 -04:00
Adin Schmahmann
ba1d225212 fix: ipfs dht put/get commands now work on keys encoded as peerIDs and fail early for namespaces other than /pk or /ipns 2020-08-30 02:16:15 -04:00
Hector Sanjuan
7d95359c3e Fix #7624: Do not fetch dag nodes when checking if a pin exists 2020-08-26 09:13:15 +02:00
Adin Schmahmann
45e574b6bd
Merge pull request #7610 from ipfs/chore/update-deps
chore: update dependencies
2020-08-25 23:14:52 -04:00
Adin Schmahmann
2ecde1a18c chore: update dht and kbucket 2020-08-25 21:13:18 -04:00
Adin Schmahmann
b88bdfeb9d chore: update go-multiaddr and go-multiaddr-net 2020-08-25 15:24:48 -04:00
Adin Schmahmann
bd08c0a4a6
Merge pull request #7550 from trashhalo/dry-up-close
use t.Cleanup() to reduce the need to clean up servers in tests
2020-08-25 12:06:26 -04:00
Adin Schmahmann
6871e6d056 fix: ipfs pin ls - return an error when encountering a pin retrieval error 2020-08-25 10:54:56 -04:00
Jacob Heun
0ed43e903e
fix(key): dont allow backup key to be named 'self'
docs: update the key rotate help docs to be clearer about the backup
2020-08-21 19:42:42 +02:00
Kevin Neaton
2feff33235 test: update gateway tests for dir-index-html v1.1.0 2020-08-19 20:31:23 -04:00
Kevin Neaton
044790a838 feat: Directory page UI improvements
These changes are needed to prepare for the Directory page UI improvements
implemented in https://github.com/ipfs/dir-index-html/issues/37.

- update dir-index-html type structs
- emit gateway URL for root links
- emit CID of each directoryItem
- emit size of directory
- emit breadcrumbs
2020-08-19 20:09:35 -04:00
Adin Schmahmann
2d0cca800c
Merge pull request #7579 from ipfs/petar/ed25519-default
use ed25519 keys by default
2020-08-19 19:19:39 -04:00
Petar Maymounkov
56f5a123d9 update ipfs key default type 2020-08-19 15:22:59 -07:00
Adin Schmahmann
0c57e9dcf8
Merge pull request #7319 from MichaelMure/wildcard-gateways
feat: wildcard support for public gateways
2020-08-19 11:02:28 -04:00
Marcin Rataj
6b6569f3e5
refactor: cleanup/comment
https://github.com/ipfs/go-ipfs/pull/7319#discussion_r472734905

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-08-19 15:59:47 +02:00
Adin Schmahmann
40738e4fec
Merge pull request #7598 from ipfs/chore/bump-graphsync-dep
Upgrade graphsync deps
2020-08-18 19:53:52 -04:00
Petar Maymounkov
a68e1469ba add --peerid-base to ipfs id 2020-08-18 16:39:23 -07:00
Petar Maymounkov
4975d9b179 renames 2020-08-18 08:39:47 -07:00
Petar Maymounkov
b4ad66eda4 add --ipns-base to publish and subs commands
add sharness tests for --ipns-base in name publish and subs commands
2020-08-17 21:43:02 -07:00
Petar Maymounkov
2b013a1ac5 use standard multibase format labels 2020-08-17 21:43:01 -07:00
Petar Maymounkov
23a26c05d3 rename -f to --ipns-base 2020-08-17 21:43:01 -07:00
Petar Maymounkov
80e859ef6f add format flag to key rename and remove, defaulting to b36cid; update sharness 2020-08-17 21:43:01 -07:00
Petar Maymounkov
3cbe111b2d use b36 keys by default for keys and IPNS 2020-08-17 21:43:01 -07:00
Adin Schmahmann
8ae5aa56d1
add ipfs dag stat command (#7553)
* commands: add ipfs dag stat command
* sharness: add ipfs dag stat tests
2020-08-17 14:29:36 -04:00
Adin Schmahmann
992e4a71ca
Merge pull request #7599 from ipfs/feat/move-key-rotate
Move key rotation command to ipfs key rotate
2020-08-17 13:14:03 -04:00
Adin Schmahmann
08913c70ad feat: disable secio by default 2020-08-17 08:16:54 -04:00
Adin Schmahmann
eb66461333 switch ipfs key rotate flags to use the same ones as ipfs key gen 2020-08-17 07:26:47 -04:00
Adin Schmahmann
0f658484d1 move key rotation command to ipfs key rotate 2020-08-17 07:26:47 -04:00
Peter Rabbitson
90a573354a Upgrade graphsync deps 2020-08-17 12:23:59 +02:00
Adin Schmahmann
34c0e5c0f6 fix: sort addresses returned by ipfs id 2020-08-08 21:39:18 -04:00
Adin Schmahmann
d6b94360e2 fix: sort protocols returned by ipfs id 2020-08-08 21:38:34 -04:00
Steven Allen
dd47364e24 feat: add protocol list to ipfs id 2020-08-07 19:46:44 -04:00
Steven Allen
dd1093f438 fix: use connect instead of findpeer so we ensure we actually connect
Otherwise, the ID is going to be incorrect.

Note: technically, the previous logic didn't need to connect to the target peer
to complete. However, I'm fine dropping that capability in favor of more
up-to-date information.
2020-08-07 19:46:44 -04:00
Adin Schmahmann
7565da9bc2 fix: ipfs name resolve --dht-record-count flag uses correct type and now works 2020-08-07 19:14:36 -04:00
Marcin Rataj
2ff6f1a80d
test(gateway): IPNS cleanup and implicit defaults fix
This ensures implicit defaults are always present, even when
Gateway.PublicGateways is defined in the config.

User still can disable them, but needs to do it per hostname.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-08-06 14:00:16 +02:00
Adin Schmahmann
692e9f59ff refactor: get rid of cmdDetails awkwardness 2020-08-04 18:28:40 -04:00
Petar Maymounkov
e384b5964a IPNS format keys in b36cid 2020-08-04 00:18:29 -04:00
Adin Schmahmann
dfb8141d2f
Merge pull request #7546 from rendaw/master
Key import and export cli commands
2020-08-03 17:51:04 -04:00
Adin Schmahmann
fab3a3578d ipfs key export output keys with .key extension by default 2020-08-03 17:28:55 -04:00
Adin Schmahmann
7f15be2ae5 switch ipfs key import/export to use files instead of strings 2020-08-03 16:27:12 -04:00
rendaw
356ca3aefa
Remove export option from generate 2020-08-01 10:45:38 +09:00
Adin Schmahmann
a70d04b68f remove ipfs key identify command 2020-07-30 16:26:40 -04:00
Michael Muré
13e6bcfb4f
feat: wildcard support for public gateways
Add support for one or more wildcards in the hostname definition
of a public gateway. This is useful for example to support easily
multiples environment.

Wildcarded hostname are set in the config as for example "*.domain.tld".
2020-07-24 20:51:22 +02:00
Rafael Ramalho
e3905e1fdc chore: bump webui version 2020-07-24 12:37:02 -04:00
Marten Seemann
be171d5e3c update QUIC, enable the RetireBugBackwardsCompatibilityMode 2020-07-20 10:29:43 -04:00
Stephen Solka
4dbdbe0e02 use t.Cleanup() to reduce the need to clean up servers 2020-07-18 14:47:07 -04:00
Adin Schmahmann
8dcd260b21
Merge pull request #7514 from martriay/doc/add-without-daemon-behavior
Document add behavior when the daemon is not running
2020-07-17 13:37:06 -04:00
rendaw
c7657cb690
Fix sharness tests 2020-07-16 23:57:30 +09:00