expand the ports documentation
i took @jbenet's suggestion, but reorganised it a bit to *not* suggest what is actually warned against later. :)
anarcat committed
Mar 7, 2015 at 08:42 UTC
5cdd8b5d61d4acc5bbcc56a2e9aaf98ca5fabeee
1 file changed
+14
-1
cmd/ipfs/daemon.go
+14
-1
@@ -45,7 +45,20 @@ For example, to change the 'Gateway' port:
45
46
ipfs config Addresses.Gateway /ip4/127.0.0.1/tcp/8082
47
48
-Make sure to restart the daemon after.`,
48
+The API address can be changed the same way:
49
+
50
+ ipfs config Addresses.API /ip4/127.0.0.1/tcp/5002
51
+
52
+Make sure to restart the daemon after changing addresses.
53
+
54
+By default, the gateway is only accessible locally. To expose it to other computers
55
+in the network, use 0.0.0.0 as the ip address:
56
+
57
+ ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
58
+
59
+Be careful if you expose the API. It is a security risk, as anyone could use control
60
+your node remotely. If you need to control the node remotely, make sure to protect
61
+the port as you would other services or database (firewall, authenticated proxy, etc).`,
62
},
63
64
Options: []cmds.Option{