Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soulman-is-good/file-server
Node.js simple file server template
https://github.com/soulman-is-good/file-server
Last synced: 1 day ago
JSON representation
Node.js simple file server template
- Host: GitHub
- URL: https://github.com/soulman-is-good/file-server
- Owner: soulman-is-good
- Created: 2015-02-09T13:55:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-23T05:18:37.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T10:12:08.159Z (about 1 month ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
File server
================Simple file server for storing and serving files.
*WARNING* UNIX based function is used in the code!
You will need imagemagick to be able to after-process uploaded images```bash
git clone git@...
cd file-server
npm install
npm start
```Some environment variables for configuration
```
FSRV_HOST - host:port definition of the host. default is 0.0.0.0:7071
FSRV_MAX_FIELDS - maximum fields on a post request. default is 100
FSRV_MAX_FILES - maximum files sending. default is 100
FSRV_MAX_FILE_SIZE - maximum file size in bytes. default 50Mb
FSRV_FREESPACE_LIMIT - minimum amount of free space left on hdd for upload denial in gigabytes. default is 50Gb
FSRV_UPLOAD_DIR - upload directory absolute path. default is __dirname/uploads
FSRV_SECURITY_KEY - you can set this variable to make access to server only via x-security-key header which must match this variable value
```