https://github.com/bitofsky/node_directory_server
https://github.com/bitofsky/node_directory_server
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitofsky/node_directory_server
- Owner: bitofsky
- License: mit
- Created: 2020-09-17T08:22:44.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T02:35:14.000Z (over 5 years ago)
- Last Synced: 2025-01-23T19:33:55.991Z (over 1 year ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node_directory_server
This is a file server. compresses specific directory into compressed file and provide download.
# env / default
```env
SERV_DIR=Error (Directory path to compress)
SERV_ADDR=0.0.0.0 (File serving address)
SERV_PORT=1080 (File serving port)
SERV_PATH=/download (URL Path to serve file)
SERV_MD5_PATH=/md5 (URL path to md5 value. empty=off)
SERV_INFO_PATH=/info (URL path to info value. empty=off)
SERV_INFO_VALUE=0.0.1 (info value)
METRICS_PORT=1080 (PrometheusMetrics Port. empty=off)
METRICS_PATH=/metrics (PrometheusMetrics Path)
NODE_DEBUG=ERROR,WARN (Activate Nodejs debugger)
```
# Local development environment
```
> npm i
> code .
[press F5 to run debugger] or
> npm run debug
```
# BUILD tsc
> npm run build
# BUILD docker
> docker build .