Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dw5 authored May 9, 2024
1 parent efee30e commit dfee4f5
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Simpler HTTP Server

# How it looks like?

### Screenshot
<img src="./screenshot.png" width="80%" height="80%">

### Command Line Arguments
```
Simpler HTTP(s) Server 0.6.3
Simpler HTTP(s) Server 0.6.9x
USAGE:
simpler-http-server [FLAGS] [OPTIONS] [--] [root]
Expand All @@ -19,28 +21,30 @@ FLAGS:
--nocache Disable http cache
--norange Disable header::Range support (partial request)
--nosort Disable directory entries sort (by: name, modified, size)
-o, --open Open the page in the default browser
-s, --silent Disable all outputs
-u, --upload Enable upload files (multiple select) (CSRF token required)
-u, --upload Enable upload files. (multiple select)
-V, --version Prints version information
OPTIONS:
-a, --auth <auth> HTTP Basic Auth (username:password)
--cert <cert> TLS/SSL certificate (pkcs#12 format)
--certpass <certpass> TLS/SSL certificate password
-c, --compress <compress>...
Enable file compression: gzip/deflate
Example: -c=js,d.ts
Note: disabled on partial request!
--ip <ip> IP address to bind [default: 0.0.0.0]
-p, --port <port> Port number [default: 8000]
--redirect <redirect> takes a URL to redirect to using HTTP 301 Moved Permanently
-t, --threads <threads> How many worker threads [default: 3]
--try-file <PATH>
serve this file (server root relative) in place of missing files (useful for single page apps) [aliases:
try-file-404]
-l, --upload-size-limit <upload_size_limit> Upload file size limit [bytes] [default: 8000000]
-a, --auth <auth> HTTP Basic Auth (username:password)
-b, --base-url <base-url> Base URL to prepend in directory indexes. For reverse proxying. This prefix is
supposed to be pre-stripped when reaching simple-http-server. [default: /]
--cert <cert> TLS/SSL certificate (pkcs#12 format)
--certpass <certpass> TLS/SSL certificate password
-c, --compress <compress>... Enable file compression: gzip/deflate
Example: -c=js,d.ts
Note: disabled on partial request!
--ip <ip> IP address to bind [default: 0.0.0.0]
-p, --port <port> Port number [default: 8000]
--redirect <redirect> takes a URL to redirect to using HTTP 301 Moved Permanently
-t, --threads <threads> How many worker threads [default: 3]
--try-file <PATH> serve this file (server root relative) in place of missing files (useful for single
page apps) [aliases: try-file-404]
-l, --upload-size-limit <NUM> Upload file size limit [bytes] [default: 8000000]
ARGS:
<root> Root directory
```

# Installation
Expand Down

0 comments on commit dfee4f5

Please sign in to comment.