mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
3cc30a0776
Pass maintainership to submitter PR: ports/152497 Submitted by: ports@c0decafe.net Approved by: itetcu (implicit)
15 lines
451 B
Python
15 lines
451 B
Python
from twisted.web import server, resource, static
|
|
from twisted.application import service, internet
|
|
|
|
from punjab.httpb import Httpb, HttpbService
|
|
|
|
root = static.File("%%WWWDIR%%") # a static html directory
|
|
|
|
b = resource.IResource(HttpbService(1)) # 1 means turn on verbose mode.
|
|
root.putChild('bosh', b) # url for BOSH
|
|
|
|
site = server.Site(root)
|
|
|
|
application = service.Application("punjab")
|
|
internet.TCPServer(5280, site).setServiceParent(application)
|