HTTP/2 proxy for simple production-ready deployments of Rails applications
open sourceMITself-hostablefree
Thruster is a small HTTP/2 proxy, written in Go and installed as a Ruby gem, that runs in front of Puma to make a Rails app ready for the open internet. Prefixing the server command with thrust adds HTTP/2, automatic TLS certificates from Let's Encrypt (set TLS_DOMAIN), caching of public assets, compression and X-Sendfile, with no configuration file; it also manages the Puma process, so it can be a container's only command. 37signals built it for ONCE, and new Rails apps' Dockerfiles use it.
Problems it solves
- serve a Rails app directly on the internet from one container without setting up nginx
- add HTTP/2 and automatic HTTPS certificates in front of Puma
- compress responses and cache static assets in front of my Rails server
- serve file downloads efficiently with X-Sendfile without a separate web server
- run the web server and its proxy in a container that has no process manager
Features
- HTTP/2
- automatic TLS with Let's Encrypt
- HTTP caching of public assets
- compression
- X-Sendfile support
- wraps and manages the Puma process
- no configuration file; environment variables for options
- prebuilt platform binaries in the gem
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Thruster does.
- nginx HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server
- Caddy The Ultimate Server with Automatic HTTPS
- Apache HTTP Server A secure, efficient and extensible open source web server
- SWAG Secure Web Application Gateway: Nginx with Certbot and fail2ban in one container
- Nginx Proxy Manager Expose your services easily and securely
