Browse Source

add option for python server

master^2^2
Leland Krych 2 years ago
parent
commit
8c7e622f1d
  1. 11
      server.py

11
server.py

@ -0,0 +1,11 @@
import http.server, ssl
server_address = ('localhost', 4443)
httpd = http.server.HTTPServer(server_address, http.server.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket(httpd.socket,
server_side=True,
certfile='cert.pem',
keyfile='nopasskey.pem',
ssl_version=ssl.PROTOCOL_TLS)
print("serving demo on port 4443")
httpd.serve_forever()
Loading…
Cancel
Save