Description
Go HTTP File Server is a command-line program that shares a folder from your computer over HTTP. It is a single executable with no third-party dependencies, written in Go, and the README says it is stateless and built as a monolith. Its directory pages are friendlier than the default index pages of Apache or Nginx, and they adapt to mobile screens. If enabled, you can download a whole directory as an archive, upload files into the current directory, and use a custom theme for pages. You can also mount another directory at a URL path, which lets one server share several locations. The README's examples show how to set the port, choose the root directory, serve HTTPS with a certificate and key, hide dot-files, log access to the console and protect paths with HTTP Basic authentication. Upload permissions can be granted to specific users on specific folders while others get read-only access. Virtual hosts with their own ports, certificates and root directories are also covered. The program needs Go 1.18 or later and can be installed into Go's bin directory or built locally. The source is public on GitHub.…
Highlights
- Single executable with zero third-party dependencies
- Friendly, mobile-ready directory pages
- Download folders as archives and upload files
- HTTPS, HTTP Basic auth and per-user upload rights
- Mount other directories and run virtual hosts
Ratings & Reviews
No ratings yet
Be the first to rate Go Http File Server.
People also visit
Goploader
Easy file sharing with server-side encryption, curl/httpie/wget compliant
Go Http File Server FAQ
What is Go HTTP File Server?
A command-line HTTP server that shares a local folder, written in Go and distributed as a single executable.
How do I install it?
Install it into Go's bin directory with the Go toolchain, or build it locally. The README requires Go 1.18 or later.
Can it serve over HTTPS?
Yes. The README has an example that starts the server on HTTPS with a certificate and key.
Can people upload files?
Yes, if you enable it. You can grant upload rights to specific users on specific folders, and other visitors stay read-only.
Does it need a database or other services?
No. The README says it has zero third-party dependencies and a stateless design.
What are the best Go Http File Server alternatives?
Popular alternatives to Go Http File Server include miniserve, goploader and Dufs. See all Go Http File Server alternatives