File tree Expand file tree Collapse file tree 3 files changed +40
-4
lines changed Expand file tree Collapse file tree 3 files changed +40
-4
lines changed Original file line number Diff line number Diff line change 32
32
if [[ $GITHUB_REF == refs/tags/* ]]; then
33
33
VERSION=${GITHUB_REF#refs/tags/v}
34
34
fi
35
- TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF} "
35
+ TAGS="${DOCKER_IMAGE}:${VERSION}"
36
36
37
37
# If the VERSION looks like a version number, assume that
38
38
# this is the most recent version of the image and also
Original file line number Diff line number Diff line change
1
+ # Contributing
2
+
3
+ ## Technological stack
4
+
5
+ The project uses the Nodejs runtime environment but aims to use minimal
6
+ dependencies in order to create small bundle sizes.
7
+
8
+ ## Git methodology
9
+
10
+ This project uses ` main ` as development branch. New features are committed
11
+ through feature branches and merged into main through pull requests.
12
+
13
+ ## Release management
14
+
15
+ This project uses [ semver] ( https://semver.org/ ) , handled by the NPM package
16
+ [ standard-version] ( https://www.npmjs.com/package/standard-version ) . For creating
17
+ a new release, run the following commands:
18
+
19
+ ``` sh
20
+ npm run release
21
+ git push --follow-tags origin main
22
+ ```
Original file line number Diff line number Diff line change 3
3
_ This software has not been tested in regards of security and should not be used
4
4
in a production environment_
5
5
6
- ** file-server- domain** is a simplistic Nodejs file server supporting multiple
7
- domains. It is mainly intended to run an internal network with its own DNS
8
- server.
6
+ ** file-domain-server ** is a simplistic Nodejs HTTP file server that serve
7
+ different folders depending on the HTTP ` Host ` header. It is mainly intended to
8
+ run an internal network with its own DNS server.
9
9
10
10
## Configuration
11
11
@@ -29,6 +29,15 @@ build/mycat.com/index.html
29
29
build/mycat.com/script.js
30
30
```
31
31
32
+ ### Environmental variables
33
+
34
+ The following can be configured as environment variables:
35
+
36
+ - ** DEFAULT_INDEX_FILE** name of file served on paths ending with a trailing
37
+ slash (default ` index.html ` ).
38
+ - ** PORT** the port the server should listen on (default 8080).
39
+ - ** ROOT_FILE_PATH** root directory of served file tree (default ` build ` ).
40
+
32
41
## Docker
33
42
34
43
The server can be run through Docker
@@ -41,3 +50,8 @@ docker run \
41
50
--volume ${PWD} /build/:/app/build/ \
42
51
johanbook/file-domain-server:latest
43
52
```
53
+
54
+ ## Contributing
55
+
56
+ For contributions and development procedures, see the
57
+ [ contributions file] ( ./CONTRIBUTING.md ) .
You can’t perform that action at this time.
0 commit comments