Skip to content

Commit

Permalink
config/profile: disable UPnP/NAT in server profile, docs
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
  • Loading branch information
magik6k committed Mar 26, 2018
1 parent 57d6a7c commit e886e04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions repo/config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ running IPFS on machines with public IPv4 addresses.`,
c.Addresses.NoAnnounce = appendSingle(c.Addresses.NoAnnounce, defaultServerFilters)
c.Swarm.AddrFilters = appendSingle(c.Swarm.AddrFilters, defaultServerFilters)
c.Discovery.MDNS.Enabled = false
c.Swarm.DisableNatPortMap = true
return nil
},
},
Expand All @@ -56,6 +57,7 @@ profile, enables discovery in local networks.`,
c.Addresses.NoAnnounce = deleteEntries(c.Addresses.NoAnnounce, defaultServerFilters)
c.Swarm.AddrFilters = deleteEntries(c.Swarm.AddrFilters, defaultServerFilters)
c.Discovery.MDNS.Enabled = true
c.Swarm.DisableNatPortMap = false
return nil
},
},
Expand Down Expand Up @@ -119,6 +121,11 @@ Make sure to backup your data frequently.`,
If you apply this profile after ipfs init, you will need
to convert your datastore to the new configuration.
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 {
Expand Down

0 comments on commit e886e04

Please sign in to comment.