Golang-based simple file server to serve files of the current working directory

fileserve

Build Status Go Reference

Golang-based simple file server to serve static files of the current working directory

  • File sharing in LAN or home network
  • Web application testing
  • Personal web site hosting or demonstrating

Features

  • Directory listing
  • Cors or NoCache headers
  • HTTPS with self-signed certificate
  • BasicAuth
  • Custom HTTP headers

Installing

You can install the pre-compiled binary in several different ways

homebrew tap:

brew tap hupe1980/fileserve
brew install fileserve

snapcraft:

Get it from the Snap Store

sudo snap install fileserve

scoop:

scoop bucket add fileserve https://github.com/hupe1980/fileserve-bucket.git
scoop install fileserve

deb/rpm/apk:

Download the .deb, .rpm or .apk from the releases page and install them with the appropriate tools.

manually:

Download the pre-compiled binaries from the releases page and copy to the desired location.

How to use

fileserve is a tiny go based file server

Usage:
  fileserve [root] [flags]

Examples:
- serve the current working dir: fileserve .
- add basi auth: fileserve . -a user1:pass1	-a user2:pass2
- add custom http headers: fileserve . --header Test=ABC --header Foo=Bar

Flags:
  -a, --auth stringArray        turn on basic auth and set username and password (separate by colon)
  -b, --bind string             bind to a specific interface (default "0.0.0.0")
      --cors                    allow cross origin requests to be served
      --header stringToString   add custom http headers (default [])
  -h, --help                    help for fileserve
  -s, --https                   serve with a temp self-signed certificate via HTTPS
      --no-cache                disable caching for the file server
  -p, --port int                port to serve on (default 8000)
  -v, --version                 version for fileserve

License

MIT

Owner
Frank Hübner
There is no compression algorithm for experience.
Frank Hübner
Similar Resources

An extension for the GitHub Cli application that displays your current contribution graph

An extension for the GitHub Cli application that displays your current contribution graph

gh-graph An extension for the GitHub Cli application that displays your current contribution graph in the terminal (logged out contribution graph) Ins

Sep 29, 2021

archy is an static binary to determine current kernel and machine architecture, with backwards compatible flags to uname, and offers alternative output format of Go runtime (i.e. GOOS, GOARCH).

archy archy is an simple binary to determine current kernel and machine architecture, which wraps uname and alternatively can read from Go runtime std

Mar 18, 2022

Command line tool makeing working with remote files esier.

Command line tool makeing working with remote files esier.

Jul 27, 2022

A few serve, the rest enjoy the free drinks

Tavern A few serve, the rest enjoy the free drinks. ⚠️ Work in progress, experimental As the Tavern client downloads, decrypts and publishes to the wo

Jul 29, 2022

A simple CLI tool that identifies duplicate JARS in a directory. It can remove them also if desired.

Mendix Userlib Cleaner This little utility can be used to identify and clean duplicate JARs. It was created mainly for Mendix apps due to lack of form

Nov 15, 2022

This is a Go Cli app that receives an string path to a log file, and based on it generates and prints in console an encoded polyline with the locations found in the log file.

This is a Go Cli app that receives an string path to a log file, and based on it generates  and prints in console an encoded polyline with the locations found in the log file.

GEOENCODE GO CLI APP DESCRIPTION This is a Go Cli app that receives an string path to a log file, and based on it generates and prints in console an e

Oct 1, 2021

Related is a simple cli utility tool to create files or a group of files.

Related - Create files based on individual definitions or groups Related helps with common file-creation-based tasks. You can predefine single types a

Apr 16, 2022

A wrapper around cd and xdg-open to use aliases to directory paths in terminal

CDD - Change directories Dynamically I am a lazy linux user and turns out that basic tab completion wasn't enough for me to navigate through my direct

Dec 15, 2022

Grab is a tool that downloads source code repositories into a convenient directory layout created from the repo's URL's domain and path

Grab is a tool that downloads source code repositories into a convenient directory layout created from the repo's URL's domain and path. It supports Git, Mercurial (hg), Subversion, and Bazaar repositories.

Jun 2, 2022
Turn .mp3 files in current directory to a podcast feed just one command.

dir2cast Turn .mp3 files in current directory to a podcast feed just one command. Then you can subscribe to it with your favorite podcast client, down

Jun 27, 2022
Watcher - A simple command line app to watch files in a directory for changes and run a command when files change!

Watcher - Develop your programs easily Watcher watches all the files present in the directory it is run from of the directory that is specified while

Mar 27, 2022
A simple single-file executable to pull a git-ssh repository and serve the web app found to a self-contained browser window

go-git-serve A simple single-file executable to pull a git-ssh repository (using go-git library) and serve the web app found to a self-contained brows

Jan 19, 2022
lls is lightweight ls. Using lls, you can get a list of files in a directory that contains a large number of files.

lls lls is lightweight ls. Using lls, you can get a list of files in a directory that contains a large number of files. How? You allocate a buffer for

Dec 29, 2022
Cli app to quicky add gitignore files to your current environment
Cli app to quicky add gitignore files to your current environment

Gitignorer Cli app to quickly add gitignore files to your current environment/projects Usage Make sure golang s installed on your machine. After that

Jul 18, 2022
A go language implementation of a CLI, based on input directory files

A go language implementation of a CLI, based on input directory files, using tree output of all file names, based on input database links, dynamic reading of database table information, based on input swagger files to automate the generation of the RESTFUL API.

Aug 23, 2022
Sync local file/directory to pod volume

Sync local file/directory to pod volume

Mar 19, 2022
Rpfaudio - A small opinionated cli to create Readium Audiobooks from a directory containing mp3 files

rpfaudio A small opinionated cli to create Readium Audiobooks from a directory c

Feb 18, 2022
Go-file-downloader-ftctl - A file downloader cli built using golang. Makes use of cobra for building the cli and go concurrent feature to download files.

ftctl This is a file downloader cli written in Golang which uses the concurrent feature of go to download files. The cli is built using cobra. How to

Jan 2, 2022