Skip to content
/ gohfs Public
forked from finzzz/gohfs

Feature-rich HTTP File Server

Notifications You must be signed in to change notification settings

sboy2000/gohfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoHFS

Feature-rich HTTP File Server

Features and roadmap

  • UI
    • Show QR Link
    • SHA1 checksum
    • Command line cheatsheet (curl, wget, PS)
    • Relative timestamp
    • Hot reload
    • Regex filtering
  • Functionality
    • Web shell
    • Global search using fzf
  • Upload
    • Single file upload
    • Limit upload size
    • Multi file upload
    • Folder upload
  • Download
    • as ZIP
    • as Base64
    • Multi file download
  • Security
    • HTTPS
    • Basic Auth
      • Can store as hashed password
    • Regex listing
  • Options
    • Disable directory listing
    • Disable upload
    • Disable zip
    • Specify temporary zip folder
  • Others

Getting started

# running in current directory
./gohfs

# specifying parameters
./gohfs -host 127.0.0.1 -port 8081 -dir /tmp 

# https
./gohfs -tls -cert selfsigned.cert -key selfsigned.key

# disable directory listing
./gohfs -dl

# authentication
./gohfs -user gopher -pass gopher # raw password
./gohfs -user gopher -hpass 9cc1ee455a3363ffc504f40006f70d0c8276648a5d3eb3f9524e94d1b7a83aef # sha256 hashed

# getting help
./gohfs -h

Full Usage

$ ./gohfs -h
Usage of ./gohfs:
  -cert string
        Public certificate
  -dir string
        Directory to serve (default ".")
  -dl
        Disable listing
  -du
        Disable upload
  -dz
        Disable zip
  -host string
        Host (default "0.0.0.0")
  -hpass string
        Hashed password (sha-256)
  -key string
        Private certificate
  -maxup int
        Maximum upload size in Bytes (default -1)
  -pass string
        Password
  -port string
        Port (default "8080")
  -sha1path string
        SHA1 API (default "/gohfs-sha1")
  -tls
        Enable HTTPS
  -user string
        Username (default "admin")
  -webpath string
        UI API (default "/gohfs-web")
  -zippath string
        Zip API (default "/gohfs-zip")
  -ziptemp string
        Temporary zip folder (default ".")

Contribution

Like this project? Want to contribute? Awesome! Feel free to open some pull requests or just open an issue.

Changelog

Detailed changes for each release are documented in the release notes.

About

Feature-rich HTTP File Server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 42.6%
  • HTML 21.2%
  • JavaScript 17.7%
  • CSS 11.7%
  • Dockerfile 5.2%
  • Makefile 1.6%