1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 01:12:24 +08:00

config/profile: disable UPnP/NAT in server profile, docs

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera
2018-03-26 19:32:15 +02:00
parent 57d6a7c2db
commit 81e720c85a

View File

@ -44,6 +44,7 @@ running IPFS on machines with public IPv4 addresses.`,
c.Addresses.NoAnnounce = appendSingle(c.Addresses.NoAnnounce, defaultServerFilters) c.Addresses.NoAnnounce = appendSingle(c.Addresses.NoAnnounce, defaultServerFilters)
c.Swarm.AddrFilters = appendSingle(c.Swarm.AddrFilters, defaultServerFilters) c.Swarm.AddrFilters = appendSingle(c.Swarm.AddrFilters, defaultServerFilters)
c.Discovery.MDNS.Enabled = false c.Discovery.MDNS.Enabled = false
c.Swarm.DisableNatPortMap = true
return nil return nil
}, },
}, },
@ -56,6 +57,7 @@ profile, enables discovery in local networks.`,
c.Addresses.NoAnnounce = deleteEntries(c.Addresses.NoAnnounce, defaultServerFilters) c.Addresses.NoAnnounce = deleteEntries(c.Addresses.NoAnnounce, defaultServerFilters)
c.Swarm.AddrFilters = deleteEntries(c.Swarm.AddrFilters, defaultServerFilters) c.Swarm.AddrFilters = deleteEntries(c.Swarm.AddrFilters, defaultServerFilters)
c.Discovery.MDNS.Enabled = true c.Discovery.MDNS.Enabled = true
c.Swarm.DisableNatPortMap = false
return nil return nil
}, },
}, },
@ -97,6 +99,11 @@ If you apply this profile after ipfs init, you will need
to convert your datastore to the new configuration. to convert your datastore to the new configuration.
You can do this using ipfs-ds-convert. You can do this using ipfs-ds-convert.
For more on ipfs-ds-convert see
$ ipfs-ds-convert --help
and
$ ipfs-ds-convert convert --help
WARNING: badger datastore is experimental. WARNING: badger datastore is experimental.
Make sure to backup your data frequently.`, Make sure to backup your data frequently.`,
@ -119,6 +126,11 @@ Make sure to backup your data frequently.`,
If you apply this profile after ipfs init, you will need If you apply this profile after ipfs init, you will need
to convert your datastore to the new configuration. to convert your datastore to the new configuration.
You can do this using ipfs-ds-convert. You can do this using ipfs-ds-convert.
For more on ipfs-ds-convert see
$ ipfs-ds-convert --help
and
$ ipfs-ds-convert convert --help
`, `,
Transform: func(c *Config) error { Transform: func(c *Config) error {