Skip to content

Deployment Guide ​

Shortlinker supports multiple deployment methods, from simple local running to production containerized deployment.

Suggested Reading Order ​

  1. Docker Deployment Overview
  2. Docker Quick Start and Compose
  3. Reverse Proxy Overview
  4. Systemd Service Overview

For production operations details:

Deployment Options at a Glance ​

OptionBest ForRecommendation
DockerMost production environments⭐⭐⭐⭐⭐
Prebuilt binaryFast local validation / lightweight deploy⭐⭐⭐⭐
Source buildCustom build features⭐⭐⭐

Prerequisites ​

  • OS: Linux, macOS, Windows
  • Architecture: x86_64, ARM64
  • For source builds: Rust >= 1.94.0 (Edition 2024), Git

Deployment Architecture ​

User Request → Reverse Proxy → Shortlinker Service → Data Storage
    ↓             ↓                ↓                   ↓
  Browser        Nginx           Docker             SQLite(default)
  curl           Caddy           systemd            MariaDB
  API            Apache          Binary             MySQL/PostgreSQL

Security Recommendations ​

  1. Network Security: Expose service through reverse proxy
  2. File Permissions: Set appropriate data file permissions
  3. Process Management: Use system service managers
  4. Data Backup: Regular backup of link data (SQLite can directly backup .db files)

Performance Characteristics ​

  • Response Time: < 1ms (SQLite local storage)
  • Concurrency Support: Thousands of concurrent connections
  • Memory Usage: Extremely low memory footprint
  • Storage Format: SQLite database (default), supports MySQL, PostgreSQL, MariaDB

Next Steps ​

Need configuration help? Check Configuration Guide for config.toml (startup config) and DB-backed runtime config.

Released under the MIT License