Self-host imgproxy on a VPS
A fast image processing server that resizes, crops and converts images on the fly from signed URLs. Apache-2.0 licensed. A signing key and salt are generated for you, so only URLs signed with them are served.
levelrail-cli templates deploy imgproxy --name my-imgproxySpecification
- Status
- Listed
- Category
- Infrastructure
- Services
- imgproxy
- Ports
- 8080
- Volumes
- 0
- Memory
- about 256 MiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
- License
- Permissive license, Apache-2.0
- Listing
- Community template
About imgproxy
A fast image processing server that resizes, crops and converts images on the fly from signed URLs. Apache-2.0 licensed. A signing key and salt are generated for you, so only URLs signed with them are served.
What it deploys
imgproxy runs as one service in a single Compose app, listening on port 8080.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| imgproxy | ghcr.io/imgproxy/imgproxy | v4.0.20 | 8080 | none |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
Settings and environment
You do not have to fill in anything. 2 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| imgproxy | IMGPROXY_BIND | Preset by the template |
| imgproxy | IMGPROXY_ENABLE_DEBUG_HEADERS | Preset by the template |
| imgproxy | IMGPROXY_KEY | Generated at deploy |
| imgproxy | IMGPROXY_SALT | Generated at deploy |
| imgproxy | IMGPROXY_USE_ETAG | Preset by the template |
Install imgproxy on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get imgproxy -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy imgproxy --name my-imgproxy
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then imgproxy.
Docs and upstream
More in Infrastructure
- HeadscaleSelf-hosted Tailscale control server, configured entirely through environment variables. Embedded DERP and STUN are off (the platform has no UDP), so clients relay through the public Tailscale DERP map over HTTPS. Create users and pre-auth keys with the CLI in the container (headscale users create, headscale preauthkeys create).
- HAProxyHigh-performance TCP and HTTP load balancer on the official image. The install form carries haproxy.cfg as an editable file, so it starts with a working config instead of exiting on a missing one.
- Kong GatewayAn API gateway in database-less mode on the open source image. Load routes with the admin API at kong:8001 from inside this project. With no routes the proxy answers 404, which is the healthy state.
- KrakenDStateless high performance API gateway on the official image. The install form carries krakend.json as an editable file, so it starts with a working route table instead of exiting on a missing config.
- etcdA distributed key-value store for configuration and coordination, running as a single member.
- Envoy ProxyCloud native edge and service proxy on the official image. The install form carries envoy.yaml as an editable file, so it starts with a working listener instead of exiting on a missing config.