StaticFileServer is an all-in-one JAR-bundled web server designed to serve assets and large files effortlessly. It uses Flash for the backend and React + TailwindCSS for the frontend, making it lightweight, efficient, and easy to use.
Here's a preview of the web interface:
- 📂 Serve static files from a specified directory with ease
- 🚀 Built-in React frontend for an intuitive user interface
- 🔥 Flash-based backend for high performance
- 🎨 Customizable UI (logo, favicon, and title)
- ⚙️ Lightweight and self-contained (single JAR deployment)
- 🔧 Configurable via
config.yml
- Download the latest release from the Releases tab.
- Run the server with:
java -jar StaticFileServer.jar
- Clone the repository:
git clone https://github.com/Relism/StaticFilesServer.git
cd StaticFilesServer
- Build the frontend bundles:
cd frontend
pnpm run build
cd ..
- Build the backend using Gradle:
./gradlew build
- Run the JAR:
java -jar build/libs/StaticFileServer.jar
When you first run the server, it will generate a config.yml file in the working directory. You can modify it to suit your needs:
serverPort: 8080 # Port on which the server will run
filesDir: "/path/to/your/files" # Directory where the files are stored
logoUrl: "" # URL to the logo image (can point to the server itself)
faviconUrl: "" # URL to the favicon image (can point to the server itself)
title: "Static Files Server" # Title of the website
Make sure that filesDir points to a valid directory with read access.
StaticFileServer is open-source and licensed under the MIT License.