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

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted