Web Design

static-file-server – tiny, simple static file server

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
binserveFast production-ready static web server
darkhttpdA simple web server written in C; only serves static content
miniserveCLI tool to serve files and dirs over HTTP
quarkSmall and simple HTTP GET/HEAD-only web server for static content
serveStatic file serving and directory listing
Static Web ServerHigh-performance and asynchronous web server
webfsSimple http server for mostly static content.

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted