From ed211e857416c7006b31236994fc03cebc23f123 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 2 Dec 2008 19:06:12 -0700 Subject: [PATCH] docs/webapi.txt: update to discuss tahoe.cfg, not BASEDIR/webport --- docs/frontends/webapi.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/frontends/webapi.txt b/docs/frontends/webapi.txt index 5080b836..4ab09aed 100644 --- a/docs/frontends/webapi.txt +++ b/docs/frontends/webapi.txt @@ -14,9 +14,10 @@ == Enabling the web-API port == Every Tahoe node is capable of running a built-in HTTP server. To enable -this, just write a port number into a file named "webport" in the node's base -directory. For example, writing "3456" into $NODEDIR/webport will cause the -node to run a webserver on port 3456. +this, just write a port number into the "[node]web.port" line of your node's +tahoe.cfg file. For example, writing "web.port = 3456" into the "[node]" +section of $NODEDIR/tahoe.cfg will cause the node to run a webserver on port +3456. This string is actually a Twisted "strports" specification, meaning you can get more control over the interface to which the server binds by supplying @@ -24,7 +25,7 @@ additional arguments. For more details, see the documentation on twisted.application.strports: http://twistedmatrix.com/documents/current/api/twisted.application.strports.html -Writing "tcp:3456:interface=127.0.0.1" into $NODEDIR/webport does the same +Writing "tcp:3456:interface=127.0.0.1" into the web.port line does the same but binds to the loopback interface, ensuring that only the programs on the local host can connect. Using "ssl:3456:privateKey=mykey.pem:certKey=cert.pem" runs an SSL server. -- 2.45.2