From e71b9ab901170dccf66df1cf3be8d6c35e771d3f Mon Sep 17 00:00:00 2001 From: pathtofile Date: Thu, 5 Sep 2019 22:17:11 +1000 Subject: [PATCH] altered README --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8c63f76..289b3d1 100644 --- a/README.md +++ b/README.md @@ -17,29 +17,31 @@ tempeory one for you. ## Examples Serve the current folder over TLS on the default port: -``` +```bash https.server +# OR +python -m https.server ``` Serve a specific folder of TLS -``` +```bash https.server --directory foo ``` Serve the current folder on 443 **Note:** Usually requires root/administrator privliges -``` +```bash https.server 443 ``` Serve the current folder on localhost only -``` +```bash https.server --bind 127.0.0.1 ``` Serve folder over TLS, using an existing certificate **Note:** Certificate must be DER encoded, and have both the cert and private key in the same file -``` +```bash https.server --existing-cert mycert.der ```