Skip to content

Commit

Permalink
altered README
Browse files Browse the repository at this point in the history
  • Loading branch information
pathtofile committed Sep 5, 2019
1 parent 20ca42d commit e71b9ab
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit e71b9ab

Please sign in to comment.