on cb4ec11 help sign in
bridge/bridge-https.py
8 lines 321 B history raw
1import BaseHTTPServer, SimpleHTTPServer
2import os
3import ssl
5httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
6httpd.socket = ssl.wrap_socket (httpd.socket, certfile='localhost.pem', keyfile='localhost-key.pem', server_side=True)
7os.chdir('./build')
8httpd.serve_forever()