config/profile: disable UPnP/NAT in server profile, docs
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Łukasz Magiera committed
Mar 26, 2018 at 19:32 UTC
81e720c85a903a0e62218f8bacab8d231f959170
1 file changed
+12
repo/config/profile.go
+12
@@ -44,6 +44,7 @@ running IPFS on machines with public IPv4 addresses.`,
44
c.Addresses.NoAnnounce = appendSingle(c.Addresses.NoAnnounce, defaultServerFilters)
45
c.Swarm.AddrFilters = appendSingle(c.Swarm.AddrFilters, defaultServerFilters)
46
c.Discovery.MDNS.Enabled = false
47
+ c.Swarm.DisableNatPortMap = true
48
return nil
49
},
50
},
@@ -56,6 +57,7 @@ profile, enables discovery in local networks.`,
57
c.Addresses.NoAnnounce = deleteEntries(c.Addresses.NoAnnounce, defaultServerFilters)
58
c.Swarm.AddrFilters = deleteEntries(c.Swarm.AddrFilters, defaultServerFilters)
59
c.Discovery.MDNS.Enabled = true
60
+ c.Swarm.DisableNatPortMap = false
61
return nil
62
},
63
},
@@ -97,6 +99,11 @@ If you apply this profile after ipfs init, you will need
99
to convert your datastore to the new configuration.
100
You can do this using ipfs-ds-convert.
101
102
+For more on ipfs-ds-convert see
103
+$ ipfs-ds-convert --help
104
+and
105
+$ ipfs-ds-convert convert --help
106
+
107
WARNING: badger datastore is experimental.
108
Make sure to backup your data frequently.`,
109
@@ -119,6 +126,11 @@ Make sure to backup your data frequently.`,
126
If you apply this profile after ipfs init, you will need
127
to convert your datastore to the new configuration.
128
You can do this using ipfs-ds-convert.
129
+
130
+For more on ipfs-ds-convert see
131
+$ ipfs-ds-convert --help
132
+and
133
+$ ipfs-ds-convert convert --help
134
`,
135
136
Transform: func(c *Config) error {