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 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted