From d54c296fd231d4065b164fa7b09dd480781e9e62 Mon Sep 17 00:00:00 2001 From: FoggyMtnDrifter Date: Sun, 22 Nov 2026 11:22:22 -0500 Subject: [PATCH] Add nine dashboard, sign-in and sharing apps (batch 9) (#14) * Add Dashy * Add Homarr * Add Ocular * Add Pocket ID * Add Keycloak * Add PrivateBin * Add Password Pusher * Add ByteStash * Add Shlink * Defer Homer until Cottage has file access --- apps/bytestash/README.md | 13 +++++++++ apps/bytestash/cottage.yml | 16 +++++++++++ apps/bytestash/icon.svg | 1 + apps/bytestash/template.yml | 32 +++++++++++++++++++++ apps/dashy/README.md | 13 +++++++++ apps/dashy/cottage.yml | 14 +++++++++ apps/dashy/icon.svg | 1 + apps/dashy/template.yml | 38 ++++++++++++++++++++++++ apps/homarr/README.md | 13 +++++++++ apps/homarr/cottage.yml | 16 +++++++++++ apps/homarr/icon.svg | 1 + apps/homarr/template.yml | 53 ++++++++++++++++++++++++++++++++++ apps/keycloak/README.md | 15 ++++++++++ apps/keycloak/cottage.yml | 16 +++++++++++ apps/keycloak/icon.svg | 1 + apps/keycloak/template.yml | 56 ++++++++++++++++++++++++++++++++++++ apps/ocular/README.md | 13 +++++++++ apps/ocular/cottage.yml | 14 +++++++++ apps/ocular/icon.svg | 1 + apps/ocular/template.yml | 41 ++++++++++++++++++++++++++ apps/pocket-id/README.md | 15 ++++++++++ apps/pocket-id/cottage.yml | 16 +++++++++++ apps/pocket-id/icon.svg | 1 + apps/pocket-id/template.yml | 31 ++++++++++++++++++++ apps/privatebin/README.md | 13 +++++++++ apps/privatebin/cottage.yml | 14 +++++++++ apps/privatebin/icon.svg | 1 + apps/privatebin/template.yml | 22 ++++++++++++++ apps/pwpush/README.md | 15 ++++++++++ apps/pwpush/cottage.yml | 14 +++++++++ apps/pwpush/icon.svg | 1 + apps/pwpush/template.yml | 47 ++++++++++++++++++++++++++++++ apps/shlink/README.md | 13 +++++++++ apps/shlink/cottage.yml | 15 ++++++++++ apps/shlink/icon.svg | 1 + apps/shlink/template.yml | 29 +++++++++++++++++++ docs/licensing.md | 3 +- 37 files changed, 618 insertions(+), 1 deletion(-) create mode 100644 apps/bytestash/README.md create mode 100644 apps/bytestash/cottage.yml create mode 100644 apps/bytestash/icon.svg create mode 100644 apps/bytestash/template.yml create mode 100644 apps/dashy/README.md create mode 100644 apps/dashy/cottage.yml create mode 100644 apps/dashy/icon.svg create mode 100644 apps/dashy/template.yml create mode 100644 apps/homarr/README.md create mode 100644 apps/homarr/cottage.yml create mode 100644 apps/homarr/icon.svg create mode 100644 apps/homarr/template.yml create mode 100644 apps/keycloak/README.md create mode 100644 apps/keycloak/cottage.yml create mode 100644 apps/keycloak/icon.svg create mode 100644 apps/keycloak/template.yml create mode 100644 apps/ocular/README.md create mode 100644 apps/ocular/cottage.yml create mode 100644 apps/ocular/icon.svg create mode 100644 apps/ocular/template.yml create mode 100644 apps/pocket-id/README.md create mode 100644 apps/pocket-id/cottage.yml create mode 100644 apps/pocket-id/icon.svg create mode 100644 apps/pocket-id/template.yml create mode 100644 apps/privatebin/README.md create mode 100644 apps/privatebin/cottage.yml create mode 100644 apps/privatebin/icon.svg create mode 100644 apps/privatebin/template.yml create mode 100644 apps/pwpush/README.md create mode 100644 apps/pwpush/cottage.yml create mode 100644 apps/pwpush/icon.svg create mode 100644 apps/pwpush/template.yml create mode 100644 apps/shlink/README.md create mode 100644 apps/shlink/cottage.yml create mode 100644 apps/shlink/icon.svg create mode 100644 apps/shlink/template.yml diff --git a/apps/bytestash/README.md b/apps/bytestash/README.md new file mode 100644 index 0000000..4c37a7f --- /dev/null +++ b/apps/bytestash/README.md @@ -0,0 +1,13 @@ +## First login + +The first visit lets you create the first account, so until you've done that only you can open the app. Open it from your Cottage dashboard, choose **Create account**, pick a username and password, then choose **Done** on the app's page so anyone you share the address with can reach it. + +After that first account, sign-ups are closed. To let teammates create their own accounts, turn on **Allow anyone to sign up** for a while, then turn it off again. + +## Your first snippet + +Choose **New snippet**, give it a title, pick the language and paste your code. Add tags and categories so search finds it later. Use the share button on a snippet to send a link to someone without an account. + +## Export your data + +Open **Settings** and choose **Export Snippets** for a JSON file of everything you've saved. Cottage also keeps nightly backups of the whole app. diff --git a/apps/bytestash/cottage.yml b/apps/bytestash/cottage.yml new file mode 100644 index 0000000..0f66131 --- /dev/null +++ b/apps/bytestash/cottage.yml @@ -0,0 +1,16 @@ +name: ByteStash +tagline: Keep your code snippets in one searchable place. +category: Developer tools +description: >- + Save code snippets with syntax highlighting, tags and categories, and find them + again with search. Group several files in one snippet, share a snippet by link, + and reach your stash from scripts or AI assistants through its API. +upstream: https://github.com/jordan-dalby/ByteStash +website: https://github.com/jordan-dalby/ByteStash +license: GPL-3.0-only +images: + - ref: ghcr.io/jordan-dalby/bytestash:1.6.2 + digest: sha256:86d5726ef9a417775cc05120eed04c36915cbc41aea83c5799fc6b8d3ad77db5 +mobile_apps: false +# The first account is created on the first visit. +first_visit_claims_admin: true diff --git a/apps/bytestash/icon.svg b/apps/bytestash/icon.svg new file mode 100644 index 0000000..4161efd --- /dev/null +++ b/apps/bytestash/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/bytestash/template.yml b/apps/bytestash/template.yml new file mode 100644 index 0000000..8db5ee7 --- /dev/null +++ b/apps/bytestash/template.yml @@ -0,0 +1,32 @@ +# ByteStash: a place to store, organise and share code snippets. +x-harbor: + slug: bytestash + name: ByteStash + description: Store, organise and share your code snippets. + version: "1.6.2-c1" + primary: { service: app, port: 5000 } + health_path: /api/auth/config + default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: JWT_SECRET, label: Session signing secret, type: string, secret: true, generate: hex32 } + - { key: ALLOW_NEW_ACCOUNTS, label: Allow anyone to sign up, type: bool, default: "false", editable: true } + +services: + app: + image: ghcr.io/jordan-dalby/bytestash:1.6.2 + # The image's node user; ByteStash only writes to /data/snippets. + user: "1000:1000" + environment: + JWT_SECRET: ${JWT_SECRET} + TOKEN_EXPIRY: 7d + # The first account can always be created; this only covers the ones after it. + ALLOW_NEW_ACCOUNTS: ${ALLOW_NEW_ACCOUNTS} + ALLOW_PASSWORD_CHANGES: "true" + PUBLIC_URL: ${HARBOR_PUBLIC_URL} + volumes: [ "data:/data/snippets" ] + +volumes: + data: diff --git a/apps/dashy/README.md b/apps/dashy/README.md new file mode 100644 index 0000000..bf5b918 --- /dev/null +++ b/apps/dashy/README.md @@ -0,0 +1,13 @@ +## First login + +Your browser asks for a username and password when you open the app. The username is **admin** (you can change it under **Username**), and the password is the **Password** on the app's Overview tab. Anyone you share the dashboard with needs the same pair. + +## Make it yours + +Open the settings menu at the top right and choose **Edit Config** to change the YAML directly, or use the pencil icon to enter the interactive editor and add sections and items by clicking. When you're happy, choose **Save to Disk** so the changes are kept for every browser, not just this one. + +The starter page links to Dashy's own docs. Replace its sections with your own services, and turn on `statusCheck` for an item to see a live up or down dot beside it. + +## Export your data + +Everything lives in one file. In the settings menu, choose **View / Export Config**, then **Download YAML** for a copy of `conf.yml`. Cottage also keeps nightly backups of the whole app. diff --git a/apps/dashy/cottage.yml b/apps/dashy/cottage.yml new file mode 100644 index 0000000..e757f55 --- /dev/null +++ b/apps/dashy/cottage.yml @@ -0,0 +1,14 @@ +name: Dashy +tagline: One home page for every service and link you use. +category: Dashboards +description: >- + Build a start page of your apps and bookmarks, with status checks, search, + themes and widgets for weather, feeds, system stats and more. Edit it right in + the browser, or as a single YAML file. +upstream: https://github.com/Lissy93/dashy +website: https://dashy.to +license: MIT +images: + - ref: lissy93/dashy:4.9.20 + digest: sha256:f623433bda0ac65777dbbf179225300e11a554d88c8be2ebf0f964b12d06b9d6 +mobile_apps: false diff --git a/apps/dashy/icon.svg b/apps/dashy/icon.svg new file mode 100644 index 0000000..67e7005 --- /dev/null +++ b/apps/dashy/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/dashy/template.yml b/apps/dashy/template.yml new file mode 100644 index 0000000..94a013f --- /dev/null +++ b/apps/dashy/template.yml @@ -0,0 +1,38 @@ +# Dashy: a self-hosted start page for your services and bookmarks. +x-harbor: + slug: dashy + name: Dashy + description: A customisable dashboard for your services and links. + version: "4.9.20-c1" + primary: { service: app, port: 8080 } + health_path: /healthz + default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 160, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: DASHY_USERNAME, label: Username, type: string, default: "admin", editable: true } + - { key: DASHY_PASSWORD, label: Password, type: string, secret: true, generate: random32 } + +services: + app: + image: lissy93/dashy:4.9.20 + user: "1000:1000" + # Dashy keeps conf.yml in USER_DATA_DIR. On first start the volume is empty, + # so copy in the image's starter config, then run the server as usual. + command: + - /bin/sh + - -c + - | + [ -f /data/conf.yml ] || cp /app/user-data/conf.yml /data/conf.yml + exec node server.js + environment: + USER_DATA_DIR: /data + # Without a login anyone could edit the dashboard, so the whole config, + # and every save, sits behind this username and password. + BASIC_AUTH_USERNAME: ${DASHY_USERNAME} + BASIC_AUTH_PASSWORD: ${DASHY_PASSWORD} + volumes: [ "data:/data" ] + +volumes: + data: diff --git a/apps/homarr/README.md b/apps/homarr/README.md new file mode 100644 index 0000000..d92d048 --- /dev/null +++ b/apps/homarr/README.md @@ -0,0 +1,13 @@ +## First login + +The first visit walks you through setup and creates the administrator account, so until you've done that only you can open the app. Open it from your Cottage dashboard, choose **Get started**, create your account and build your first board, then choose **Done** on the app's page so anyone you share the address with can reach it. + +Setup also asks whether to **Share anonymous product analytics** with the Homarr project. You can change that later under **Management → Settings → Analytics**. + +## Boards and integrations + +Add apps and widgets to a board by entering edit mode. To show live data from another service, such as a media server or download client, add it under **Management → Integrations** with its address and API key, then pick it in a widget's settings. Invite other people under **Management → Users**; new accounts are only created by an administrator. + +## Export your data + +Open **Management → Tools → Backup** and choose **Download Backup** for a zip of the whole database. Cottage also keeps nightly backups of the whole app. diff --git a/apps/homarr/cottage.yml b/apps/homarr/cottage.yml new file mode 100644 index 0000000..2ff01b9 --- /dev/null +++ b/apps/homarr/cottage.yml @@ -0,0 +1,16 @@ +name: Homarr +tagline: A tidy home page for your apps, with live widgets from your services. +category: Dashboards +description: >- + Drag and drop boards of apps, bookmarks and widgets. Connect services such as + media servers, download clients and DNS blockers to see their status at a glance, + with users, groups and per-board permissions for the whole household. +upstream: https://github.com/homarr-labs/homarr +website: https://homarr.dev +license: Apache-2.0 +images: + - ref: ghcr.io/homarr-labs/homarr:v2.14.0 + digest: sha256:742940b00ed13e8649ddfd81532ad8f4140ad413ed0591f464ff6e4f7ff3c276 +mobile_apps: false +# Onboarding creates the first administrator on the first visit. +first_visit_claims_admin: true diff --git a/apps/homarr/icon.svg b/apps/homarr/icon.svg new file mode 100644 index 0000000..f21eae2 --- /dev/null +++ b/apps/homarr/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/homarr/template.yml b/apps/homarr/template.yml new file mode 100644 index 0000000..9b7af84 --- /dev/null +++ b/apps/homarr/template.yml @@ -0,0 +1,53 @@ +# Homarr: a dashboard for your self-hosted services, with integrations and widgets. +x-harbor: + slug: homarr + name: Homarr + description: A customisable dashboard for your server and services. + version: "2.14.0-c1" + primary: { service: app, port: 7575 } + health_path: /api/health/live + default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + # Two halves of the 64-character hex key Homarr encrypts integration secrets with. + - { key: ENCRYPTION_KEY_A, label: Encryption key (part 1), type: string, secret: true, generate: hex32 } + - { key: ENCRYPTION_KEY_B, label: Encryption key (part 2), type: string, secret: true, generate: hex32 } + +services: + app: + image: ghcr.io/homarr-labs/homarr:v2.14.0 + user: "1000:1000" + # The image's entrypoint and run.sh expect root: they chown paths and write + # nginx's config and logs under /etc and /var. These are the same steps as + # run.sh, with nginx's config, pid, logs and temp files kept in /tmp. + entrypoint: [ "/bin/bash", "-c" ] + command: + - | + set -e + mkdir -p /appdata/db /appdata/redis /appdata/trusted-certificates /tmp/nginx + node ./db/migrations/$$DB_DIALECT/migrate.cjs ./db/migrations/$$DB_DIALECT + export AUTH_SECRET=$$(openssl rand -base64 32) + export HOMARR_REQUEST_IDENTITY_SECRET=$$(openssl rand -hex 32) + export NGINX_USER='pid /tmp/nginx/nginx.pid; error_log stderr;' + export NGINX_LISTEN_IPV6='' + export NGINX_TRUSTED_PROXIES="access_log off; + client_body_temp_path /tmp/nginx/body; proxy_temp_path /tmp/nginx/proxy; + fastcgi_temp_path /tmp/nginx/fastcgi; uwsgi_temp_path /tmp/nginx/uwsgi; + scgi_temp_path /tmp/nginx/scgi; $$(node ./scripts/trusted-proxies.mjs)" + envsubst '$${NGINX_USER} $${NGINX_LISTEN_IPV6} $${NGINX_TRUSTED_PROXIES} $${HOMARR_REQUEST_IDENTITY_SECRET}' \ + < /etc/nginx/templates/nginx.conf > /tmp/nginx/nginx.conf + nginx -e stderr -c /tmp/nginx/nginx.conf -g 'daemon off;' & + redis-server /app/redis.conf --protected-mode yes & + export HOSTNAME=0.0.0.0 + export NODE_OPTIONS="--max-semi-space-size=4" + exec node apps/nextjs/server.js + environment: + SECRET_ENCRYPTION_KEY: ${ENCRYPTION_KEY_A}${ENCRYPTION_KEY_B} + BASE_URL: ${HARBOR_PUBLIC_URL} + NEXTAUTH_URL: ${HARBOR_PUBLIC_URL} + volumes: [ "data:/appdata" ] + +volumes: + data: diff --git a/apps/keycloak/README.md b/apps/keycloak/README.md new file mode 100644 index 0000000..c29de08 --- /dev/null +++ b/apps/keycloak/README.md @@ -0,0 +1,15 @@ +## First login + +Open `/admin` on your app's address and sign in with the username **admin** and the **Admin password** from the app's Overview tab. + +Keycloak marks this first account as temporary. Under **Users** in the master realm, create a permanent administrator for yourself, give it the **admin** role, sign in with it, and then delete the temporary **admin** account. + +## Your first realm + +Keep the master realm for administrators only. Create a new realm for your apps from the realm menu at the top left, then add each app under **Clients** with its redirect URL. Self-registration is off by default; turn it on under **Realm settings → Login** only if you want people to sign themselves up. + +Outgoing mail ports are blocked on Cottage, so leave email verification and "forgot password" emails off, and set passwords for people yourself under **Users**. + +## Export your data + +In a realm, open **Realm settings**, then choose **Action → Partial export** to download its clients, groups and roles as JSON. Cottage also keeps nightly backups of the whole app, including every user. diff --git a/apps/keycloak/cottage.yml b/apps/keycloak/cottage.yml new file mode 100644 index 0000000..ef9ae29 --- /dev/null +++ b/apps/keycloak/cottage.yml @@ -0,0 +1,16 @@ +name: Keycloak +tagline: Single sign-on and user management for all your apps. +category: Security +description: >- + A full identity and access management server. Give your apps single sign-on + with OpenID Connect or SAML, manage users, groups and roles, add two-factor + sign-in, and connect social logins or an existing LDAP directory. +upstream: https://github.com/keycloak/keycloak +website: https://www.keycloak.org +license: Apache-2.0 +images: + - ref: quay.io/keycloak/keycloak:26.8.2 + digest: sha256:7e66a96e4739239070aeaf72e4c5decf0f7f682cfc725b9f7ea2b336eaba38b3 + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 +mobile_apps: false diff --git a/apps/keycloak/icon.svg b/apps/keycloak/icon.svg new file mode 100644 index 0000000..3ea8c75 --- /dev/null +++ b/apps/keycloak/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/keycloak/template.yml b/apps/keycloak/template.yml new file mode 100644 index 0000000..011aedf --- /dev/null +++ b/apps/keycloak/template.yml @@ -0,0 +1,56 @@ +# Keycloak: identity and access management, with PostgreSQL for storage. +x-harbor: + slug: keycloak + name: Keycloak + description: Open-source identity and access management. + version: "26.8.2-c1" + primary: { service: app, port: 8080 } + health_path: /health/ready + default_resources: { cpu_millis: 1000, memory_mb: 1536, storage_mb: 5120 } + min_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 1024 } + weights: { app: 4, db: 1 } + volumes: + db_data: { uid: 70, gid: 70, mode: "0700" } + parameters: + - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + +services: + app: + image: quay.io/keycloak/keycloak:26.8.2 + # The image's own user. It owns /opt/keycloak, so the start-up build for + # PostgreSQL can write there. + user: "1000:0" + command: [ "start" ] + depends_on: + db: { condition: service_healthy } + environment: + KC_DB: postgres + KC_DB_URL: jdbc:postgresql://db:5432/keycloak + KC_DB_USERNAME: keycloak + KC_DB_PASSWORD: ${DB_PASSWORD} + KC_HOSTNAME: ${HARBOR_PUBLIC_URL} + # Cottage ends TLS at its proxy and forwards plain HTTP with X-Forwarded-*. + KC_HTTP_ENABLED: "true" + KC_PROXY_HEADERS: xforwarded + # Serve /health on the main port instead of the separate management port. + KC_HEALTH_ENABLED: "true" + KC_HTTP_MANAGEMENT_HEALTH_ENABLED: "false" + # Creates the first admin in the master realm on the first start only. + KC_BOOTSTRAP_ADMIN_USERNAME: admin + KC_BOOTSTRAP_ADMIN_PASSWORD: ${ADMIN_PASSWORD} + db: + image: postgres:18.7-alpine + user: "70:70" + environment: + POSTGRES_USER: keycloak + POSTGRES_DB: keycloak + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "keycloak", "-d", "keycloak" ] + interval: 5s + retries: 20 + +volumes: + db_data: diff --git a/apps/ocular/README.md b/apps/ocular/README.md new file mode 100644 index 0000000..8d84d32 --- /dev/null +++ b/apps/ocular/README.md @@ -0,0 +1,13 @@ +## First login + +Sign in with the username **admin** and the **Admin password** from the app's Overview tab. Change it from the account menu with **Change password** if you'd like one you'll remember. + +There are no open sign-ups. To add someone else, open **Manage users** from the account menu and choose **Create user**. + +## Your first budget + +Start with the current year: rename the example groups to match your own income and expenses, then fill in each month. Typing a sum such as `120+35` works in any cell. If you've kept a budget in Google Sheets' annual budget template, **Import from json file** can bring it in. + +## Export your data + +From the account menu, choose **Export as json file**. Cottage also keeps nightly backups of the whole app. diff --git a/apps/ocular/cottage.yml b/apps/ocular/cottage.yml new file mode 100644 index 0000000..7fab4e4 --- /dev/null +++ b/apps/ocular/cottage.yml @@ -0,0 +1,14 @@ +name: Ocular +tagline: Plan your year's income and spending on one clear page. +category: Finance +description: >- + A simple budget planner in the style of a yearly spreadsheet. Group income and + expenses, track them month by month across years, and see the year at a glance + with charts and a Sankey diagram. Import from Google Sheets' annual budget. +upstream: https://github.com/simonwep/ocular +website: https://simonwep.github.io/ocular/ +license: MIT +images: + - ref: ghcr.io/simonwep/ocular:v2.4.1 + digest: sha256:466eaed7e3137f814438d980bfe3e6d9049f07d88a7adebd45d0cb13054a63df +mobile_apps: false diff --git a/apps/ocular/icon.svg b/apps/ocular/icon.svg new file mode 100644 index 0000000..fa7f371 --- /dev/null +++ b/apps/ocular/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/ocular/template.yml b/apps/ocular/template.yml new file mode 100644 index 0000000..df2bfc1 --- /dev/null +++ b/apps/ocular/template.yml @@ -0,0 +1,41 @@ +# Ocular: a yearly budget planner. One container: the genesis API behind Caddy. +x-harbor: + slug: ocular + name: Ocular + description: A simple yearly budgeting and planning app. + version: "2.4.1-c1" + primary: { service: app, port: 8081 } + health_path: /api/health + default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + - { key: JWT_SECRET, label: Session signing secret, type: string, secret: true, generate: random32 } + +services: + app: + image: ghcr.io/simonwep/ocular:v2.4.1 + user: "1000:1000" + # The image's Caddy listens on port 80, which a non-root user can't bind. + # Run the same two processes as its entrypoint, with Caddy on 8081 and its + # own state in /tmp. + entrypoint: [ "/bin/sh", "-c" ] + command: + - | + set -e + sed 's/:80\b/:8081/g' /etc/caddy/Caddyfile > /tmp/Caddyfile + genesis start & + exec caddy run --config /tmp/Caddyfile --adapter caddyfile + environment: + XDG_CONFIG_HOME: /tmp/caddy-config + XDG_DATA_HOME: /tmp/caddy-data + GENESIS_JWT_SECRET: ${JWT_SECRET} + GENESIS_JWT_TOKEN_EXPIRATION: "60" + # Created on first start, and left alone afterwards. The ! makes it an admin. + GENESIS_CREATE_USERS: admin!:${ADMIN_PASSWORD} + volumes: [ "data:/data/genesis" ] + +volumes: + data: diff --git a/apps/pocket-id/README.md b/apps/pocket-id/README.md new file mode 100644 index 0000000..eec8741 --- /dev/null +++ b/apps/pocket-id/README.md @@ -0,0 +1,15 @@ +## First login + +Pocket ID has no passwords: the first visit creates the administrator and registers a passkey for them, so until you've done that only you can open the app. Open `/setup` on your app's address from your Cottage dashboard, enter your name and email, and add a passkey with your phone, computer or security key. Then choose **Done** on the app's page so anyone you share the address with can reach it. + +Add a second passkey on another device under **Passkeys** in your account, so losing one device doesn't lock you out. + +## Connect an app + +Under **OIDC Clients**, choose **Add OIDC Client**, give it a name and the callback URL the other app asks for. Pocket ID then shows the client ID, secret and discovery address to paste into that app. + +New sign-ups are off. Add people yourself under **Users**, then create a **Login Code** for each new person and send it to them yourself: outgoing mail ports are blocked on Cottage, so Pocket ID can't email it. They use the code once to sign in and add their own passkey. + +## Export your data + +Your users, groups and clients live in the app's database. Cottage keeps nightly backups of the whole app. diff --git a/apps/pocket-id/cottage.yml b/apps/pocket-id/cottage.yml new file mode 100644 index 0000000..0146d54 --- /dev/null +++ b/apps/pocket-id/cottage.yml @@ -0,0 +1,16 @@ +name: Pocket ID +tagline: Sign in to all your apps with a passkey, no passwords needed. +category: Security +description: >- + A simple OpenID Connect provider that uses passkeys instead of passwords. Add + single sign-on to apps that support OIDC, manage users and groups, and control + which people can reach which apps. +upstream: https://github.com/pocket-id/pocket-id +website: https://pocket-id.org +license: BSD-2-Clause +images: + - ref: ghcr.io/pocket-id/pocket-id:v2.19.3-distroless + digest: sha256:6a0045a89b80fa6624c091786e7be132a4dde880ca64727a6b019c056b091982 +mobile_apps: false +# The first visit to /setup creates the administrator and their passkey. +first_visit_claims_admin: true diff --git a/apps/pocket-id/icon.svg b/apps/pocket-id/icon.svg new file mode 100644 index 0000000..97d4386 --- /dev/null +++ b/apps/pocket-id/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/pocket-id/template.yml b/apps/pocket-id/template.yml new file mode 100644 index 0000000..9088164 --- /dev/null +++ b/apps/pocket-id/template.yml @@ -0,0 +1,31 @@ +# Pocket ID: a passkey-only OpenID Connect provider. One container, one volume. +x-harbor: + slug: pocket-id + name: Pocket ID + description: Simple single sign-on with passkeys. + version: "2.19.3-c1" + primary: { service: app, port: 1411 } + health_path: /.well-known/openid-configuration + default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 1024 } + volumes: + data: { uid: 65532, gid: 65532, mode: "0750" } + parameters: + - { key: ENCRYPTION_KEY, label: Encryption key, type: string, secret: true, generate: random32 } + +services: + app: + # The distroless variant runs as the nonroot user (65532) without an entrypoint. + image: ghcr.io/pocket-id/pocket-id:v2.19.3-distroless + user: "65532:65532" + environment: + # Built from the hostname: passkeys need a domain name, never an IP address. + APP_URL: https://${HARBOR_HOSTNAME} + ENCRYPTION_KEY: ${ENCRYPTION_KEY} + # Cottage's proxy sits in front, so trust its X-Forwarded-For for client IPs. + TRUST_PROXY: "true" + ANALYTICS_DISABLED: "true" + volumes: [ "data:/app/data" ] + +volumes: + data: diff --git a/apps/privatebin/README.md b/apps/privatebin/README.md new file mode 100644 index 0000000..00956ff --- /dev/null +++ b/apps/privatebin/README.md @@ -0,0 +1,13 @@ +## First look + +PrivateBin has no accounts. Open your app's address, type or paste some text, choose how long it should last, and choose **Create**. You'll get a link to share. The part of the link after `#` is the key, so only people with the full link can read the paste, and Cottage never sees it. + +Anyone who knows your app's address can create pastes too. Share the address with the people you want to use it. + +## Safer sharing + +Tick **Burn after reading** for a paste that disappears once it's opened, or add a password so the link alone isn't enough. Shorter expiry times keep less lying around. + +## Export your data + +Pastes are encrypted with keys only their links hold, so there's nothing useful to export from the server. Keep any text you need somewhere else too. Cottage keeps nightly backups of the whole app. diff --git a/apps/privatebin/cottage.yml b/apps/privatebin/cottage.yml new file mode 100644 index 0000000..bcd09e8 --- /dev/null +++ b/apps/privatebin/cottage.yml @@ -0,0 +1,14 @@ +name: PrivateBin +tagline: Share notes and snippets that even the server can't read. +category: Security +description: >- + A minimalist pastebin where text is encrypted in your browser before it's + sent. Set pastes to expire, burn after reading, protect them with a password, + and allow encrypted comments. The server only ever stores ciphertext. +upstream: https://github.com/PrivateBin/PrivateBin +website: https://privatebin.info +license: Zlib +images: + - ref: privatebin/nginx-fpm-alpine:2.1.1 + digest: sha256:023fe5d30c67aa1f015b4007a644d65474a300bf908725a10c8d0d64abe0086a +mobile_apps: false diff --git a/apps/privatebin/icon.svg b/apps/privatebin/icon.svg new file mode 100644 index 0000000..de29fbb --- /dev/null +++ b/apps/privatebin/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/privatebin/template.yml b/apps/privatebin/template.yml new file mode 100644 index 0000000..43730d3 --- /dev/null +++ b/apps/privatebin/template.yml @@ -0,0 +1,22 @@ +# PrivateBin: an encrypted pastebin. nginx and PHP-FPM in one container. +x-harbor: + slug: privatebin + name: PrivateBin + description: A minimalist pastebin that can't read your pastes. + version: "2.1.1-c1" + primary: { service: app, port: 8080 } + health_path: / + default_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 5120 } + min_resources: { cpu_millis: 100, memory_mb: 64, storage_mb: 1024 } + volumes: + data: { uid: 65534, gid: 82, mode: "0750" } + +services: + app: + # The image runs nginx and PHP-FPM as nobody (65534) with the www-data group. + image: privatebin/nginx-fpm-alpine:2.1.1 + user: "65534:82" + volumes: [ "data:/srv/data" ] + +volumes: + data: diff --git a/apps/pwpush/README.md b/apps/pwpush/README.md new file mode 100644 index 0000000..4613100 --- /dev/null +++ b/apps/pwpush/README.md @@ -0,0 +1,15 @@ +## First login + +The first visit opens **First Run Setup**, which creates the administrator. It asks for a **Boot Code**: paste the **First-run setup code** from the app's Overview tab, then enter your email address and a password and choose **Create Admin Account**. Without that code nobody else can claim the app. + +New sign-ups are off, and only signed-in people can create pushes. Anyone you send a link to can still open it without an account. To let colleagues sign themselves up, turn off **Turn off new sign-ups** for a while, or turn on **Let people push without signing in** if you'd rather not use accounts at all. + +## Your first push + +Paste the secret, choose how many views and days it should last, and choose the push button. Copy the link and send it. Once it expires the secret is deleted for good. Under **Audit Log** you can see when each push was opened. + +Outgoing mail ports are blocked on Cottage, so password reset emails aren't sent. Keep your password somewhere safe. + +## Export your data + +Pushes are meant to expire, so there's little to export. Cottage keeps nightly backups of the whole app, including accounts and audit logs. diff --git a/apps/pwpush/cottage.yml b/apps/pwpush/cottage.yml new file mode 100644 index 0000000..b3c8590 --- /dev/null +++ b/apps/pwpush/cottage.yml @@ -0,0 +1,14 @@ +name: Password Pusher +tagline: Share a password with a link that expires after a few views. +category: Passwords +description: >- + Send passwords, secret notes and URLs through links that delete themselves + after a set number of views or days, so they don't linger in chat logs and + inboxes. Signed-in users get an audit log of who opened each push. +upstream: https://github.com/pglombardo/PasswordPusher +website: https://pwpush.com +license: Apache-2.0 +images: + - ref: pglombardo/pwpush:2.17.4 + digest: sha256:3f0d7fc9d39424763b53dc40648e0f8fac3979c7236711a37579b305abc5ab04 +mobile_apps: false diff --git a/apps/pwpush/icon.svg b/apps/pwpush/icon.svg new file mode 100644 index 0000000..64c2a30 --- /dev/null +++ b/apps/pwpush/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/pwpush/template.yml b/apps/pwpush/template.yml new file mode 100644 index 0000000..59b4cd2 --- /dev/null +++ b/apps/pwpush/template.yml @@ -0,0 +1,47 @@ +# Password Pusher: share passwords and secrets through links that expire. +x-harbor: + slug: pwpush + name: Password Pusher + description: Share secrets with links that expire after views or time. + version: "2.17.4-c1" + primary: { service: app, port: 5100 } + health_path: /up + default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 1024 } + volumes: + storage: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: SETUP_CODE, label: First-run setup code, type: string, secret: true, generate: hex32 } + - { key: SECRET_KEY_A, label: Session signing secret (part 1), type: string, secret: true, generate: hex32 } + - { key: SECRET_KEY_B, label: Session signing secret (part 2), type: string, secret: true, generate: hex32 } + - { key: PWP__ALLOW_ANONYMOUS, label: Let people push without signing in, type: bool, default: "false", editable: true } + - { key: PWP__DISABLE_SIGNUPS, label: Turn off new sign-ups, type: bool, default: "true", editable: true } + +services: + app: + image: pglombardo/pwpush:2.17.4 + user: "1000:1000" + # The first visit creates the administrator, and asks for a boot code that the + # app would only print to its log. On the very first start, put SETUP_CODE in + # the file the app reads that code from, then start as usual. + entrypoint: [ "/bin/bash", "-c" ] + command: + - | + set -e + mkdir -p storage/db + if [ ! -e storage/db/production.sqlite3 ] && [ ! -e storage/first_run_boot_code.txt ]; then + (umask 077; printf '%s' "$$SETUP_CODE" > storage/first_run_boot_code.txt) + fi + exec /usr/local/bin/docker-entrypoint + environment: + DATABASE_URL: sqlite3:storage/db/production.sqlite3 + SECRET_KEY_BASE: ${SECRET_KEY_A}${SECRET_KEY_B} + SETUP_CODE: ${SETUP_CODE} + PWP__HOST_DOMAIN: ${HARBOR_HOSTNAME} + PWP__HOST_PROTOCOL: https + PWP__ALLOW_ANONYMOUS: ${PWP__ALLOW_ANONYMOUS} + PWP__DISABLE_SIGNUPS: ${PWP__DISABLE_SIGNUPS} + volumes: [ "storage:/opt/PasswordPusher/storage" ] + +volumes: + storage: diff --git a/apps/shlink/README.md b/apps/shlink/README.md new file mode 100644 index 0000000..141660e --- /dev/null +++ b/apps/shlink/README.md @@ -0,0 +1,13 @@ +## First login + +Shlink is the server behind your short links, and you manage it from a separate web client. Open [app.shlink.io](https://app.shlink.io), choose **Add a server**, and enter your app's full address, starting with `https://`, and the **API key** from the app's Overview tab. The client runs in your browser and talks to your app directly; the key is stored only in that browser. + +Visiting your app's address on its own shows a 404 page. That's expected: only short links answer there. + +## Your first short link + +In the web client, choose **Create short URL**, paste the long address, and optionally pick a custom slug. Your short link is your app's address followed by the slug. Each link's **Visits** page shows when and where it was opened. + +## Export your data + +In the web client's list of short URLs, choose **Export** for a CSV of your links. Cottage also keeps nightly backups of the whole app. diff --git a/apps/shlink/cottage.yml b/apps/shlink/cottage.yml new file mode 100644 index 0000000..a086f6a --- /dev/null +++ b/apps/shlink/cottage.yml @@ -0,0 +1,15 @@ +name: Shlink +tagline: Short links on your own domain, with stats on every visit. +category: Productivity +description: >- + A URL shortener you control. Create short links with custom slugs, tags and + expiry dates, generate QR codes, and see visits by date, referrer and + browser. Manage it from Shlink's web client in your browser, or over its + REST API. +upstream: https://github.com/shlinkio/shlink +website: https://shlink.io +license: MIT +images: + - ref: shlinkio/shlink:5.1.9 + digest: sha256:248d38c8d7fdba90d9e0c3c7ea9e73ef73ec9f54f7f46faf8f369153cc889aab +mobile_apps: false diff --git a/apps/shlink/icon.svg b/apps/shlink/icon.svg new file mode 100644 index 0000000..1378e23 --- /dev/null +++ b/apps/shlink/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/shlink/template.yml b/apps/shlink/template.yml new file mode 100644 index 0000000..fbf16bc --- /dev/null +++ b/apps/shlink/template.yml @@ -0,0 +1,29 @@ +# Shlink: a URL shortener with an API, visit stats and QR codes. +x-harbor: + slug: shlink + name: Shlink + description: A self-hosted URL shortener with visit tracking. + version: "5.1.9-c1" + primary: { service: app, port: 8080 } + health_path: /rest/health + default_resources: { cpu_millis: 250, memory_mb: 384, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 1024 } + volumes: + data: { uid: 1001, gid: 1001, mode: "0750" } + parameters: + - { key: INITIAL_API_KEY, label: API key, type: string, secret: true, generate: random32 } + +services: + app: + image: shlinkio/shlink:5.1.9 + # The image's own user. Data (SQLite database, caches, logs) lives in /etc/shlink/data. + user: "1001:1001" + environment: + DEFAULT_DOMAIN: ${HARBOR_HOSTNAME} + IS_HTTPS_ENABLED: "true" + # Created on the first start only, so it can be used to sign in from a client. + INITIAL_API_KEY: ${INITIAL_API_KEY} + volumes: [ "data:/etc/shlink/data" ] + +volumes: + data: diff --git a/docs/licensing.md b/docs/licensing.md index 5570915..f3c285f 100644 --- a/docs/licensing.md +++ b/docs/licensing.md @@ -40,6 +40,7 @@ test; they are kept on the `deferred-file-access` branch as a starting point. | gonic | Music server; reads a music folder, no upload (podcasts only) | | Kavita | Comics and ebooks; reads library folders, no upload | | Komga | Comics and manga; reads library folders, no upload | +| Homer | Dashboard; reads `config.yml` from its volume, no in-app editor | | App | Upstream | Licence | Verdict | Conditions and notes | Source | | --- | --- | --- | --- | --- | --- | @@ -89,7 +90,7 @@ test; they are kept on the `deferred-file-access` branch as a starting point. | HedgeDoc | [hedgedoc/hedgedoc](https://github.com/hedgedoc/hedgedoc) | AGPL-3.0 | Allowed with conditions | AGPL: listing links the exact upstream source; publish any patch we apply. | [licence](https://github.com/hedgedoc/hedgedoc/blob/develop/LICENSE) | | Homarr | [homarr-labs/homarr](https://github.com/homarr-labs/homarr) | Apache-2.0 | Allowed | | [licence](https://github.com/homarr-labs/homarr/blob/dev/LICENSE) | | HomeBox | [sysadminsmedia/homebox](https://github.com/sysadminsmedia/homebox) | AGPL-3.0 | Allowed with conditions | AGPL: listing links the exact upstream source; publish any patch we apply. | [licence](https://github.com/sysadminsmedia/homebox/blob/main/LICENSE) | -| Homer | [homer-dashboard/homer](https://github.com/homer-dashboard/homer) | Apache-2.0 | Allowed | | [licence](https://github.com/homer-dashboard/homer/blob/main/LICENSE) | +| Homer | [homer-dashboard/homer](https://github.com/homer-dashboard/homer) | Apache-2.0 | Allowed | Deferred: needs file access. | [licence](https://github.com/homer-dashboard/homer/blob/main/LICENSE) | | Immich | [immich-app/immich](https://github.com/immich-app/immich) | AGPL-3.0 | Allowed with conditions | AGPL: listing links the exact upstream source; publish any patch we apply. | [licence](https://github.com/immich-app/immich/blob/main/LICENSE) | | Joplin Server | [laurent22/joplin](https://github.com/laurent22/joplin) | AGPL-3.0 (apps); Joplin Server Personal Use License (server) | Not allowed | Joplin Server (the part we would host) is under the Joplin Server Personal Use License, which licenses individuals, not hosting providers. | [licence](https://github.com/laurent22/joplin/blob/dev/packages/server/LICENSE.md) | | Journiv | [journiv/journiv-app](https://github.com/journiv/journiv-app) | PolyForm-Noncommercial-1.0.0 | Not allowed | PolyForm Noncommercial: commercial use needs a separate written licence. | [licence](https://github.com/journiv/journiv-app/blob/main/LICENSE.md) |