Skip to content

flyfy1/fileserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FileServer

A simple file-server in golang, supports password & fake password.

Install

go install github.com/flyfy1/fileserver@latest

Usage

fileserver -h
# Usage of fileserver:
#   -d string
#         the directory of static file to host. Default to current dir (default ".")
#   -fake string
#         if provided, serve a fake webpage instead
#   -p string
#         port to serve on (default "8100")
#   -secret string
#         secret to browse file. If provided, would check this secret cookie

fileserver -secret true-secret -fake false-secret
# 2022/07/04 08:38:35 Serving . on HTTP port: 8100

About

serve static files via golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published