From 9bb4f17d30a976280283b84b4a5fa6f9ea70afac Mon Sep 17 00:00:00 2001 From: Michael Kinder <60057409+FoggyMtnDrifter@users.noreply.github.com> Date: Sun, 22 Nov 2026 10:34:43 -0500 Subject: [PATCH] Add Slink --- apps/slink/README.md | 15 ++++++++++++++ apps/slink/cottage.yml | 14 +++++++++++++ apps/slink/icon.svg | 1 + apps/slink/template.yml | 44 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 apps/slink/README.md create mode 100644 apps/slink/cottage.yml create mode 100644 apps/slink/icon.svg create mode 100644 apps/slink/template.yml diff --git a/apps/slink/README.md b/apps/slink/README.md new file mode 100644 index 0000000..c38887a --- /dev/null +++ b/apps/slink/README.md @@ -0,0 +1,15 @@ +## First login + +Sign in with the username **admin** and the **Admin password** from the app's Overview tab. The admin's email address starts out as a placeholder, `admin@example.com`; change it to your own under your profile if you like. + +## Sharing images + +Drag images onto the upload page, then copy the link Slink gives you. From an image's page you can shorten the link, add a password, or make it public so it shows on the explore page. Group images into a collection to share them all with one link. + +## Accounts + +Sign-ups are off at first. Turn on **Allow anyone to sign up** on the app's Overview tab to let people register; each new account still waits for you to approve it in the admin area. Outbound mail ports are blocked on Cottage, so Slink can't email anyone, and password resets go through you. + +## Export your data + +Each image can be downloaded from its page in its original form. Cottage also keeps nightly backups of the whole app, images included. diff --git a/apps/slink/cottage.yml b/apps/slink/cottage.yml new file mode 100644 index 0000000..bc034ee --- /dev/null +++ b/apps/slink/cottage.yml @@ -0,0 +1,14 @@ +name: Slink +tagline: Share images with a link, from a host that's yours. +category: Media +description: >- + Upload screenshots and photos and get a short link to share, with optional + passwords, collections, comments and an explore page for public images. + Slink can compress and convert uploads, and you decide who may sign up. +upstream: https://github.com/andrii-kryvoviaz/slink/tree/v1.14.6 +website: https://docs.slinkapp.io +license: AGPL-3.0-only +images: + - ref: anirdev/slink:v1.14.6 + digest: sha256:7f7cab180971caeb83ce8818a676be04a7923dff6bf6e201ae0a9ce4f64be593 +mobile_apps: false diff --git a/apps/slink/icon.svg b/apps/slink/icon.svg new file mode 100644 index 0000000..3865789 --- /dev/null +++ b/apps/slink/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/slink/template.yml b/apps/slink/template.yml new file mode 100644 index 0000000..607f979 --- /dev/null +++ b/apps/slink/template.yml @@ -0,0 +1,44 @@ +# Slink: a self-hosted image sharing service. +x-harbor: + slug: slink + name: Slink + description: Self-hosted image sharing platform. + version: "1.14.6-c1" + primary: { service: app, port: 3000 } + health_path: /api/health + default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 20480 } + min_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 2048 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0770" } + images: { uid: 1000, gid: 1000, mode: "0770" } + cache: { uid: 1000, gid: 1000, mode: "0770" } + parameters: + - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random16 } + - { key: USER_ALLOW_REGISTRATION, label: Allow anyone to sign up, type: bool, default: "false", editable: true } + +services: + app: + image: anirdev/slink:v1.14.6 + # The image's own slink user. Its start-up scripts skip the privilege + # drop and ownership fix when they're already running as this user. + user: "1000:1000" + environment: + ORIGIN: ${HARBOR_PUBLIC_URL} + ADMIN_USERNAME: admin + # Slink needs an email for the admin; this reserved address is only a + # placeholder (mail is off) and can be changed in the profile. + ADMIN_EMAIL: admin@example.com + ADMIN_PASSWORD: ${ADMIN_PASSWORD} + USER_ALLOW_REGISTRATION: ${USER_ALLOW_REGISTRATION} + USER_APPROVAL_REQUIRED: "true" + USER_ALLOW_UNAUTHENTICATED_ACCESS: "true" + IMAGE_ALLOW_GUEST_UPLOADS: "false" + volumes: + - "data:/app/var/data" + - "images:/app/slink/images" + - "cache:/app/slink/cache" + +volumes: + data: + images: + cache: