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 | |
|---|---|
| miniserve | CLI tool to serve files and dirs over HTTP |
| serve | Static file serving and directory listing |
| binserve | Fast production-ready static web server |
| Superstatic | Enhanced static web server |
| darkhttpd | A simple web server written in C; only serves static content |
| simple-http-server | Simple static file server written in Rust |
| Static Web Server | High-performance and asynchronous web server |
| webfs | Simple http server for mostly static content. |
| quark | Small and simple HTTP GET/HEAD-only web server for static content |
| Websitino | Lightweight static file server for local development |
| static-file-server | Tiny, simple static file server |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.