File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ The software is shipped in Docker images.
12
12
## Security
13
13
14
14
The software is intended to be run on
15
- [ Nodejs 16.18.0 LTS] ( https://nodejs.org/en/ ) and all released versions have 0
16
- vulnerabilities in NPM audits. This check is carried out as part of the release
17
- procedure.
18
-
19
- The software relies on the
15
+ [ Nodejs 16.18.0 LTS] ( https://nodejs.org/en/ ) . The software relies on the
20
16
[ Nodejs HTTP module] ( https://nodejs.org/api/http.html ) and will be vulnerable to
21
17
any vulnerabilities in that module.
22
18
19
+ All released versions have 0 vulnerabilities in NPM audits. This check is
20
+ carried out as part of the release process. The repository is also scanned
21
+ weekly with [ Snyk] ( snyk.io ) for vulnerabilities.
22
+
23
23
The software has been tested for
24
24
[ LFI] ( https://www.johanbook.com/docs/security/vulnerabilities/lfi )
25
25
vulnerabilities.
Original file line number Diff line number Diff line change 1
1
# file-domain-server
2
2
3
+ ![ version] ( https://img.shields.io/github/v/tag/johanbook/file-domain-server )
4
+ ![ docker pulls] ( https://img.shields.io/docker/pulls/johanbook/file-domain-server )
5
+ ![ vulnerabilities] ( https://img.shields.io/snyk/vulnerabilities/github/johanbook/file-domain-server )
6
+
3
7
** file-domain-server** is a simplistic Nodejs HTTP file server that serves
4
8
different folders depending on the HTTP ` Host ` header. It is mainly intended to
5
9
run on an internal network with its own DNS server.
6
10
11
+ The project aims to be minimal production dependency.
12
+
7
13
## Get started
8
14
9
15
The server can be run either via a Nodejs runtime or through Docker.
@@ -30,6 +36,15 @@ build/mycat.com/index.html
30
36
build/mycat.com/script.js
31
37
```
32
38
39
+ ### Using Nodejs
40
+
41
+ Install and run the server using
42
+
43
+ ``` sh
44
+ npm ci --production
45
+ ROOT_FILE_PATH=/path/to/folder node src
46
+ ```
47
+
33
48
### Using Docker
34
49
35
50
The server can be run through Docker by mounting in the served directory as a
You can’t perform that action at this time.
0 commit comments