Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thedevminertv/gostatic

Probably the fastest (and simplest) way to serve static files.
https://github.com/thedevminertv/gostatic

fiber go http static

Last synced: 19 days ago
JSON representation

Probably the fastest (and simplest) way to serve static files.

Awesome Lists containing this project

README

        

# GoStatic

Probably the fastest (and simplest) way to serve static files.

```bash
docker run --rm -p 8080:80 -v $PWD:/static:ro ghcr.io/thedevminertv/gostatic
```

Additionally, you can add the following flags:

```bash
-cache # Enable caching
-compress-level # Enable compression (-1=remove module, 0=none, 2=best)
-log-requests # Log requests (this will slow down the server by ~40%)
-index # The file to serve when the path ends in `/` (default=index.html)
-spa # Make all 404 pages the index file, useful for SPA apps that use client side routing
-download # Enable downloading files
```

You can just add these to the end of the `docker run` command.