Sign inSign up

kineviz/files-upload-server

By kineviz

•Updated over 2 years ago

a command-line file server

Image
0

1.5K

kineviz/files-upload-server repository overview

⁠file-server: a command-line file server

refer https://github.com/nodeapps/file-server⁠

⁠Installing globally:

Installation via npm:

npm install files-upload-server -g

or

yarn global add files-upload-server

This will install file-server globally so that it may be run from the command line.

⁠Usage:
files-upload-server [path] [options]

or

file-server [path] [options]

[path] defaults to ./upload if the folder exists, and ./ otherwise.

Now you can visit http://localhost:8008⁠ to view your server

⁠Available Options:

-p or --port Port to use (defaults to 8008)

-a Address to use (defaults to 0.0.0.0)

-s or --silent Suppress log messages from output

-S or --ssl Enable https.

-C or --cert Path to ssl cert file (default: cert.pem).

-K or --key Path to ssl key file (default: key.pem).

-h or --help Print this list and exit.

⁠Paths

⁠Docker

docker pull kineviz/files-upload-server

docker stop fileServer 
docker rm fileServer

docker run -d -it --name fileServer --restart always  \
-v ${HOME}/projects/fileServer:/data:rw \
-p 8008:8008 \
kineviz/files-upload-server

Please add the EVN when you use ngnix-proxy docker image
-e VIRTUAL_HOST=fileServer.4api.xyz \
-e VIRTUAL_PORT=8008
-e "LETSENCRYPT_HOST=fileServer.4api.xyz"
-e "LETSENCRYPT_EMAIL=[email protected]⁠" \

⁠Development

###Install dependencies

 yarn 
⁠Run as develop Server
yarn dev
⁠Test command
yarn command-test
⁠publish to npmjs.org
yarn release

Tag summary

Content type

Image

Digest

sha256:b418fa982…

Size

33.1 MB

Last updated

over 2 years ago

docker pull kineviz/files-upload-server