예제 #1
0
파일: frontend.py 프로젝트: tubav/teagle
	def __init__(self, huburl, bind_address = None, port = None, prefix = None, certfile = None, keyfile = None, ca_certs = None, *args, **kw):
		port = port or 8443
		prefix = prefix or "test"
		bind_address = bind_address or "0.0.0.0"
			
		if not certfile:
			certfile = self.datadir / "ptmfrontendcert.pem"
			keyfile = self.datadir / "ptmfrontendkey.pem"
		ca_certs = ca_certs or self.datadir / "cacert.pem"
			
		application = FrontendApplication(huburl = huburl, prefix = prefix)
		SecureThreadingWSGIServer.__init__(self, (bind_address, port), app = application, certfile = certfile, keyfile = keyfile, ca_certs = ca_certs, cert_reqs = CERT_REQUIRED)
예제 #2
0
파일: frontend.py 프로젝트: tubav/teagle
	def get_request(self):
		print("huhuh")
		s = SecureThreadingWSGIServer.get_request(self)
		print("huhuh")
		print s
		print s[0].getpeercert()
		return s