We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0033846 commit 237b490Copy full SHA for 237b490
code/nodejs/servers/file-server/api.md
@@ -2,6 +2,35 @@
2
## API
3
4
5
+## command line arguments
6
+
7
8
+it supports the following command line arguments
9
10
+|arg | description | example |
11
+|----------|---------------------------------|----------------|
12
+|-p, -port | specify port | -p 3001 |
13
+| | | |
14
+|-auth | specify authorisation header | -auth p455w0rd |
15
16
+| -d, -dir | specify the source directory | -d /work/tmp |
17
18
19
20
+```
21
22
+node file-server -p 3001 -auth my-password -d /work/tmp
23
24
25
26
27
+the auth parameter is the way of securing the server, it specifies the value of a HTTP header 'auth' that must be included with the request
28
29
30
31
32
33
34
35
### mkfile
36
0 commit comments