go-doxy
Self-HostedLightweight, fast static web server written in Go
Overview
go-doxy is a high-performance, minimalistic web server built in Go, optimized for serving static content with low resource usage. It supports gzip compression, directory listing, custom error pages, and CORS configuration. Deployed as a single binary (no external dependencies), it works across Linux, macOS, and Windows. Configure via CLI flags or YAML to set root directories, port numbers, and compression levels. Ideal for self-hosting static sites, documentation portals, or small projects without the overhead of heavier servers like Nginx.
Self-Hosting Resources
Below is a reference structure for docker-compose.yml.
⚠️ Do NOT run blindly. Replace placeholders with official values.
version: '3'
services:
go_doxy:
image: <OFFICIAL_IMAGE_NAME>:latest
container_name: go-doxy
ports:
- "8080:<APP_INTERNAL_PORT>"
volumes:
- ./data:/app/data
restart: unless-stopped Key Features
- Single binary deployment (no dependencies)
- Fast static content serving with gzip compression
- Customizable (directory listing, error pages, CORS support)
Frequently Asked Questions
? Is go-doxy hard to install?
No—go-doxy is distributed as a single binary with no dependencies. Download the appropriate binary for your OS from the GitHub repository, make it executable, and run it with flags to specify your static content directory and port.
? Can go-doxy handle dynamic content like PHP or Python?
No—go-doxy is designed exclusively for serving static files (HTML, CSS, JS, images, etc.). For dynamic content, you’ll need to use a dedicated backend server or a full-featured web server like Apache or Nginx.
? Is go-doxy completely free and open source?
Yes—go-doxy is licensed under the MIT License, which means it’s free to use, modify, and distribute for both personal and commercial purposes without any cost.
Top Alternatives
People Also Ask about go-doxy
Tool Info
Pros
- ⊕ Minimal resource footprint (great for low-spec servers)
- ⊕ Zero dependencies for hassle-free deployment
Cons
- ⊖ Limited to static content (no dynamic processing)
- ⊖ Less feature-rich than full-featured servers like Nginx