webapi: serve the /static URL tree from /public_html (configurable)

This commit is contained in:
Brian Warner
2008-10-29 15:34:31 -07:00
parent a9101112a4
commit d3f2df00be
5 changed files with 51 additions and 7 deletions

View File

@ -254,7 +254,9 @@ class Client(node.Node, pollmixin.PollMixin):
from allmydata.webish import WebishServer
nodeurl_path = os.path.join(self.basedir, "node.url")
ws = WebishServer(webport, nodeurl_path)
staticdir = self.get_config("node", "web.static", "public_html")
staticdir = os.path.expanduser(staticdir)
ws = WebishServer(webport, nodeurl_path, staticdir)
self.add_service(ws)
def init_ftp_server(self):