static-file-server is a tiny, simple static file server that uses environment variables or a YAML file for configuration. It can be deployed as a standalone binary or run in a Docker container.
The software offers configurable directory listings, index file serving, TLS support, URL path prefixes, referrer filtering, and key-based access control.
This is free and open source software.
Key Features
- Serve static files from a configurable folder.
- Configure the server using environment variables or a YAML file.
- Automatically serve index.html files.
- Display directory file listings.
- Configure the host and listening port.
- Set a URL path prefix for served content.
- Enable Cross-Origin Resource Sharing (CORS).
- Serve files over HTTPS with configurable TLS certificates and keys.
- Configure the minimum TLS version.
- Restrict access based on HTTP referrers.
- Use key or code parameters for access control.
- Enable debug output for troubleshooting.
- Deploy as a standalone binary or Docker container.
Website: github.com/halverneus/static-file-server
Support:
Developer: Jeromy Streets
License: MIT License
static-file-server is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| Static Web Servers | |
|---|---|
| binserve | Fast production-ready static web server |
| darkhttpd | A simple web server written in C; only serves static content |
| miniserve | CLI tool to serve files and dirs over HTTP |
| quark | Small and simple HTTP GET/HEAD-only web server for static content |
| serve | Static file serving and directory listing |
| Static Web Server | High-performance and asynchronous web server |
| webfs | Simple http server for mostly static content. |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

