Skip to content

A simple tool written in golang to share files over the internet

License

Notifications You must be signed in to change notification settings

Top-Ranger/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serve

A simple program to share single files over the network. Inspired by pshs

Usage

Assume you want to share 'dir/file' and 'dir/file2'. Just use these files as command-line arguments:

serve dir/file dir/file2

You will get an output similar to:

2017/12/28 23:25:37 Adding dir%2Ffile
2017/12/28 23:25:37 Adding dir%2Ffile2
2017/12/28 23:25:37 Server reachable at http://localhost:8080/
2017/12/28 23:25:37 Server publicly reachable at http://XXX.XXX.XXX.XXX:8080/

Your files are now accessible at http://XXX.XXX.XXX.XXX:8080/dir%2Ffile and http://XXX.XXX.XXX.XXX:8080/dir%2Ffile2

For more options like switching ports use

serve --help

File list

On default a list of files is shown on '/', e.g. 'http://XXX.XXX.XXX.XXX:8080/'. To disable this use

serve -filelist=false

License

APACHE-2.0. See LICENSE

About

A simple tool written in golang to share files over the internet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages