Slash — a self-hosted link shortener and bookmark hub with shareable short links, visits stats and a browser extension. Deployed as a single host-networked Nomad service.
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 3.2k ⚑ Report an issue
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "slash"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Slash container image. Pin a tag in production.
image = "yourselfhosted/slash:latest"
# Host port for the Slash web UI.
port = 5231
# Named volume mounted at /var/opt/slash.
data_volume = "slash_data"
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources.
resources = {
cpu = 300
memory = 256
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "slash" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "yourselfhosted/slash:latest" | The Slash container image. Pin a tag in production. |
| port | number | 5231 | Host port for the Slash web UI. |
| data_volume | string | "slash_data" | Named volume mounted at /var/opt/slash. |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 300
memory = 256
} | The task resources. |
No variables match.
This pack stores data in one Docker named volume:
slash_data
restic
# Run on the node hosting this pack. Point restic at your repo first: # export RESTIC_REPOSITORY="s3:https://<account>.r2.cloudflarestorage.com/<bucket>" # export RESTIC_PASSWORD="<repo-password>" # export AWS_ACCESS_KEY_ID=<key> AWS_SECRET_ACCESS_KEY=<secret> restic backup \ /var/lib/docker/volumes/slash_data/_data
rclone (sync to S3/R2)
rclone sync /var/lib/docker/volumes/slash_data/_data backup:<bucket>/slash_data
Paths assume the default Docker volume location (/var/lib/docker/volumes). Restore by stopping the job, restoring files into the same volume, and re-running the pack.
Slash — a self-hosted link shortener and bookmark hub. Create memorable
short links (s/my-link) and organize shared bookmarks into collections, with visit analytics, access control and a
browser extension. A tidy replacement for Bitly plus a team start page.
Single host-networked Nomad service with a persistent SQLite volume.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run slash --registry=nomploy
| Variable | Default | Description |
|---|---|---|
port |
5231 |
Web UI port. |
image |
yourselfhosted/slash:latest |
Container image. Pin a tag in production. |
data_volume |
slash_data |
/var/opt/slash — the SQLite database. |
resources |
{ cpu = 300, memory = 256 } |
Task resources. |
The first account you create becomes the admin. Pin the job to the node holding the volume with
constraints, and put Slash behind a reverse proxy for a clean short-link domain.