Staticserve

screenshot of Staticserve

Static file server with ability to upload content and define dynamic routes

Overview

The staticserve is a simple and fast asynchronous HTTP(S) server designed for hosting static websites (JAMSTACK) under Kubernetes. It offers an API endpoint for uploading or updating website content using an archive file. The server can also be protected by a JWT token for added security. It supports CI/CD pipelines and allows for the execution of post-upload commands for further setup or cleanup. Additionally, it supports ETag and Last-Modified headers, caching policies, transparent compression, and serving specific static files for SPA applications.

Features

  • Static Website Hosting: Host static websites (JAMSTACK) under Kubernetes.
  • Content Upload: Support for uploading/updating website content using an archive file.
  • JWT Token Protection: Optional JWT token protection for the upload API endpoint.
  • Post-Upload Hooks: Execute commands after successfully updating content for additional setup or cleanup.
  • ETag and Last-Modified Headers: Support for ETag and Last-Modified headers to avoid cache errors on static files.
  • Caching Policies: Cache-Control header policies based on path prefixes and suffixes.
  • Transparent Compression: Enable transparent compression for improved performance.
  • SPA Application Support: Serve specific static files for Single Page Application (SPA) based on route expressions.

Summary

The staticserve is a lightweight and efficient HTTP(S) server designed specifically for hosting static websites under Kubernetes. It offers various features such as content upload, JWT token protection, caching policies, and support for SPA applications. With its easy installation process and powerful configuration options, staticserve is an excellent choice for hosting static websites in a fast and secure manner.