You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -307,6 +307,7 @@ Instead of a boolean, you may provide an object with custom initialization optio
307
307
})
308
308
```
309
309
-`pass` (string) A passphrase to encrypt keys. You should generally use the [top-level `pass` option](#optionspass) instead of the `init.pass`option (this one will take its value from the top-level option if not set).
310
+
-`profiles` (Array) Apply profile settings to config.
description: 'Disables local host discovery - recommended when running IPFS on machines with public IPv4 addresses.',
59
+
description: 'Recommended for nodes with public IPv4 address (servers, VPSes, etc.), disables host and content discovery in local networks.',
60
60
transform: (config)=>{
61
61
config.Discovery.MDNS.Enabled=false
62
62
config.Discovery.webRTCStar.Enabled=false
@@ -65,37 +65,16 @@ const profiles = {
65
65
}
66
66
},
67
67
'local-discovery': {
68
-
description: 'Enables local host discovery - inverse of "server" profile.',
68
+
description: 'Sets default values to fields affected by `server` profile, enables discovery in local networks.',
69
69
transform: (config)=>{
70
70
config.Discovery.MDNS.Enabled=true
71
71
config.Discovery.webRTCStar.Enabled=true
72
72
73
73
returnconfig
74
74
}
75
75
},
76
-
lowpower: {
77
-
description: 'Reduces daemon overhead on the system - recommended for low power systems.',
78
-
transform: (config)=>{
79
-
config.Swarm=config.Swarm||{}
80
-
config.Swarm.ConnMgr=config.Swarm.ConnMgr||{}
81
-
config.Swarm.ConnMgr.LowWater=20
82
-
config.Swarm.ConnMgr.HighWater=40
83
-
84
-
returnconfig
85
-
}
86
-
},
87
-
'default-power': {
88
-
description: 'Inverse of "lowpower" profile.',
89
-
transform: (config)=>{
90
-
constdefaultConfig=getDefaultConfig()
91
-
92
-
config.Swarm=defaultConfig.Swarm
93
-
94
-
returnconfig
95
-
}
96
-
},
97
76
test: {
98
-
description: 'Reduces external interference of IPFS daemon - for running the daemon in test environments.',
77
+
description: 'Reduces external interference, useful for running ipfs in test environments. Note that with these settings node won\'t be able to talk to the rest of the network without manual bootstrap.',
99
78
transform: (config)=>{
100
79
constdefaultConfig=getDefaultConfig()
101
80
@@ -110,7 +89,7 @@ const profiles = {
110
89
}
111
90
},
112
91
'default-networking': {
113
-
description: 'Restores default network settings - inverse of "test" profile.',
92
+
description: 'Restores default network settings. Inverse profile of the `test` profile.',
description: 'Reduces daemon overhead on the system. May affect node functionality,performance of content discovery and data fetching may be degraded. Recommended for low power systems.',
0 commit comments