static-content

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

README

static-content

Tiny Docker image to serve static content over HTTP.

Sometimes you just need to serve static content (HTML, Javascript, etc) over HTTP, and apache2-base and even Caddy are a bit too much for the task at hand. You can use this Docker image, which is just a tiny Go HTTP server that does enough HTTP to be useful (etag/range support, autoindexing, etc).

The full list of functionality is short:

  • supports If-Modified-Since and If-Match request headers
  • supports partial requests with the Range header
  • it will automatically render HTML index pages for directories

You can set additional HTTP headers to be set on all responses (useful for CORS, etc) with the --header command-line option.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL