From 6947f610529ac87e6a78370bf03a8d361d8b2b15 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Tue, 4 Jan 2022 18:02:42 +0900 Subject: [PATCH] Created hitomi-dev.html --- .gitignore | 3 ++- hitomi-dev.html | 12 ++++++++++++ hitomi.html | 1 + https-server.py | 11 +++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 hitomi-dev.html create mode 100644 https-server.py diff --git a/.gitignore b/.gitignore index 771fc10d..567cfa19 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ _site .bundle .sass-cache Gemfile.lock -.DS_Store \ No newline at end of file +.DS_Store +*.pem diff --git a/hitomi-dev.html b/hitomi-dev.html new file mode 100644 index 00000000..ba03ee9f --- /dev/null +++ b/hitomi-dev.html @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/hitomi.html b/hitomi.html index d2643b5f..ba03ee9f 100644 --- a/hitomi.html +++ b/hitomi.html @@ -1,3 +1,4 @@ + diff --git a/https-server.py b/https-server.py new file mode 100644 index 00000000..5fa719d8 --- /dev/null +++ b/https-server.py @@ -0,0 +1,11 @@ +from http.server import HTTPServer, BaseHTTPRequestHandler +import ssl + + +httpd = HTTPServer(('localhost', 4443), BaseHTTPRequestHandler) + +httpd.socket = ssl.wrap_socket (httpd.socket, + keyfile="key.pem", + certfile='cert.pem', server_side=True) + +httpd.serve_forever()