Installation
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
There are multiple ways you can install PreviewProxy:
Option 1: Install Script (easiest)
Section titled “Option 1: Install Script (easiest)”The quickest way to install PreviewProxy on Linux or macOS:
curl -s -o- https://raw.githubusercontent.com/ViGrise/previewproxy/main/install.sh | sudo bashOr with wget:
wget -qO- https://raw.githubusercontent.com/ViGrise/previewproxy/main/install.sh | sudo bashWindows (PowerShell):
irm https://raw.githubusercontent.com/ViGrise/previewproxy/main/install.ps1 | iexOnce installed, start the server:
previewproxyThat’s it - open http://localhost:8080/health to confirm it’s running.
Option 2: Docker
Section titled “Option 2: Docker”PreviewProxy can (and this is highly recommended) be used as a standalone application inside a Docker container. Just pull the official image from GitHub Container Registry:
docker pull ghcr.io/vigrise/previewproxy:latestdocker run -p 8080:8080 -it ghcr.io/vigrise/previewproxy:latestSee Docker for a full example with Docker Compose.
Option 3: Pre-built Binary
Section titled “Option 3: Pre-built Binary”Download and run a binary directly - no package manager or build tools needed.
curl -Lo previewproxy https://github.com/ViGrise/previewproxy/releases/latest/download/previewproxy-linux-x86_64chmod +x previewproxy./previewproxySee Install from Binary for all platforms and optional system-wide install.
Option 4: Build from Source
Section titled “Option 4: Build from Source”Requires Rust (stable toolchain).
git clone https://github.com/ViGrise/previewproxy.gitcd previewproxycargo build --release./target/release/previewproxySee Build from Source for full prerequisites.
System Requirements
Section titled “System Requirements”| Requirement | Notes |
|---|---|
| OS | Linux, macOS, Windows |
| RAM | 64 MB minimum; 256 MB+ recommended |
| ffmpeg | Optional - required for video thumbnails |
| libheif | Optional - required for HEIC input support |
Next Steps
Section titled “Next Steps”- Docker - run with Docker Compose
- Environment Variables - configure the server
- HMAC Signing - secure your deployment