Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move go-ipfs-config back into go-ipfs #8756

Merged
merged 332 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
332 commits
Select commit Hold shift + click to select a range
6135edf
go-ipfs-config: core: Add config option for datastore read rehashing
Kubuxu Jun 24, 2016
3510859
go-ipfs-config: config: Add explicit default value for HashOnRead
Kubuxu Jun 24, 2016
e8912c1
go-ipfs-config: core/commands: do not show PrivKey in config if it is…
Kubuxu Jul 8, 2016
30b5a1f
go-ipfs-config: config: add config option for bloom filter
Kubuxu Jul 15, 2016
f851787
go-ipfs-config: Merge pull request #2973 from ipfs/feature/blockstore…
whyrusleeping Jul 16, 2016
f5e4f18
go-ipfs-config: reprovider: add config option to set reprovide interval
whyrusleeping Aug 19, 2016
16dd947
go-ipfs-config: update deps for libp2p 3.4.0
whyrusleeping Aug 23, 2016
b4fd445
go-ipfs-config: config: guard against privkey being overwritten in fs…
whyrusleeping Aug 29, 2016
d229517
go-ipfs-config: Extract peerset, update peer, peerset, secio, libp2p
geoah Sep 10, 2016
faef265
go-ipfs-config: Merge branch 'version/0.4.3-rc4'
whyrusleeping Sep 21, 2016
3e6db54
go-ipfs-config: update to libp2p 4.0.1 and propogate other changes
whyrusleeping Oct 5, 2016
ed67b7b
go-ipfs-config: Changed so only explicit ipfs cli commands are lowerc…
RichardLitt Jul 1, 2016
07559a2
go-ipfs-config: add config option to disable bandwidth metrics
whyrusleeping Nov 11, 2016
608f6f3
go-ipfs-config: bootstrap: add a few /ip6 nodes
Dec 18, 2016
90644b3
go-ipfs-config: update go-multihash and bubble up deps
whyrusleeping Feb 3, 2017
a224112
go-ipfs-config: Merge pull request #3523 from ipfs/feat/ipv6-bootstrap
whyrusleeping Feb 17, 2017
4b5929d
go-ipfs-config: update go-libp2p-kad-dht with getclosestpeers fix
whyrusleeping Mar 6, 2017
f1cb6fe
go-ipfs-config: Implement basic filestore 'no-copy' functionality
whyrusleeping Jan 20, 2017
b40ebf1
go-ipfs-config: Merge pull request #3748 from ipfs/deps/update-dht
whyrusleeping Mar 6, 2017
0d70e83
go-ipfs-config: Add DisableNatPortMap option.
kevina Mar 18, 2017
4d73fe8
go-ipfs-config: add global config switch for sharding
whyrusleeping Mar 22, 2017
4299e72
go-ipfs-config: Merge pull request #3042 from ipfs/feat/hamt-sharding
whyrusleeping Mar 24, 2017
413034b
go-ipfs-config: bubble up updates from go-multihash changes
whyrusleeping Mar 25, 2017
53ceee4
go-ipfs-config: Corenet API: Apply suggestions, cleanups
magik6k May 28, 2017
9e050b1
go-ipfs-config: apply the megacheck tool to improve code quality
zramsay May 31, 2017
11f5cc6
go-ipfs-config: address PR comments; remove commented/dead code
zramsay Jun 1, 2017
90b6d80
go-ipfs-config: Merge pull request #3943 from magik6k/feat/corenet2
whyrusleeping Jun 10, 2017
08255bc
go-ipfs-config: Allow the use of the Range header in WebTorrent (#3929)
ivan386 Jun 10, 2017
c475d31
go-ipfs-config: Disable MDNS in server profile, move it out from init.go
magik6k Jun 21, 2017
af57db7
go-ipfs-config: Add test init profile
magik6k Jul 6, 2017
87d7ddb
go-ipfs-config: update go-multihash and bubble up changes
whyrusleeping Jul 12, 2017
c875a44
go-ipfs-config: core: make announced swarm addresses configurable
May 31, 2017
2f2b1fb
go-ipfs-config: Removed tour command and fix test
Aug 6, 2017
92d7259
go-ipfs-config: Reprovider strategies
magik6k Aug 1, 2017
5ae8a36
go-ipfs-config: Merge pull request #4113 from ipfs/feat/reprovider-st…
whyrusleeping Aug 16, 2017
b4973a5
go-ipfs-config: integrate circuit-relay transport
vyzo Jul 26, 2017
f65d6e4
go-ipfs-config: bootstrap: add /dnsaddr nodes, remove half of /ip4,/i…
Aug 7, 2017
9c60623
go-ipfs-config: make datastore configuration nicely customizable
whyrusleeping Mar 15, 2016
94a60d3
go-ipfs-config: cleanup and bug fixes
kevina May 10, 2017
f142bea
go-ipfs-config: bump repo version, remove support for old config
kevina May 20, 2017
4eb6ac6
go-ipfs-config: address p.r. comments
kevina Jun 13, 2017
2aa8f02
go-ipfs-config: Address p.r. feedback
kevina Jul 14, 2017
6110648
go-ipfs-config: add badger init profile
whyrusleeping Sep 4, 2017
118baa6
go-ipfs-config: add measure layer to badgerds profile defaults
whyrusleeping Sep 6, 2017
9e4fa0d
go-ipfs-config: add option to set syncWrites to badger
whyrusleeping Sep 6, 2017
842d0d3
go-ipfs-config: remove the rest of the supernode code
Stebalien Oct 14, 2017
810c8e7
go-ipfs-config: Integrate connection manager
whyrusleeping Sep 14, 2017
d214226
go-ipfs-config: Merge pull request #4288 from ipfs/feat/connmgr
whyrusleeping Oct 16, 2017
330b646
go-ipfs-config: default settings for the connection manager
whyrusleeping Oct 19, 2017
516673d
go-ipfs-config: extract go-ipfs-addr
whyrusleeping Oct 24, 2017
8061e0a
go-ipfs-config: Merge pull request #4340 from ipfs/feat/extract-ipfsaddr
whyrusleeping Oct 25, 2017
a93e251
go-ipfs-config: cmd: use go-ipfs-cmds
keks Apr 1, 2017
8662bbb
go-ipfs-config: gx: massive update
Stebalien Nov 21, 2017
85b87f7
go-ipfs-config: gx: update go-multihash
Stebalien Dec 4, 2017
3de82a7
go-ipfs-config: config: revert profile subcommand
magik6k Sep 5, 2017
cb7bc06
go-ipfs-config: config: profile tests, docs
magik6k Sep 6, 2017
151c8dc
go-ipfs-config: conifg-patch: apply review
magik6k Sep 21, 2017
c2a7465
go-ipfs-config: config: rename profile.Unapply to Revert
magik6k Nov 5, 2017
2423a8f
go-ipfs-config: config-patch: apply review suggestions
magik6k Nov 25, 2017
4c300c5
go-ipfs-config: config-patch: docs typo, fix server profile
magik6k Dec 16, 2017
cdb9c2f
go-ipfs-config: config-patch: Inverse profiles
magik6k Dec 16, 2017
60e814b
go-ipfs-config: cmds: use Executors
Dec 7, 2017
f1e0a38
go-ipfs-config: gx: mass update
Stebalien Jan 24, 2018
e811add
go-ipfs-config: update go-lib2p-loggables
Stebalien Jan 28, 2018
ca129b4
go-ipfs-config: gx: update go-log
Stebalien Feb 1, 2018
efb99b5
go-ipfs-config: daemon: config option for routing
magik6k Aug 20, 2017
8d8b02b
go-ipfs-config: init: lowpower profile
magik6k Aug 20, 2017
88d7dfe
go-ipfs-config: config: apply review to lowpower profile
magik6k Oct 31, 2017
020c55a
go-ipfs-config: Fix missing profile docs
magik6k Mar 20, 2018
0c8a2e1
go-ipfs-config: config/profile: disable UPnP/NAT in server profile, docs
magik6k Mar 26, 2018
af1fc17
go-ipfs-config: fix error style
magik6k Mar 18, 2018
18dec72
go-ipfs-config: Merge pull request #4846 from ipfs/feat/profile-help
whyrusleeping Apr 8, 2018
97590c7
go-ipfs-config: fix default-net profile not reverting bootstrap config
magik6k Mar 20, 2018
a55c0fb
go-ipfs-config: profile: fix test profile tests
magik6k Mar 30, 2018
c78cad7
go-ipfs-config: update deps
Stebalien May 4, 2018
5455b50
go-ipfs-config: update multiplexers
Stebalien Jun 4, 2018
e66b6dd
go-ipfs-config: update gx imports
Stebalien Jun 6, 2018
4a56636
go-ipfs-config: gx update go-log, sys, go-crypto
Stebalien Jun 9, 2018
019e7b2
go-ipfs-config: make ipfs swarm connect /ipfs/QmId work
Stebalien Jun 12, 2018
4b19004
go-ipfs-config: explicitly import go-multiaddr-dns in config/bootstra…
Stebalien Jun 21, 2018
7fded30
go-ipfs-config: gx update
Stebalien Jun 26, 2018
ee071db
go-ipfs-config: Add config option to enable urlstore.
kevina Jun 23, 2018
54e8e77
go-ipfs-config: move serialize package to config
magik6k Jul 22, 2018
d67080f
go-ipfs-config: Setup gx
magik6k Jul 23, 2018
757f25d
go-ipfs-config: gx-go uw
magik6k Jul 23, 2018
512b4d3
go-ipfs-config: remove version.go
magik6k Jul 23, 2018
212b72f
go-ipfs-config: add pubsub configuration
vyzo Aug 12, 2018
fda7020
go-ipfs-config: Merge pull request #3 from ipfs/feat/pubsub
Stebalien Aug 12, 2018
32cf2a6
go-ipfs-config: add QUIC experiment
marten-seemann Aug 26, 2018
dd22be5
go-ipfs-config: Merge pull request #4 from marten-seemann/quic
Stebalien Aug 26, 2018
6a618df
go-ipfs-config: allow multiple API/Gateway addresses
Stebalien Sep 15, 2018
d7c1f55
go-ipfs-config: Add Gateway.APICommands for /api allowlists
Sep 15, 2018
b62629a
go-ipfs-config: Merge pull request #10 from ipfs/feat/gateway-commands
Sep 24, 2018
5d245d8
go-ipfs-config: Merge pull request #11 from ipfs/feat/multi-addr
Stebalien Oct 2, 2018
6a3a087
go-ipfs-config: Fix handling of null strings
Oct 3, 2018
3258968
go-ipfs-config: Merge pull request #12 from ipfs/fix/null-string
Oct 3, 2018
43a6230
go-ipfs-config: add experiment for p2p http proxy
ianopolous Oct 4, 2018
765faf5
go-ipfs-config: Merge pull request #13 from ipfs/feat/p2p-http-proxy
ianopolous Oct 7, 2018
1ca5f8e
go-ipfs-config: Allow the use of the User-Agent header
ivan386 Oct 14, 2018
7cecbb9
go-ipfs-config: add pubsub message signing options to config
Stebalien Oct 25, 2018
e534f3b
go-ipfs-config: Merge pull request #18 from ipfs/feat/pubsub-message-…
Stebalien Oct 26, 2018
77a3e94
go-ipfs-config: profile: add badger truncate option
schomatis Oct 29, 2018
b83ea09
go-ipfs-config: change randomports Description
tarekbadrsh Nov 3, 2018
bf2923e
go-ipfs-config: autorelay options
vyzo Nov 20, 2018
008c926
go-ipfs-config: Merge pull request #21 from ipfs/feat/autorelay
Stebalien Nov 27, 2018
7735514
go-ipfs-config: Merge pull request #15 from ivan386/patch-1
Stebalien Nov 27, 2018
16f3d22
go-ipfs-config: Merge pull request #17 from tarekbadrshalaan/feat/pro…
Stebalien Dec 11, 2018
b627585
go-ipfs-config: add a Clone function
Stebalien Oct 23, 2018
3cd45d8
go-ipfs-config: add tests for the "Strings" type
Stebalien Oct 23, 2018
e4282bd
go-ipfs-config: Add one more test for config.Clone
magik6k Nov 6, 2018
b251798
go-ipfs-config: Merge pull request #16 from ipfs/fix/thread-safety
Stebalien Dec 14, 2018
bc31fd9
go-ipfs-config: Add Gateway.NoFetch
magik6k Oct 25, 2018
ca406e1
go-ipfs-config: Merge pull request #19 from ipfs/feat/gw-nofetch
magik6k Jan 7, 2019
3475f83
go-ipfs-config: add an experiment to prefer TLS over secio
marten-seemann Apr 18, 2019
a75c9b7
go-ipfs-config: Merge pull request #32 from marten-seemann/prefer-tls
Stebalien Apr 18, 2019
c920b46
go-ipfs-config: Closes: #6284 Add appropriate IPv6 ranges to defaultS…
May 1, 2019
62c4b48
go-ipfs-config: Merge pull request #34 from teran-mckinney/master
Stebalien May 1, 2019
b2029f1
go-ipfs-config: Add provider system experiment
michaelavila Apr 18, 2019
e1c26d5
go-ipfs-config: Merge pull request #33 from ipfs/experiment/provider-…
michaelavila May 20, 2019
e76a8cf
go-ipfs-config: migrate to the consolidated libp2p
Stebalien May 31, 2019
ae7c2e9
go-ipfs-config: Merge pull request #36 from ipfs/migrate-libp2p
Stebalien May 31, 2019
e9c30cf
go-ipfs-config: fix string formatting of bootstrap peers
Stebalien Jun 1, 2019
a7d7f22
go-ipfs-config: Merge pull request #37 from ipfs/fix/formatting-boots…
Stebalien Jun 1, 2019
f61d052
go-ipfs-config: Add very basic (possibly temporary) Provider configs
michaelavila Jun 27, 2019
86abf1f
go-ipfs-config: Fix bad go fmt
michaelavila Jun 27, 2019
3692ba8
go-ipfs-config: Merge pull request #38 from ipfs/features/add-provide…
Stebalien Jul 9, 2019
a7ff340
go-ipfs-config: chore: bump minimum key size to 2048
Stebalien Aug 29, 2019
a04a858
go-ipfs-config: add plugins config section
Stebalien Aug 29, 2019
1f6f939
go-ipfs-config: Merge pull request #43 from ipfs/feat/plugin-config
Stebalien Aug 29, 2019
25e3e19
go-ipfs-config: nit: omit empty plugin values
Stebalien Aug 29, 2019
356880a
go-ipfs-config: Merge pull request #44 from ipfs/nit/omitempty-plugin
Stebalien Aug 29, 2019
40bc237
go-ipfs-config: make it easier to detect an uninitialized repo
Stebalien Aug 29, 2019
a052688
go-ipfs-config: Merge pull request #45 from ipfs/fix/is-not-exist
Stebalien Aug 29, 2019
f0b5fe9
go-ipfs-config: plugins: don't omit empty config values
Stebalien Aug 29, 2019
ad3cb6c
go-ipfs-config: Merge pull request #46 from ipfs/fix/no-omitempty
Stebalien Aug 29, 2019
66886eb
go-ipfs-config: fix(init): use key size constraints defined in libp2p
Stebalien Dec 4, 2019
944d62b
go-ipfs-config: Merge pull request #57 from ipfs/fix/generic-key-size
Stebalien Dec 4, 2019
d0d55a8
go-ipfs-config: migrate multiaddrs from /ipfs -> /p2p
Stebalien Jul 23, 2019
ba29412
go-ipfs-config: Merge pull request #39 from ipfs/feat/ipfs-to-p2p
Stebalien Dec 14, 2019
95a14f4
go-ipfs-config: profile: badger profile now defaults to asynchronous …
aschmahmann Dec 16, 2019
357e86d
go-ipfs-config: Merge pull request #60 from ipfs/defaults/badger-async
Stebalien Jan 3, 2020
7dfdeeb
go-ipfs-config: feat: add graphsync option
Stebalien Feb 12, 2020
265f8cf
go-ipfs-config: add config options for proxy/subdomain
lidel Mar 15, 2019
7a22748
go-ipfs-config: Merge pull request #30 from ipfs/feat/gateway-subdomains
Stebalien Mar 18, 2020
f455264
go-ipfs-config: feat: remove old bootstrap peers
Stebalien Mar 18, 2020
fe9db1c
go-ipfs-config: Merge pull request #67 from ipfs/feat/remove-old-boot…
Stebalien Mar 18, 2020
f83f2b1
go-ipfs-config: chore: remove unnecessary dependency
Stebalien Mar 18, 2020
51770f5
go-ipfs-config: Merge pull request #68 from ipfs/chore/remove-dep
Stebalien Mar 18, 2020
cc723f9
go-ipfs-config: feat: mark badger as stable
Stebalien Mar 25, 2020
542ca92
go-ipfs-config: feat: remove PreferTLS experiment
Stebalien Mar 30, 2020
94994aa
go-ipfs-config: Merge pull request #71 from ipfs/chore/remove-prefer-tls
Stebalien Mar 30, 2020
0f2ebaa
go-ipfs-config: Merge pull request #70 from ipfs/feat/badger-stable
Stebalien Apr 1, 2020
043f20c
go-ipfs-config: feat: add private routing config field
Stebalien Apr 6, 2020
7b92251
go-ipfs-config: doc: add a bit of documentation.
Stebalien Apr 7, 2020
c030db0
go-ipfs-config: Merge pull request #73 from ipfs/feat/add-private-rou…
Stebalien Apr 7, 2020
ab3a78d
go-ipfs-config: feat: remove Routing.PrivateType
Stebalien Apr 9, 2020
8b77ad2
go-ipfs-config: Merge pull request #74 from ipfs/feat/remove-private
Stebalien Apr 9, 2020
4554fc9
go-ipfs-config: feat: add an autonat config section
Stebalien Apr 15, 2020
3c6a974
go-ipfs-config: Merge pull request #75 from ipfs/feat/autonat
Stebalien Apr 15, 2020
25a96cf
go-ipfs-config: feat: add and use a duration helper type
Stebalien Apr 15, 2020
08c4a24
go-ipfs-config: Merge pull request #76 from ipfs/feat/duration-type
Stebalien Apr 15, 2020
cf3fa1b
go-ipfs-config: feat: disable autonat service when in lowpower mode
Stebalien Apr 15, 2020
48dc791
go-ipfs-config: Merge pull request #77 from ipfs/feat/disable-autonat…
Stebalien Apr 15, 2020
d02cdb3
go-ipfs-config: Add Init Alternative allowing specification of ED2551…
willscott Apr 21, 2020
c6336c3
go-ipfs-config: interface
willscott Apr 21, 2020
515d690
go-ipfs-config: fix: correct the default-datastore config profile
Stebalien Apr 27, 2020
23817a3
go-ipfs-config: Merge pull request #80 from ipfs/fix/default-datastore
Stebalien Apr 27, 2020
a70d82e
go-ipfs-config: add test validating that createIdentity follows algor…
willscott Apr 28, 2020
eaf1cc8
go-ipfs-config: Merge pull request #78 from ipfs/feat/ed25519init
willscott Apr 28, 2020
ed0f306
go-ipfs-config: feat: remove strict signing pubsub option.
Stebalien May 20, 2020
00a7c6a
go-ipfs-config: Merge pull request #90 from ipfs/feat/remove-strict-s…
Stebalien May 20, 2020
ca70989
go-ipfs-config: default config: add QUIC listening ports + quic to ma…
RubenKelevra May 21, 2020
c3cd359
go-ipfs-config: Merge pull request #91 from RubenKelevra/feat/default…
Stebalien May 21, 2020
7f51e84
go-ipfs-config: QUIC: remove experimental config option
RubenKelevra May 22, 2020
5f248ac
go-ipfs-config: fix boostrap peers
RubenKelevra May 22, 2020
984de70
go-ipfs-config: Merge pull request #94 from RubenKelevra/fix/bootstra…
Stebalien May 22, 2020
45f2784
go-ipfs-config: Merge pull request #93 from RubenKelevra/feat/quic_re…
Stebalien May 22, 2020
ba2e10a
go-ipfs-config: fix: include key size in key init method
Stebalien May 22, 2020
435b942
go-ipfs-config: Merge pull request #95 from ipfs/fix/key-init-message
Stebalien May 22, 2020
13bcc4d
go-ipfs-config: feat: add peering service config section
Stebalien May 25, 2020
75bde89
go-ipfs-config: doc: improve wording for peering config
Stebalien May 26, 2020
a346451
go-ipfs-config: Merge pull request #96 from ipfs/feat/peering-service
Stebalien May 26, 2020
e69fcd9
go-ipfs-config: feat: add an option for security transport experiments
Stebalien May 26, 2020
3d90053
go-ipfs-config: Merge pull request #97 from ipfs/feat/sec-transport-e…
Stebalien May 26, 2020
9ebfb49
go-ipfs-config: fix: remove group permissions
Stebalien Jun 3, 2020
89e73d9
go-ipfs-config: Merge pull request #98 from ipfs/fix/default-perms
Stebalien Jun 3, 2020
dfe53cd
go-ipfs-config: feat: add flag and priority types
Stebalien Jun 15, 2020
4f3aeb7
go-ipfs-config: feat: add a transports section for enabling/disabling…
Stebalien Jun 15, 2020
57089fd
go-ipfs-config: feat: remove OverrideSecurityTransports
Stebalien Jun 15, 2020
7ce67b8
go-ipfs-config: feat: add WithDefault for flag/priority
Stebalien Jun 16, 2020
0f17ef6
go-ipfs-config: doc(swarm): fix autorelay description
Stebalien Jun 16, 2020
f74d15e
go-ipfs-config: fix: fix type name typo
Stebalien Jun 16, 2020
f55b515
go-ipfs-config: doc(swarm): extend autorelay docs
Stebalien Jun 16, 2020
e26444e
go-ipfs-config: fix typo
Stebalien Jun 16, 2020
5c1b4cd
go-ipfs-config: doc: document Flag.WithDefault
Stebalien Jun 16, 2020
38ad98d
go-ipfs-config: fix: remove undefined support from unmarshal
Stebalien Jun 16, 2020
44e005e
go-ipfs-config: fix: panic on invalid priority/flag values
Stebalien Jun 16, 2020
9e480f6
go-ipfs-config: Merge pull request #102 from ipfs/feat/transports
Stebalien Jun 16, 2020
da97929
go-ipfs-config: error if bit size specified with ed25519 keys (#105)
petar Jul 14, 2020
1ec9262
go-ipfs-config: Add badger2 profile and config spec
gammazero Sep 24, 2020
74dcf42
go-ipfs-config: Remove badger2 profile
gammazero Nov 24, 2020
d445c0c
go-ipfs-config: Merge pull request #115 from ipfs/chore/rm-badger2
aschmahmann Nov 24, 2020
06fe967
go-ipfs-config: add remote pinning services config
aschmahmann Dec 4, 2020
d643a2b
go-ipfs-config: go fmt
aschmahmann Dec 4, 2020
ba6b029
go-ipfs-config: Merge pull request #113 from ipfs/petar/remotepin
aschmahmann Dec 8, 2020
2690c10
go-ipfs-config: add support for pinning mfs (#116)
aschmahmann Jan 28, 2021
f5fb70e
go-ipfs-config: remove duplicate entries in defaultServerFilters
RubenKelevra Mar 24, 2021
8a8b161
go-ipfs-config: add custom DNS Resolver configuration
vyzo Apr 12, 2021
28553d7
go-ipfs-config: simplify DNS config
vyzo Apr 13, 2021
f264de4
go-ipfs-config: update comments
vyzo Apr 13, 2021
c932e6b
go-ipfs-config: add default empty config for DNS, rename struct from …
vyzo Apr 14, 2021
4b1ae41
go-ipfs-config: Merge pull request #126 from ipfs/feat/custom-resolver
vyzo Apr 15, 2021
67456e2
go-ipfs-config: Add config for downloading repo migrations
gammazero Apr 17, 2021
5e6df6f
go-ipfs-config: unit test for migration config
gammazero Apr 18, 2021
98052e9
go-ipfs-config: Merge pull request #121 from RubenKelevra/patch-1
aschmahmann Apr 19, 2021
ec1659d
go-ipfs-config: Init migration config with empty values
gammazero Apr 20, 2021
dbb5fa7
go-ipfs-config: Fix comment
gammazero Apr 20, 2021
4b778ce
go-ipfs-config: Removed Peers from migration config
gammazero May 3, 2021
f7b64b3
go-ipfs-config: Merge pull request #128 from ipfs/feat/migration-config
Stebalien May 3, 2021
22d2b6b
go-ipfs-config: add option for Accelerated DHT Client experiment
aschmahmann Apr 5, 2021
fc761b1
go-ipfs-config: Merge pull request #125 from ipfs/feat/experimental-d…
aschmahmann May 14, 2021
e7bb833
go-ipfs-config: [LINT] error strings should not end with punctuation …
mburns May 14, 2021
b14afc2
go-ipfs-config: Merge pull request #131 from ipfs/fix-staticcheck
marten-seemann May 14, 2021
8f09fa5
go-ipfs-config: run gofmt -s
web3-bot May 17, 2021
ea17b50
go-ipfs-config: Merge pull request #132 from ipfs/web3-bot/sync
marten-seemann May 17, 2021
c692e73
go-ipfs-config: fix: remove deprecated calls
Stebalien Jul 22, 2021
d00f8a1
go-ipfs-config: Merge pull request #138 from ipfs/fix/deprecation
Stebalien Jul 22, 2021
7c1029c
go-ipfs-config: fix: make sure the Priority type properly implements …
aschmahmann Aug 11, 2021
ac81804
go-ipfs-config: feat: add an OptionalInteger type
aschmahmann Aug 16, 2021
4429117
go-ipfs-config: feat: add Internal and Internal.Bitswap config options
petar Jul 23, 2021
2cf170d
go-ipfs-config: feat: add an OptionalDuration type (#148)
marten-seemann Oct 27, 2021
9eaf572
go-ipfs-config: feat: pubsub and ipns pubsub flags (#145)
jwh Oct 27, 2021
cdaa222
go-ipfs-config: feat: OptionalString type and UnixFSShardingSizeThres…
aschmahmann Oct 28, 2021
ba9d9f6
go-ipfs-config: fix: String method on the OptionalString (#153)
marten-seemann Oct 29, 2021
d226879
go-ipfs-config: feat: Swarm.RelayService (circuit v2) (#146)
marten-seemann Nov 13, 2021
dcf17eb
go-ipfs-config: improve AutoRelay configuration, add config option fo…
marten-seemann Nov 14, 2021
bf3a2ca
go-ipfs-config: set Swarm.EnableAutoRelay to omitempty
marten-seemann Nov 15, 2021
aefce5a
go-ipfs-config: refactor: AutoRelay → RelayClient
lidel Nov 15, 2021
1b4502c
go-ipfs-config: Merge pull request #154 from ipfs/static-relays
aschmahmann Nov 15, 2021
7fe155c
go-ipfs-config: feat: add a flag to enable the hole punching service …
marten-seemann Nov 16, 2021
5ca8226
go-ipfs-config: chore: update comment to match struct
lidel Nov 18, 2021
d50960f
go-ipfs-config: chore: omitempty Experimental.ShardingEnabled (#158)
lidel Nov 23, 2021
ded27a5
go-ipfs-config: feat: omitempty Swarm.EnableRelayHop for circuit v1 m…
marten-seemann Nov 23, 2021
a6008f0
go-ipfs-config: feat: add Addresses.AppendAnnounce (#135)
Jorropo Nov 23, 2021
9a0bd0f
go-ipfs-config: feat: add DNS.MaxCacheTTL for DNS-over-HTTPS resolver…
thibmeu Jan 20, 2022
74e6436
go-ipfs-config: docs: updated flatfs/badger profile helptext (#167)
lidel Jan 28, 2022
783092e
Merge remote-tracking branch 'config/master' into feat/add-back-ipfs-…
laurentsenta Mar 4, 2022
c9cf47d
config: remove go-ipfs-config code
laurentsenta Feb 25, 2022
8d549f0
fix: rewrite dependencies over the go-ipfs-config package
laurentsenta Mar 2, 2022
6379013
ci: tweak example testing to pass with internal config package
laurentsenta Mar 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .circleci/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,18 @@ jobs:
# make sure the examples run against the current version of go-ipfs
go mod edit -replace github.com/ipfs/go-ipfs=./../../..
go mod tidy

# use the internal config package when we test the current version of go-ipfs
sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/go-ipfs/config";' ./main.go

Comment on lines +124 to +126
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a smart failsafe, good to keep this around to detect any future regressions 👍

go test -v ./...

# restore the go.mod and go.sum files to their original state
mv go.mod.bak go.mod
mv go.sum.bak go.sum

# restore the main.go to its original state
mv main.go.bak main.go
working_directory: ~/ipfs/go-ipfs/docs/examples/go-ipfs-as-a-library

- run:
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ Listing of the main packages used in the IPFS ecosystem. There are also three sp
| **Namesys** |
| [`go-ipns`](//github.com/ipfs/go-ipns) | [![Travis CI](https://flat.badgen.net/travis/ipfs/go-ipns/master)](https://travis-ci.com/ipfs/go-ipns) | [![codecov](https://codecov.io/gh/ipfs/go-ipns/branch/master/graph/badge.svg?style=flat-square)](https://codecov.io/gh/ipfs/go-ipns) | IPNS datastructures and validation logic |
| **Repo** |
| [`go-ipfs-config`](//github.com/ipfs/go-ipfs-config) | [![Travis CI](https://flat.badgen.net/travis/ipfs/go-ipfs-config/master)](https://travis-ci.com/ipfs/go-ipfs-config) | [![codecov](https://codecov.io/gh/ipfs/go-ipfs-config/branch/master/graph/badge.svg?style=flat-square)](https://codecov.io/gh/ipfs/go-ipfs-config) | go-ipfs config file definitions |
| [`go-fs-lock`](//github.com/ipfs/go-fs-lock) | [![Travis CI](https://flat.badgen.net/travis/ipfs/go-fs-lock/master)](https://travis-ci.com/ipfs/go-fs-lock) | [![codecov](https://codecov.io/gh/ipfs/go-fs-lock/branch/master/graph/badge.svg?style=flat-square)](https://codecov.io/gh/ipfs/go-fs-lock) | lockfile management functions |
| [`fs-repo-migrations`](//github.com/ipfs/fs-repo-migrations) | [![Travis CI](https://flat.badgen.net/travis/ipfs/fs-repo-migrations/master)](https://travis-ci.com/ipfs/fs-repo-migrations) | [![codecov](https://codecov.io/gh/ipfs/fs-repo-migrations/branch/master/graph/badge.svg?style=flat-square)](https://codecov.io/gh/ipfs/fs-repo-migrations) | repo migrations |
| **IPLD** |
Expand Down
4 changes: 2 additions & 2 deletions cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
multierror "github.com/hashicorp/go-multierror"

version "github.com/ipfs/go-ipfs"
config "github.com/ipfs/go-ipfs-config"
cserial "github.com/ipfs/go-ipfs-config/serialize"
utilmain "github.com/ipfs/go-ipfs/cmd/ipfs/util"
oldcmds "github.com/ipfs/go-ipfs/commands"
config "github.com/ipfs/go-ipfs/config"
cserial "github.com/ipfs/go-ipfs/config/serialize"
"github.com/ipfs/go-ipfs/core"
commands "github.com/ipfs/go-ipfs/core/commands"
"github.com/ipfs/go-ipfs/core/coreapi"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
unixfs "github.com/ipfs/go-unixfs"

cmds "github.com/ipfs/go-ipfs-cmds"
config "github.com/ipfs/go-ipfs-config"
files "github.com/ipfs/go-ipfs-files"
config "github.com/ipfs/go-ipfs/config"
options "github.com/ipfs/interface-go-ipfs-core/options"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
cmds "github.com/ipfs/go-ipfs-cmds"
"github.com/ipfs/go-ipfs-cmds/cli"
cmdhttp "github.com/ipfs/go-ipfs-cmds/http"
config "github.com/ipfs/go-ipfs-config"
u "github.com/ipfs/go-ipfs-util"
config "github.com/ipfs/go-ipfs/config"
logging "github.com/ipfs/go-log"
loggables "github.com/libp2p/go-libp2p-loggables"
ma "github.com/multiformats/go-multiaddr"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/pinmfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
logging "github.com/ipfs/go-log"
pinclient "github.com/ipfs/go-pinning-service-http-client"

config "github.com/ipfs/go-ipfs-config"
config "github.com/ipfs/go-ipfs/config"
"github.com/ipfs/go-ipfs/core"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/pinmfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

config "github.com/ipfs/go-ipfs-config"
config "github.com/ipfs/go-ipfs/config"
ipld "github.com/ipfs/go-ipld-format"
merkledag "github.com/ipfs/go-merkledag"
"github.com/libp2p/go-libp2p-core/host"
Expand Down
3 changes: 2 additions & 1 deletion cmd/ipfswatch/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !plan9
// +build !plan9

package main
Expand All @@ -18,8 +19,8 @@ import (
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"

fsnotify "github.com/fsnotify/fsnotify"
config "github.com/ipfs/go-ipfs-config"
files "github.com/ipfs/go-ipfs-files"
config "github.com/ipfs/go-ipfs/config"
process "github.com/jbenet/goprocess"
homedir "github.com/mitchellh/go-homedir"
)
Expand Down
2 changes: 1 addition & 1 deletion commands/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
loader "github.com/ipfs/go-ipfs/plugin/loader"

cmds "github.com/ipfs/go-ipfs-cmds"
config "github.com/ipfs/go-ipfs-config"
config "github.com/ipfs/go-ipfs/config"
logging "github.com/ipfs/go-log"
coreiface "github.com/ipfs/interface-go-ipfs-core"
options "github.com/ipfs/interface-go-ipfs-core/options"
Expand Down
11 changes: 11 additions & 0 deletions config/addresses.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package config

// Addresses stores the (string) multiaddr addresses for the node.
type Addresses struct {
Swarm []string // addresses for the swarm to listen on
Announce []string // swarm addresses to announce to the network, if len > 0 replaces auto detected addresses
AppendAnnounce []string // similar to Announce but doesn't overwride auto detected addresses, they are just appended
NoAnnounce []string // swarm addresses not to announce to the network
API Strings // address for the local API (RPC)
Gateway Strings // address to listen on for IPFS HTTP object gateway
}
5 changes: 5 additions & 0 deletions config/api.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package config

type API struct {
HTTPHeaders map[string][]string // HTTP headers to return with the API.
}
81 changes: 81 additions & 0 deletions config/autonat.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
package config

import (
"fmt"
)

// AutoNATServiceMode configures the ipfs node's AutoNAT service.
type AutoNATServiceMode int

const (
// AutoNATServiceUnset indicates that the user has not set the
// AutoNATService mode.
//
// When unset, nodes configured to be public DHT nodes will _also_
// perform limited AutoNAT dialbacks.
AutoNATServiceUnset AutoNATServiceMode = iota
// AutoNATServiceEnabled indicates that the user has enabled the
// AutoNATService.
AutoNATServiceEnabled
// AutoNATServiceDisabled indicates that the user has disabled the
// AutoNATService.
AutoNATServiceDisabled
)

func (m *AutoNATServiceMode) UnmarshalText(text []byte) error {
switch string(text) {
case "":
*m = AutoNATServiceUnset
case "enabled":
*m = AutoNATServiceEnabled
case "disabled":
*m = AutoNATServiceDisabled
default:
return fmt.Errorf("unknown autonat mode: %s", string(text))
}
return nil
}

func (m AutoNATServiceMode) MarshalText() ([]byte, error) {
switch m {
case AutoNATServiceUnset:
return nil, nil
case AutoNATServiceEnabled:
return []byte("enabled"), nil
case AutoNATServiceDisabled:
return []byte("disabled"), nil
default:
return nil, fmt.Errorf("unknown autonat mode: %d", m)
}
}

// AutoNATConfig configures the node's AutoNAT subsystem.
type AutoNATConfig struct {
// ServiceMode configures the node's AutoNAT service mode.
ServiceMode AutoNATServiceMode `json:",omitempty"`

// Throttle configures AutoNAT dialback throttling.
//
// If unset, the conservative libp2p defaults will be unset. To help the
// network, please consider setting this and increasing the limits.
//
// By default, the limits will be a total of 30 dialbacks, with a
// per-peer max of 3 peer, resetting every minute.
Throttle *AutoNATThrottleConfig `json:",omitempty"`
}

// AutoNATThrottleConfig configures the throttle limites
type AutoNATThrottleConfig struct {
// GlobalLimit and PeerLimit sets the global and per-peer dialback
// limits. The AutoNAT service will only perform the specified number of
// dialbacks per interval.
//
// Setting either to 0 will disable the appropriate limit.
GlobalLimit, PeerLimit int

// Interval specifies how frequently this node should reset the
// global/peer dialback limits.
//
// When unset, this defaults to 1 minute.
Interval OptionalDuration `json:",omitempty"`
}
77 changes: 77 additions & 0 deletions config/bootstrap_peers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
package config

import (
"errors"
"fmt"

peer "github.com/libp2p/go-libp2p-core/peer"
ma "github.com/multiformats/go-multiaddr"
)

// DefaultBootstrapAddresses are the hardcoded bootstrap addresses
// for IPFS. they are nodes run by the IPFS team. docs on these later.
// As with all p2p networks, bootstrap is an important security concern.
//
// NOTE: This is here -- and not inside cmd/ipfs/init.go -- because of an
// import dependency issue. TODO: move this into a config/default/ package.
var DefaultBootstrapAddresses = []string{
"/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
"/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
"/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
"/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
"/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io
"/ip4/104.131.131.82/udp/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", // mars.i.ipfs.io
}

// ErrInvalidPeerAddr signals an address is not a valid peer address.
var ErrInvalidPeerAddr = errors.New("invalid peer address")

func (c *Config) BootstrapPeers() ([]peer.AddrInfo, error) {
return ParseBootstrapPeers(c.Bootstrap)
}

// DefaultBootstrapPeers returns the (parsed) set of default bootstrap peers.
// if it fails, it returns a meaningful error for the user.
// This is here (and not inside cmd/ipfs/init) because of module dependency problems.
func DefaultBootstrapPeers() ([]peer.AddrInfo, error) {
ps, err := ParseBootstrapPeers(DefaultBootstrapAddresses)
if err != nil {
return nil, fmt.Errorf(`failed to parse hardcoded bootstrap peers: %s
This is a problem with the ipfs codebase. Please report it to the dev team`, err)
}
return ps, nil
}

func (c *Config) SetBootstrapPeers(bps []peer.AddrInfo) {
c.Bootstrap = BootstrapPeerStrings(bps)
}

// ParseBootstrapPeer parses a bootstrap list into a list of AddrInfos.
func ParseBootstrapPeers(addrs []string) ([]peer.AddrInfo, error) {
maddrs := make([]ma.Multiaddr, len(addrs))
for i, addr := range addrs {
var err error
maddrs[i], err = ma.NewMultiaddr(addr)
if err != nil {
return nil, err
}
}
return peer.AddrInfosFromP2pAddrs(maddrs...)
}

// BootstrapPeerStrings formats a list of AddrInfos as a bootstrap peer list
// suitable for serialization.
func BootstrapPeerStrings(bps []peer.AddrInfo) []string {
bpss := make([]string, 0, len(bps))
for _, pi := range bps {
addrs, err := peer.AddrInfoToP2pAddrs(&pi)
if err != nil {
// programmer error.
panic(err)
}
for _, addr := range addrs {
bpss = append(bpss, addr.String())
}
}
return bpss
}
24 changes: 24 additions & 0 deletions config/bootstrap_peers_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package config

import (
"sort"
"testing"
)

func TestBoostrapPeerStrings(t *testing.T) {
parsed, err := ParseBootstrapPeers(DefaultBootstrapAddresses)
if err != nil {
t.Fatal(err)
}

formatted := BootstrapPeerStrings(parsed)
sort.Strings(formatted)
expected := append([]string{}, DefaultBootstrapAddresses...)
sort.Strings(expected)

for i, s := range formatted {
if expected[i] != s {
t.Fatalf("expected %s, %s", expected[i], s)
}
}
}
Loading