allow limiting servers with a white list
[punjab-krb5-preauth] / punjab.tac
1 # punjab tac file
2 from twisted.web import server, resource, static
3 from twisted.application import service, internet
4
5 from punjab.httpb  import Httpb, HttpbService
6
7 root = static.File("./html")
8
9
10 #b = resource.IResource(HttpbService(1, use_raw=True))
11 b = resource.IResource(HttpbService(1))
12 root.putChild('http-bind', b)
13
14
15 site  = server.Site(root)
16
17 application = service.Application("punjab")
18 internet.TCPServer(5280, site).setServiceParent(application)
19