You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,12 +40,15 @@ Utility command to start up a basic HTTP server
40
40
Usage: ferron serve [OPTIONS]
41
41
42
42
Options:
43
-
-l, --listen-ip <LISTEN_IP> The listening IP to use [default: 127.0.0.1]
44
-
-p, --port <PORT> The port to use [default: 3000]
45
-
-r, --root <ROOT> The root directory to serve [default: .]
46
-
--log <LOG> Where to output logs [default: stdout] [possible values: stdout, stderr, off]
47
-
--error-log <ERROR_LOG> Where to output error logs [default: stderr] [possible values: stdout, stderr, off]
48
-
-h, --help Print help
43
+
-l, --listen-ip <LISTEN_IP> The listening IP to use [default: 127.0.0.1]
44
+
-p, --port <PORT> The port to use [default: 3000]
45
+
-r, --root <ROOT> The root directory to serve [default: .]
46
+
-c, --credential <CREDENTIAL> Basic authentication credentials for authorized users. The credential value must be in the form "${user}:${hashed_password}" where the "${hashed_password}" is from the ferron-passwd program or from any program using the password-auth generate_hash() macro (see https://docs.rs/password-auth/latest/password_auth/fn.generate_hash.html)
47
+
--disable-brute-protection Whether to disable brute-force password protection
48
+
--forward-proxy Whether to start the server as a forward proxy
49
+
--log <LOG> Where to output logs [default: stdout] [possible values: stdout, stderr, off]
50
+
--error-log <ERROR_LOG> Where to output error logs [default: stderr] [possible values: stdout, stderr, off]
0 commit comments