From 7b6851c023aad48c055f2c70a1eacafac43471cc Mon Sep 17 00:00:00 2001 From: FoggyMtnDrifter Date: Sun, 22 Nov 2026 18:07:41 -0500 Subject: [PATCH] Let apps send email through the owner's own mail provider (#26) --- .github/check-parameters.py | 49 ++++++++++++++++++++++++++++ .github/platform.ref | 2 +- .github/workflows/validate.yml | 10 ++++++ README.md | 32 +++++++++++++++++- apps/activepieces/README.md | 2 +- apps/activepieces/template.yml | 2 +- apps/answer/README.md | 2 +- apps/answer/template.yml | 4 +-- apps/baserow/README.md | 4 +-- apps/baserow/template.yml | 18 +++++++++- apps/beszel/README.md | 2 +- apps/beszel/template.yml | 2 +- apps/blinko/README.md | 2 +- apps/blinko/template.yml | 2 +- apps/changedetection-io/README.md | 2 +- apps/changedetection-io/template.yml | 2 +- apps/checkmate/README.md | 2 +- apps/checkmate/template.yml | 2 +- apps/chevereto/README.md | 2 +- apps/chevereto/template.yml | 2 +- apps/commafeed/README.md | 2 +- apps/commafeed/template.yml | 2 +- apps/convos/README.md | 2 +- apps/convos/template.yml | 2 +- apps/docmost/README.md | 2 +- apps/docmost/template.yml | 21 +++++++++++- apps/docuseal/README.md | 2 +- apps/docuseal/template.yml | 2 +- apps/dokuwiki/README.md | 2 +- apps/dokuwiki/template.yml | 2 +- apps/easyappointments/README.md | 2 +- apps/easyappointments/template.yml | 2 +- apps/etherpad/README.md | 2 +- apps/etherpad/template.yml | 2 +- apps/firefly-iii/README.md | 2 +- apps/firefly-iii/template.yml | 19 +++++++++-- apps/forgejo/README.md | 2 +- apps/forgejo/template.yml | 17 ++++++++-- apps/freshrss/README.md | 2 +- apps/freshrss/template.yml | 2 +- apps/ghost/README.md | 4 +-- apps/ghost/template.yml | 22 +++++++++++-- apps/gitea/README.md | 2 +- apps/gitea/template.yml | 17 ++++++++-- apps/glitchtip/README.md | 2 +- apps/glitchtip/template.yml | 18 +++++++++- apps/grimmory/README.md | 2 +- apps/grimmory/template.yml | 2 +- apps/hedgedoc/README.md | 2 +- apps/hedgedoc/template.yml | 2 +- apps/homebox/template.yml | 14 +++++++- apps/immich/README.md | 2 +- apps/immich/template.yml | 2 +- apps/kan/README.md | 2 +- apps/kan/template.yml | 19 +++++++++-- apps/karakeep/README.md | 2 +- apps/karakeep/template.yml | 16 ++++++++- apps/keycloak/README.md | 2 +- apps/keycloak/template.yml | 2 +- apps/leantime/README.md | 2 +- apps/leantime/template.yml | 19 +++++++++-- apps/linkwarden/README.md | 2 +- apps/linkwarden/template.yml | 2 +- apps/lubelogger/README.md | 2 +- apps/lubelogger/template.yml | 13 +++++++- apps/lychee/README.md | 2 +- apps/lychee/template.yml | 16 ++++++++- apps/matomo/README.md | 2 +- apps/matomo/template.yml | 2 +- apps/mattermost/README.md | 2 +- apps/mattermost/template.yml | 20 ++++++++++-- apps/mealie/README.md | 2 +- apps/mealie/template.yml | 15 ++++++++- apps/mediawiki/README.md | 2 +- apps/mediawiki/template.yml | 38 +++++++++++++++++++-- apps/memos/README.md | 2 +- apps/memos/template.yml | 2 +- apps/metabase/README.md | 2 +- apps/metabase/template.yml | 15 ++++++++- apps/microbin/template.yml | 4 +-- apps/monica/README.md | 2 +- apps/monica/template.yml | 19 +++++++++-- apps/nextcloud/README.md | 2 +- apps/nextcloud/template.yml | 2 +- apps/ntfy/README.md | 2 +- apps/ntfy/template.yml | 13 +++++++- apps/open-webui/README.md | 2 +- apps/open-webui/template.yml | 2 +- apps/opentodo/README.md | 2 +- apps/opentodo/template.yml | 16 ++++++++- apps/paisa/template.yml | 4 +-- apps/paperless-ngx/README.md | 2 +- apps/paperless-ngx/template.yml | 17 +++++++++- apps/pdfding/README.md | 2 +- apps/pdfding/template.yml | 17 +++++++++- apps/pocket-id/README.md | 2 +- apps/pocket-id/template.yml | 2 +- apps/poznote/README.md | 2 +- apps/poznote/template.yml | 2 +- apps/privatebin/template.yml | 4 +-- apps/pwpush/README.md | 2 +- apps/pwpush/template.yml | 2 +- apps/pydio-cells/README.md | 2 +- apps/pydio-cells/template.yml | 2 +- apps/readeck/README.md | 2 +- apps/readeck/template.yml | 16 ++++++++- apps/rocket-chat/README.md | 2 +- apps/rocket-chat/template.yml | 4 +-- apps/roundcube/README.md | 2 +- apps/roundcube/cottage.yml | 4 +-- apps/roundcube/template.yml | 15 +++++---- apps/rsshub/template.yml | 4 +-- apps/serpbear/README.md | 2 +- apps/serpbear/template.yml | 2 +- apps/slink/README.md | 2 +- apps/slink/template.yml | 4 +-- apps/snipe-it/README.md | 2 +- apps/snipe-it/template.yml | 17 +++++++--- apps/storyteller/README.md | 2 +- apps/storyteller/template.yml | 2 +- apps/sure/README.md | 2 +- apps/sure/template.yml | 19 +++++++++-- apps/thelounge/template.yml | 4 +-- apps/traggo/template.yml | 4 +-- apps/tt-rss/README.md | 2 +- apps/tt-rss/template.yml | 2 +- apps/tududi/README.md | 2 +- apps/tududi/template.yml | 18 ++++++++-- apps/twenty/README.md | 2 +- apps/twenty/template.yml | 16 +++++++-- apps/uptime-kuma/README.md | 2 +- apps/uptime-kuma/template.yml | 2 +- apps/vaultwarden/template.yml | 18 +++++++++- apps/vikunja/README.md | 2 +- apps/vikunja/template.yml | 18 +++++++++- apps/wallabag/README.md | 2 +- apps/wallabag/template.yml | 2 +- apps/wekan/README.md | 2 +- apps/wekan/template.yml | 2 +- apps/wiki-js/README.md | 2 +- apps/wiki-js/template.yml | 2 +- apps/wordpress/README.md | 2 +- apps/wordpress/template.yml | 2 +- docs/licensing.md | 16 +++++++++ schema/cottage.schema.json | 23 +++++++++++++ scripts/local-test-plan.py | 6 ++++ 146 files changed, 737 insertions(+), 179 deletions(-) create mode 100644 .github/check-parameters.py diff --git a/.github/check-parameters.py b/.github/check-parameters.py new file mode 100644 index 0000000..3282777 --- /dev/null +++ b/.github/check-parameters.py @@ -0,0 +1,49 @@ +"""Checks every recipe's x-harbor.parameters against schema/cottage.schema.json +($defs/parameter) and the shared outgoing-mail fields. Needs PyYAML and jsonschema.""" + +import glob +import json +import sys + +import jsonschema +import yaml + +schema = json.load(open("schema/cottage.schema.json")) +param = dict(schema["$defs"]["parameter"], **{"$schema": schema["$schema"]}) +validator = jsonschema.Draft202012Validator(param) + +# The standard outgoing-mail fields. Every recipe that offers mail uses these keys, so the +# dashboard can show one familiar "Email" section, and maps them onto the app's own settings. +MAIL = { + "SMTP_HOST": {"type": "string"}, + "SMTP_PORT": {"type": "int", "default": "587"}, + "SMTP_USER": {"type": "string"}, + "SMTP_PASSWORD": {"type": "string", "secret": True}, + "SMTP_FROM": {"type": "string"}, + "SMTP_SECURITY": {"type": "choice", "choices": ["starttls", "tls", "none"], "default": "starttls"}, +} + +bad = [] +for path in sorted(glob.glob("apps/*/template.yml")): + params = (yaml.safe_load(open(path)).get("x-harbor") or {}).get("parameters") or [] + for p in params: + name = p.get("key", "?") + for e in validator.iter_errors(p): + where = "/".join(str(x) for x in e.path) or "entry" + bad.append(f"{path}: parameter {name}: {where}: {e.message}") + want = MAIL.get(name) + if p.get("group") == "email" and want is None: + bad.append(f"{path}: parameter {name}: group email is for the standard SMTP_* fields only") + if want is None: + continue + if p.get("group") != "email": + bad.append(f"{path}: parameter {name}: needs group: email") + if p.get("editable") is not True or p.get("required"): + bad.append(f"{path}: parameter {name}: mail fields are editable and not required") + if p.get("generate"): + bad.append(f"{path}: parameter {name}: mail fields are never generated") + for k, v in want.items(): + if p.get(k) != v: + bad.append(f"{path}: parameter {name}: {k} must be {v!r}") +print("\n".join(bad) or "all parameters OK") +sys.exit(1 if bad else 0) diff --git a/.github/platform.ref b/.github/platform.ref index 0f618fd..e0e5014 100644 --- a/.github/platform.ref +++ b/.github/platform.ref @@ -1 +1 @@ -1c42cea53cd56434bdee4c4efea7fb9a3a8ac4b4 +4968f029cc143be3e4145383e6442f1ec7abd119 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index bc5748c..8f32bf6 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -28,6 +28,16 @@ jobs: sys.exit(1 if bad else 0) PY + # Parameters follow schema/cottage.schema.json ($defs/parameter), and recipes that send mail + # use the shared SMTP_* fields in group "email". + parameters: + name: Parameters + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: pip install --quiet jsonschema pyyaml + - run: python3 .github/check-parameters.py + compose: name: Docker Compose test runs-on: ubuntu-latest diff --git a/README.md b/README.md index 364af84..963c2f5 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,36 @@ Cottage how to run it: | `volumes` | named volumes to hand to a non-root user: `data: { uid: 1000, gid: 1000, mode: "0750" }` | | `parameters` | settings people can see or change; secrets are generated (`generate: random32`, `random16` or `hex32`) | +Each parameter has a `key`, `label` and `type` (`string`, `int`, `bool` or `choice` with `choices`), and +may set `default`, `secret`, `generate`, `editable` (the owner can change it later), `group` (fields +with the same group are shown together) and `hint` (one line of help shown with the field). +`schema/cottage.schema.json` describes them under `$defs/parameter`. For a `choice` parameter, Cottage +also sets `_IS_=true` for the selected value, so a recipe can turn one choice into the +app's own words: `${SMTP_SECURITY_IS_TLS:+ssl}${SMTP_SECURITY_IS_STARTTLS:+tls}`. For every empty +parameter it sets `_IS_EMPTY=true`, so `${SMTP_HOST_IS_EMPTY:+log}${SMTP_HOST:+smtp}` gives `log` +while no SMTP server is set and `smtp` once one is. + +### Outgoing mail + +Apps send mail through the owner's own mail provider (for example their email host, or a sending +service such as Postmark or Amazon SES). Cottage opens the submission ports 465, 587 and 2525; port +25 stays blocked, so apps can't deliver mail directly. If the app is configured by environment +variables, offer these fields, in this order, and map them onto the app's own settings: + +```yaml + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The From address, e.g. notes@example.com. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } +``` + +Leave out a field only if the app has no such setting (Roundcube, for example, signs in to SMTP with +the mailbox login). With `SMTP_HOST` empty the app must start and work with mail off, so test the +recipe both ways. Apps that keep their mail settings in their own admin pages need no fields: say +in the README where to find them. CI checks these fields' shape. + Cottage provides `${HARBOR_PUBLIC_URL}` (the app's https:// address), `${HARBOR_HOSTNAME}`, `${HARBOR_SLUG}` and `${HARBOR_POD_ID}`, and every parameter as a variable of the same name. @@ -47,7 +77,7 @@ Rules (CI checks them): create its admin on first visit, set `first_visit_claims_admin: true` in `cottage.yml`: Cottage then keeps the app private to its owner until they've finished setup. Its `health_path` must be a plain path other than `/`, because that path stays reachable while the app is private. -- Outgoing mail ports (25, 465, 587) are blocked. Don't rely on SMTP. +- Outgoing mail goes through the owner's own provider (see Outgoing mail); port 25 is blocked. - A published version is never edited, not even a comment. Change anything in a recipe and bump the `-c` revision. - Copy follows the Cottage voice: plain, warm, specific, sentence case, no exclamation marks. diff --git a/apps/activepieces/README.md b/apps/activepieces/README.md index 3bee7ff..78a880f 100644 --- a/apps/activepieces/README.md +++ b/apps/activepieces/README.md @@ -2,7 +2,7 @@ While Cottage keeps the app private to you, open it and fill in the sign-up form: the first account becomes the admin. Then come back to the app's page in the dashboard and choose **Done** so webhooks and your teammates can reach it. -After that, nobody can sign up without an invitation. Invite teammates from the admin area's **Users** page and send them the invitation link yourself: outgoing mail is blocked on Cottage, so Activepieces can't email it. +After that, nobody can sign up without an invitation. Invite teammates from the admin area's **Users** page and send them the invitation link yourself: Activepieces on Cottage doesn't send email. ## Build your first flow diff --git a/apps/activepieces/template.yml b/apps/activepieces/template.yml index 11e1847..f27bb13 100644 --- a/apps/activepieces/template.yml +++ b/apps/activepieces/template.yml @@ -5,7 +5,7 @@ x-harbor: slug: activepieces name: Activepieces description: Automate work across your apps with no-code flows. - version: "0.93.0-c1" + version: "0.93.0-c2" primary: { service: app, port: 8080 } health_path: /api/v1/health default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 10240 } diff --git a/apps/answer/README.md b/apps/answer/README.md index 552ce61..44b8690 100644 --- a/apps/answer/README.md +++ b/apps/answer/README.md @@ -4,7 +4,7 @@ Choose **Log in** and sign in with the **Admin sign-in email** (`admin@example.c ## Add people -Open registration is off, because new accounts need an email confirmation and outbound mail ports are blocked on Cottage. Add people yourself under **Admin → Users → Add user**, with an email address and a starting password for each. +Open registration is off, because new accounts need an email confirmation. Add people yourself under **Admin → Users → Add user**, with an email address and a starting password for each. To have Answer send confirmations and password resets, enter your mail provider's details under **Admin → Settings → SMTP**. If you'd rather let anyone sign up, turn on **Admin → Login → Allow new registrations** and turn off **Require email verification**. Anyone who finds your address can then make an account. diff --git a/apps/answer/template.yml b/apps/answer/template.yml index d521ff5..284f706 100644 --- a/apps/answer/template.yml +++ b/apps/answer/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: answer name: Answer description: Q&A platform for teams and communities. - version: "2.0.3-c1" + version: "2.0.3-c2" primary: { service: app, port: 8080 } health_path: /robots.txt default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } @@ -22,7 +22,7 @@ services: user: "1000:1000" # Same steps as the image's entrypoint (install from the environment on first # start, migrate, serve). On first install it also turns off open registration, - # which would otherwise need email verification that can't be sent from Cottage. + # which would otherwise need email verification before any mail server is set up. entrypoint: [ "/bin/sh", "-c" ] command: - | diff --git a/apps/baserow/README.md b/apps/baserow/README.md index 52826a2..c93452e 100644 --- a/apps/baserow/README.md +++ b/apps/baserow/README.md @@ -6,9 +6,9 @@ Then close sign-ups: open **Admin → Settings** and turn off **Allow creating n ## Invite your team -Open your workspace's **Members** page and choose **Invite member**. Outbound mail ports are blocked on Cottage, so the invitation email won't arrive. Instead, turn **Allow creating new accounts** back on for a moment, ask the person to sign up on your app's address with the email you invited, then turn it off again. The invitation is waiting on their dashboard when they sign in. +Open your workspace's **Members** page and choose **Invite member**. Baserow emails the invitation once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Without that, turn **Allow creating new accounts** back on for a moment, ask the person to sign up on your app's address with the email you invited, then turn it off again. The invitation is waiting on their dashboard when they sign in. -**Forgot password** can't send its email either, but as admin you can set a new password for anyone under **Admin → Users**. +**Forgot password** needs email too, but as admin you can always set a new password for anyone under **Admin → Users**. ## Export your data diff --git a/apps/baserow/template.yml b/apps/baserow/template.yml index 533c329..ab13ec6 100644 --- a/apps/baserow/template.yml +++ b/apps/baserow/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: baserow name: Baserow description: No-code database with a spreadsheet interface. - version: "2.4.3-c1" + version: "2.4.3-c2" primary: { service: app, port: 8080 } health_path: /api/_health/ default_resources: { cpu_millis: 1500, memory_mb: 3072, storage_mb: 10240 } @@ -17,6 +17,12 @@ x-harbor: - { key: SECRET_KEY, label: Secret key, type: string, secret: true, generate: random32 } - { key: JWT_SIGNING_KEY, label: JWT signing key, type: string, secret: true, generate: random32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -44,6 +50,16 @@ services: BASEROW_RUN_MINIMAL: "yes" BASEROW_AMOUNT_OF_GUNICORN_WORKERS: "2" BASEROW_AMOUNT_OF_WORKERS: "1" + # Mail through the owner's provider; with no SMTP server it stays off. + EMAIL_SMTP: ${SMTP_HOST:+1} + EMAIL_SMTP_HOST: ${SMTP_HOST} + EMAIL_SMTP_PORT: ${SMTP_PORT} + EMAIL_SMTP_USER: ${SMTP_USER} + EMAIL_SMTP_PASSWORD: ${SMTP_PASSWORD} + # Any non-empty value turns these on, so each is set only for its choice. + EMAIL_SMTP_USE_TLS: ${SMTP_SECURITY_IS_STARTTLS:+1} + EMAIL_SMTP_USE_SSL: ${SMTP_SECURITY_IS_TLS:+1} + FROM_EMAIL: ${SMTP_FROM:-${SMTP_USER}} volumes: [ "data:/baserow/data" ] db: image: postgres:18.7-alpine diff --git a/apps/beszel/README.md b/apps/beszel/README.md index 3375642..838e898 100644 --- a/apps/beszel/README.md +++ b/apps/beszel/README.md @@ -8,7 +8,7 @@ Choose **Add System**, give it a name, and pick **WebSocket** as the connection. ## Alerts -Open a system and choose the bell to set limits for CPU, memory, disk or downtime. Outbound mail ports are blocked on Cottage, so send alerts through a webhook service instead: **Settings → Notifications** takes ntfy, Gotify, Discord, Slack, Telegram and other Shoutrrr URLs. +Open a system and choose the bell to set limits for CPU, memory, disk or downtime. Alerts go out through **Settings → Notifications**, which takes ntfy, Gotify, Discord, Slack, Telegram and other Shoutrrr URLs. For email alerts, enter your mail provider's SMTP details under **Settings → Mail** in the PocketBase admin (`/_/`). ## Export your data diff --git a/apps/beszel/template.yml b/apps/beszel/template.yml index 4e89ced..d4caa35 100644 --- a/apps/beszel/template.yml +++ b/apps/beszel/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: beszel name: Beszel description: Lightweight server monitoring hub. - version: "0.21.2-c1" + version: "0.21.2-c2" primary: { service: app, port: 8090 } health_path: /api/health default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } diff --git a/apps/blinko/README.md b/apps/blinko/README.md index 8c576c7..3740ce0 100644 --- a/apps/blinko/README.md +++ b/apps/blinko/README.md @@ -2,7 +2,7 @@ The first account to sign up becomes the admin, so until you've done that only you can open the app. Open it from your Cottage dashboard, choose **Sign Up**, 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, nobody else can sign up unless you switch on **Allow Registration** in **Settings**. As admin you can also add people yourself from the **User List** there. Outbound mail ports are blocked on Cottage, and Blinko doesn't need email for accounts. +After that, nobody else can sign up unless you switch on **Allow Registration** in **Settings**. As admin you can also add people yourself from the **User List** there. Blinko doesn't need email for accounts. ## Write your first notes diff --git a/apps/blinko/template.yml b/apps/blinko/template.yml index ebb454b..c8c3db3 100644 --- a/apps/blinko/template.yml +++ b/apps/blinko/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: blinko name: Blinko description: Quick notes with optional AI-powered search. - version: "1.8.9-c1" + version: "1.8.9-c2" primary: { service: app, port: 1111 } health_path: /health default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 10240 } diff --git a/apps/changedetection-io/README.md b/apps/changedetection-io/README.md index 73a926a..42f1f81 100644 --- a/apps/changedetection-io/README.md +++ b/apps/changedetection-io/README.md @@ -10,7 +10,7 @@ Pages are fetched with plain requests. Sites that only render with JavaScript ne ## Notifications -Under **Settings → Notifications**, add one or more Apprise URLs, such as `ntfys://`, `discord://` or `tgram://`. Outbound mail ports are blocked on Cottage, so `mailto://` won't send; use one of the push or chat services instead. +Under **Settings → Notifications**, add one or more Apprise URLs, such as `ntfys://`, `discord://` or `tgram://`. For email, use a `mailtos://` URL with your mail provider's SMTP server and port 465 or 587 (port 25 is blocked on Cottage). ## Export your data diff --git a/apps/changedetection-io/template.yml b/apps/changedetection-io/template.yml index 189d100..90bddab 100644 --- a/apps/changedetection-io/template.yml +++ b/apps/changedetection-io/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: changedetection-io name: changedetection.io description: Website change detection and alerts. - version: "0.70.4-c1" + version: "0.70.4-c2" primary: { service: app, port: 5000 } # A static file: it answers 200 with or without the app password set. health_path: /static/favicons/favicon-32x32.png diff --git a/apps/checkmate/README.md b/apps/checkmate/README.md index e5cda8c..109c82b 100644 --- a/apps/checkmate/README.md +++ b/apps/checkmate/README.md @@ -10,7 +10,7 @@ Open **Uptime**, choose **Create monitor** and paste the address to watch. Under ## Notifications -Add a channel under **Notifications**: ntfy, Discord, Slack, Telegram, Matrix, Pushover, PagerDuty and webhooks all work. Outbound mail ports are blocked on Cottage, so email alerts through SMTP won't send; use one of the other channels instead. +Add a channel under **Notifications**: ntfy, Discord, Slack, Telegram, Matrix, Pushover, PagerDuty and webhooks all work. For email alerts, enter your mail provider's SMTP details under **Settings** first. ## Export your data diff --git a/apps/checkmate/template.yml b/apps/checkmate/template.yml index b8e2bc0..c37cc00 100644 --- a/apps/checkmate/template.yml +++ b/apps/checkmate/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: checkmate name: Checkmate description: Uptime and infrastructure monitoring. - version: "4.1.0-c1" + version: "4.1.0-c2" primary: { service: app, port: 52345 } health_path: /api/v1/health default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } diff --git a/apps/chevereto/README.md b/apps/chevereto/README.md index 4e71abc..b7138e0 100644 --- a/apps/chevereto/README.md +++ b/apps/chevereto/README.md @@ -6,7 +6,7 @@ Open `/login` on your app's address and sign in as `admin` with the **Admin pass Out of the box, visitors can sign up and guests can upload. In the **Dashboard → Settings**, choose under **Users** whether people can sign up, and under **Upload** whether guests can upload at all. For a private gallery, turn both off and add accounts yourself. -Outgoing mail ports are blocked on Cottage, so Chevereto can't send sign-up confirmations or password resets. Turn off email confirmation for new accounts, and reset passwords for people from **Dashboard → Users**. +Chevereto sends sign-up confirmations and password resets once you enter your mail provider's SMTP details under **Dashboard → Settings → Email**. Until then, turn off email confirmation for new accounts, and reset passwords for people from **Dashboard → Users**. ## Export your data diff --git a/apps/chevereto/template.yml b/apps/chevereto/template.yml index 757e0a6..6becf31 100644 --- a/apps/chevereto/template.yml +++ b/apps/chevereto/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: chevereto name: Chevereto description: Image and video hosting and sharing. - version: "4.5.9-c2" + version: "4.5.9-c3" primary: { service: app, port: 8080 } health_path: /login default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 20480 } diff --git a/apps/commafeed/README.md b/apps/commafeed/README.md index 07d9d3a..d74be59 100644 --- a/apps/commafeed/README.md +++ b/apps/commafeed/README.md @@ -2,7 +2,7 @@ The first visit asks you to create the admin account, so until you've done that only you can open the app. Open it from your Cottage dashboard, create the admin account, then choose **Done** on the app's page so anyone you share the address with can reach it. -Sign-ups are off. To add people, open **Admin → Manage users**. Outbound mail ports are blocked on Cottage, so password reset emails can't be sent; an admin can set a new password instead. +Sign-ups are off. To add people, open **Admin → Manage users**. CommaFeed on Cottage doesn't send password reset emails; an admin can set a new password instead. ## Add your feeds diff --git a/apps/commafeed/template.yml b/apps/commafeed/template.yml index b1a0406..5face20 100644 --- a/apps/commafeed/template.yml +++ b/apps/commafeed/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: commafeed name: CommaFeed description: Google Reader inspired self-hosted RSS reader. - version: "7.5.3-c1" + version: "7.5.3-c2" primary: { service: app, port: 8082 } health_path: /rest/server/get default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } diff --git a/apps/convos/README.md b/apps/convos/README.md index 1840d38..e229aaa 100644 --- a/apps/convos/README.md +++ b/apps/convos/README.md @@ -8,7 +8,7 @@ Registration is closed after that: other people need an invite link from you. Convos starts you on Libera.Chat. To add another network, open **Add connection** and enter its server, for example `irc.oftc.net:6697`. Convos stays connected when you close the browser, so the conversation is waiting when you come back. -To invite someone, open **Settings → Users** as the admin and create an invite link for their email address. Outbound mail ports are blocked on Cottage, so send them the link yourself. The same goes for password resets: the admin can make a reset link under **Users**. +To invite someone, open **Settings → Users** as the admin and create an invite link for their email address. Convos doesn't send email, so send them the link yourself. The same goes for password resets: the admin can make a reset link under **Users**. ## Export your data diff --git a/apps/convos/template.yml b/apps/convos/template.yml index 14e06e0..069dd00 100644 --- a/apps/convos/template.yml +++ b/apps/convos/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: convos name: Convos description: Always-online web IRC client. - version: "8.07-c1" + version: "8.07-c2" primary: { service: app, port: 3000 } health_path: /api.json default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } diff --git a/apps/docmost/README.md b/apps/docmost/README.md index 7679660..27477c4 100644 --- a/apps/docmost/README.md +++ b/apps/docmost/README.md @@ -4,7 +4,7 @@ The first visit asks you to name your workspace and create its owner account, so ## Invite your team -Open **Settings → Members** and choose **Invite members**. Outbound mail ports are blocked on Cottage, so the invitation email won't arrive: after inviting someone, copy their invite link from the **Invites** tab and send it to them yourself. +Open **Settings → Members** and choose **Invite members**. Docmost emails the invitation once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Until then, after inviting someone, copy their invite link from the **Invites** tab and send it to them yourself. Then create a space for each team or project under **Settings → Spaces**, and start writing. Type `/` in a page to add tables, diagrams, callouts and more. diff --git a/apps/docmost/template.yml b/apps/docmost/template.yml index 2c23ac1..fb7de71 100644 --- a/apps/docmost/template.yml +++ b/apps/docmost/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: docmost name: Docmost description: Collaborative wiki and documentation software. - version: "0.98.0-c1" + version: "0.98.0-c2" primary: { service: app, port: 3000 } health_path: /api/health default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 10240 } @@ -16,11 +16,19 @@ x-harbor: parameters: - { key: APP_SECRET, label: App secret, type: string, secret: true, generate: hex32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: image: docmost/docmost:0.98.0 user: "1000:1000" + # The image has no shell, so Node drops MAIL_DRIVER (see below) and starts the app. + command: [ "node", "-e", "if (!process.env.SMTP_HOST) delete process.env.MAIL_DRIVER; require('./dist/main')" ] depends_on: db: { condition: service_healthy } redis: { condition: service_healthy } @@ -31,6 +39,17 @@ services: REDIS_URL: redis://redis:6379 STORAGE_DRIVER: local DISABLE_TELEMETRY: "true" + # Mail through the owner's provider. Docmost accepts only smtp or postmark here, + # so the command above drops MAIL_DRIVER while no SMTP server is set, and + # Docmost then just logs mail. + MAIL_DRIVER: smtp + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USERNAME: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + SMTP_SECURE: ${SMTP_SECURITY_IS_TLS:+true} + SMTP_IGNORETLS: ${SMTP_SECURITY_IS_NONE:+true} + MAIL_FROM_ADDRESS: ${SMTP_FROM:-${SMTP_USER}} volumes: [ "data:/app/data/storage" ] db: image: postgres:18.7-alpine diff --git a/apps/docuseal/README.md b/apps/docuseal/README.md index c0d76be..dfca504 100644 --- a/apps/docuseal/README.md +++ b/apps/docuseal/README.md @@ -8,7 +8,7 @@ Nobody can sign up on their own. Add teammates under **Settings → Users**. Choose **Upload** and pick a PDF or Word file, then drag signature, date and text fields onto the pages and assign each to a signer. Choose **Send**, add the signers, and copy their signing links. -Outgoing mail is blocked on Cottage, so DocuSeal can't email signing requests or completed copies. Share each signer's link yourself, by your own email or chat, and download the signed PDF from the submission when everyone has finished. +To have DocuSeal email signing requests and completed copies, enter your mail provider's SMTP details under **Settings → Email** (port 587 or 465; port 25 is blocked on Cottage). Until then, share each signer's link yourself, by your own email or chat, and download the signed PDF from the submission when everyone has finished. ## Export your data diff --git a/apps/docuseal/template.yml b/apps/docuseal/template.yml index 6e01da8..172ce17 100644 --- a/apps/docuseal/template.yml +++ b/apps/docuseal/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: docuseal name: DocuSeal description: Create, fill and sign digital documents. - version: "3.3.8-c1" + version: "3.3.8-c2" primary: { service: app, port: 3000 } health_path: /up default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 10240 } diff --git a/apps/dokuwiki/README.md b/apps/dokuwiki/README.md index 897f547..3da218e 100644 --- a/apps/dokuwiki/README.md +++ b/apps/dokuwiki/README.md @@ -6,7 +6,7 @@ DokuWiki's installer runs on the first visit, so until you've finished it only y Search for a page name that doesn't exist yet, or follow a red link, and choose **Create this page**. Pages are written in DokuWiki's own simple markup, with a toolbar to help. -Under **Admin → Extension Manager** you can add plugins and templates, and under **Admin → User Manager** you can create accounts for your team. Outbound mail ports are blocked on Cottage, so set passwords for new users yourself rather than having them emailed. +Under **Admin → Extension Manager** you can add plugins and templates, and under **Admin → User Manager** you can create accounts for your team. DokuWiki can't send email on its own here, so set passwords for new users yourself; the SMTP plugin from the Extension Manager can send through your mail provider. ## Export your data diff --git a/apps/dokuwiki/template.yml b/apps/dokuwiki/template.yml index 7f16a37..e29dc06 100644 --- a/apps/dokuwiki/template.yml +++ b/apps/dokuwiki/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: dokuwiki name: DokuWiki description: Simple wiki that stores pages as plain text files. - version: "2026.07.14.3-c1" # upstream 2026-07-14c; the hotfix letter is the 4th number (a=1, b=2, c=3) + version: "2026.07.14.3-c2" # upstream 2026-07-14c; the hotfix letter is the 4th number (a=1, b=2, c=3) primary: { service: app, port: 8080 } health_path: /health.php default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } diff --git a/apps/easyappointments/README.md b/apps/easyappointments/README.md index 4e3ab6c..4fceec3 100644 --- a/apps/easyappointments/README.md +++ b/apps/easyappointments/README.md @@ -8,7 +8,7 @@ After that, the address itself is your public booking page. You sign in at `/ind Add what you offer under **Services**, then the people who deliver them under **Providers**, each with their working plan and breaks. Your booking page then shows the free slots. Under **Settings → Integrations** you can sync each provider with Google Calendar or a CalDAV calendar. -Outbound mail ports are blocked on Cottage, so Easy!Appointments can't send booking confirmations or reminders by email. Customers see their confirmation on screen, and new appointments show up in your calendar and any synced calendar. +Easy!Appointments on Cottage doesn't send booking confirmations or reminders by email. Customers see their confirmation on screen, and new appointments show up in your calendar and any synced calendar. ## Export your data diff --git a/apps/easyappointments/template.yml b/apps/easyappointments/template.yml index aa8208e..0e7c1c9 100644 --- a/apps/easyappointments/template.yml +++ b/apps/easyappointments/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: easyappointments name: Easy!Appointments description: Online appointment scheduler. - version: "1.6.1-c1" + version: "1.6.1-c2" primary: { service: app, port: 8080 } # Every PHP page redirects to the installer or the login page depending on whether # setup is done, so probe a static file Apache serves either way. diff --git a/apps/etherpad/README.md b/apps/etherpad/README.md index ef42714..2103f1e 100644 --- a/apps/etherpad/README.md +++ b/apps/etherpad/README.md @@ -8,7 +8,7 @@ The admin area is at `/admin`. Sign in as **admin** with the password in the **A By default anyone who has the app's address can open or create a pad. To close it off, switch on **Require a sign-in to open pads** on the app's page. Everyone then signs in as **user** with the password in the **Pad password** setting, so share that only with people you write with. -Etherpad doesn't send email, and outbound mail ports are blocked on Cottage anyway. +Etherpad doesn't send email. ## Export your data diff --git a/apps/etherpad/template.yml b/apps/etherpad/template.yml index 1f32eab..707c4d8 100644 --- a/apps/etherpad/template.yml +++ b/apps/etherpad/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: etherpad name: Etherpad description: Real-time collaborative text editor. - version: "3.3.21-c1" + version: "3.3.21-c2" primary: { service: app, port: 9001 } health_path: /health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } diff --git a/apps/firefly-iii/README.md b/apps/firefly-iii/README.md index c7d36b8..e7a62e2 100644 --- a/apps/firefly-iii/README.md +++ b/apps/firefly-iii/README.md @@ -4,7 +4,7 @@ The first account registered becomes the admin, so until you've done that only y Firefly III starts in single-user mode, so nobody else can register after you. To add family members, turn it off under **Options → Administration → Configuration**, let them register, then turn it back on. -Outgoing mail ports are blocked on Cottage, so password reset emails can't be sent. Keep your password somewhere safe. +To get password reset emails and Firefly III's notifications, fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Until then, keep your password somewhere safe. ## Get started diff --git a/apps/firefly-iii/template.yml b/apps/firefly-iii/template.yml index a8333ca..04731d0 100644 --- a/apps/firefly-iii/template.yml +++ b/apps/firefly-iii/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: firefly-iii name: Firefly III description: Personal finance manager with budgets, rules and reports. - version: "6.7.9-c3" + version: "6.7.9-c4" primary: { service: app, port: 8080 } health_path: /health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } @@ -18,6 +18,12 @@ x-harbor: - { key: APP_KEY, label: Encryption key, type: string, secret: true, generate: hex32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: TZ, label: Time zone, type: string, default: "UTC", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -38,8 +44,15 @@ services: DB_DATABASE: firefly DB_USERNAME: firefly DB_PASSWORD: ${DB_PASSWORD} - # Outgoing mail is blocked, so write mail to the log instead. - MAIL_MAILER: log + # Mail through the owner's provider; with no SMTP server, mail goes to the log. + MAIL_MAILER: ${SMTP_HOST:+smtp} + MAIL_HOST: ${SMTP_HOST} + MAIL_PORT: ${SMTP_PORT} + MAIL_USERNAME: ${SMTP_USER} + MAIL_PASSWORD: ${SMTP_PASSWORD} + MAIL_FROM: ${SMTP_FROM:-${SMTP_USER}} + # smtps is TLS from the start; otherwise Laravel uses STARTTLS when offered. + MAIL_SCHEME: ${SMTP_SECURITY_IS_TLS:+smtps} volumes: [ "upload:/var/www/html/storage/upload" ] # Recurring transactions, auto-budgets and bill reminders need Firefly's daily cron. diff --git a/apps/forgejo/README.md b/apps/forgejo/README.md index 555f314..ddd1559 100644 --- a/apps/forgejo/README.md +++ b/apps/forgejo/README.md @@ -8,7 +8,7 @@ Sign-ups are off, so nobody else can make an account. Add people under **Site ad Choose **+ → New repository**, or **+ → New migration** to bring one over from GitHub, GitLab, Gitea or another forge, with its issues and pull requests. Clone and push over HTTPS. SSH isn't available on Cottage; create an access token under **Settings → Applications** to use as your Git password. -Outbound mail ports are blocked on Cottage, so Forgejo doesn't send email. Notifications still show up in the bell menu. +Forgejo sends notifications and password resets by email once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Notifications always show up in the bell menu too. ## Export your data diff --git a/apps/forgejo/template.yml b/apps/forgejo/template.yml index 6e36582..e994af6 100644 --- a/apps/forgejo/template.yml +++ b/apps/forgejo/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: forgejo name: Forgejo description: Self-hosted software forge. - version: "17.0.2-c1" + version: "17.0.2-c2" primary: { service: app, port: 3000 } health_path: /api/healthz default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } @@ -14,6 +14,12 @@ x-harbor: - { key: SECRET_KEY, label: Secret key, type: string, secret: true, generate: random32 } - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } - { key: DISABLE_REGISTRATION, label: Turn off sign-ups, type: bool, default: "true", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -43,7 +49,14 @@ services: FORGEJO__server__DISABLE_SSH: "true" FORGEJO__server__START_SSH_SERVER: "false" FORGEJO__service__DISABLE_REGISTRATION: ${DISABLE_REGISTRATION} - FORGEJO__mailer__ENABLED: "false" + # Mail through the owner's provider; off while no SMTP server is set. + FORGEJO__mailer__ENABLED: ${SMTP_HOST:+true} + FORGEJO__mailer__PROTOCOL: ${SMTP_SECURITY_IS_STARTTLS:+smtp+starttls}${SMTP_SECURITY_IS_TLS:+smtps}${SMTP_SECURITY_IS_NONE:+smtp} + FORGEJO__mailer__SMTP_ADDR: ${SMTP_HOST} + FORGEJO__mailer__SMTP_PORT: ${SMTP_PORT} + FORGEJO__mailer__USER: ${SMTP_USER} + FORGEJO__mailer__PASSWD: ${SMTP_PASSWORD} + FORGEJO__mailer__FROM: ${SMTP_FROM} volumes: [ "data:/var/lib/gitea" ] volumes: diff --git a/apps/freshrss/README.md b/apps/freshrss/README.md index 5c1b5e0..043432f 100644 --- a/apps/freshrss/README.md +++ b/apps/freshrss/README.md @@ -10,7 +10,7 @@ Choose **Subscription management → Add a feed** and paste a site's address. To The API is on. In a Google Reader compatible app (such as Readrops, FeedMe, NetNewsWire or Reeder), enter your app's full address, the username `admin`, and the **Mobile app (API) password** from the Overview tab. You can change that password under **Settings → Profile**. -New user accounts are created from **Administration → Manage users**. Outbound mail ports are blocked on Cottage, so leave email confirmation off. +New user accounts are created from **Administration → Manage users**. FreshRSS on Cottage doesn't send email, so leave email confirmation off. ## Export your data diff --git a/apps/freshrss/template.yml b/apps/freshrss/template.yml index 930cbde..6016544 100644 --- a/apps/freshrss/template.yml +++ b/apps/freshrss/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: freshrss name: FreshRSS description: Self-hosted RSS and Atom feed aggregator. - version: "1.30.4-c1" + version: "1.30.4-c2" primary: { service: app, port: 8080 } health_path: /i/ default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } diff --git a/apps/ghost/README.md b/apps/ghost/README.md index e417b2e..8658b58 100644 --- a/apps/ghost/README.md +++ b/apps/ghost/README.md @@ -2,11 +2,11 @@ The first visit to `/ghost` asks you to name your site and create its owner account, so until you've done that only you can open the app. Open `/ghost` on your app's address from your Cottage dashboard, fill in the setup form, then choose **Done** on the app's page so readers can reach your site. -Outgoing mail ports are blocked on Cottage, so Ghost can't send email. Staff sign in with their email address and password alone (the emailed new-device code is turned off), and **Forgot password** won't work: keep your password somewhere safe. +Ghost sends email once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Staff sign in with their email address and password alone (the emailed new-device code is turned off, so nobody is locked out if mail stops working), and until mail is set up **Forgot password** won't work: keep your password somewhere safe. ## Members and newsletters -Member sign-up and sign-in work by emailed links, which can't arrive here. Under **Settings → Membership**, set **Subscription access** to **Nobody** so visitors don't see a sign-up form that never sends its link. Your posts stay public to everyone. +Member sign-up and sign-in work by emailed links, and newsletters go out by email, so both need the email settings above. Until then, set **Subscription access** under **Settings → Membership** to **Nobody** so visitors don't see a sign-up form whose link can't arrive. Your posts stay public to everyone. Sending newsletters to many members needs a provider that allows bulk mail. To add staff, open **Settings → Staff**, choose **Invite people**, and copy the invite link to send it yourself. diff --git a/apps/ghost/template.yml b/apps/ghost/template.yml index 35b9ed3..1d8ffdc 100644 --- a/apps/ghost/template.yml +++ b/apps/ghost/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: ghost name: Ghost description: Publishing platform for blogs and newsletters. - version: "6.78.0-c1" + version: "6.78.0-c2" primary: { service: app, port: 2368 } health_path: /ghost/api/admin/site/ default_resources: { cpu_millis: 1000, memory_mb: 1536, storage_mb: 10240 } @@ -15,6 +15,12 @@ x-harbor: parameters: - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -31,9 +37,19 @@ services: database__connection__user: ghost database__connection__password: ${DB_PASSWORD} database__connection__database: ghost - # Outgoing mail is blocked, so the emailed sign-in code for new devices - # could never arrive. Staff sign in with their password alone. + # Staff sign in with their password alone, without an emailed code for new + # devices, so nobody is locked out while mail isn't set up. security__staffDeviceVerification: "false" + # Mail through the owner's provider. With no SMTP server the transport is + # empty and Ghost can't send (its direct delivery needs port 25). + mail__transport: ${SMTP_HOST:+SMTP} + mail__from: ${SMTP_FROM} + mail__options__host: ${SMTP_HOST} + mail__options__port: ${SMTP_PORT} + mail__options__secure: ${SMTP_SECURITY_IS_TLS:+true} + mail__options__ignoreTLS: ${SMTP_SECURITY_IS_NONE:+true} + mail__options__auth__user: ${SMTP_USER} + mail__options__auth__pass: ${SMTP_PASSWORD} volumes: [ "content:/var/lib/ghost/content" ] db: image: mysql:8.4.13 diff --git a/apps/gitea/README.md b/apps/gitea/README.md index ac096a1..3b2d63e 100644 --- a/apps/gitea/README.md +++ b/apps/gitea/README.md @@ -8,7 +8,7 @@ Sign-ups are off, so nobody else can make an account. Add people under **Site Ad Choose **+ → New Repository**, or **+ → New Migration** to bring one over from GitHub, GitLab or another Git host, with its issues and pull requests. Clone and push over HTTPS. SSH isn't available on Cottage; create an access token under **Settings → Applications** to use as your Git password. -Outbound mail ports are blocked on Cottage, so Gitea doesn't send email. Notifications still show up in the bell menu. +Gitea sends notifications and password resets by email once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Notifications always show up in the bell menu too. ## Export your data diff --git a/apps/gitea/template.yml b/apps/gitea/template.yml index 52a412a..328a4b5 100644 --- a/apps/gitea/template.yml +++ b/apps/gitea/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: gitea name: Gitea description: Self-hosted Git service. - version: "28.4.0-c1" + version: "28.4.0-c2" primary: { service: app, port: 3000 } health_path: /api/healthz default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } @@ -14,6 +14,12 @@ x-harbor: - { key: SECRET_KEY, label: Secret key, type: string, secret: true, generate: random32 } - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } - { key: DISABLE_REGISTRATION, label: Turn off sign-ups, type: bool, default: "true", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -45,7 +51,14 @@ services: GITEA__server__DISABLE_SSH: "true" GITEA__server__START_SSH_SERVER: "false" GITEA__service__DISABLE_REGISTRATION: ${DISABLE_REGISTRATION} - GITEA__mailer__ENABLED: "false" + # Mail through the owner's provider; off while no SMTP server is set. + GITEA__mailer__ENABLED: ${SMTP_HOST:+true} + GITEA__mailer__PROTOCOL: ${SMTP_SECURITY_IS_STARTTLS:+smtp+starttls}${SMTP_SECURITY_IS_TLS:+smtps}${SMTP_SECURITY_IS_NONE:+smtp} + GITEA__mailer__SMTP_ADDR: ${SMTP_HOST} + GITEA__mailer__SMTP_PORT: ${SMTP_PORT} + GITEA__mailer__USER: ${SMTP_USER} + GITEA__mailer__PASSWD: ${SMTP_PASSWORD} + GITEA__mailer__FROM: ${SMTP_FROM} volumes: [ "data:/var/lib/gitea" ] volumes: diff --git a/apps/glitchtip/README.md b/apps/glitchtip/README.md index aaf804f..859096f 100644 --- a/apps/glitchtip/README.md +++ b/apps/glitchtip/README.md @@ -10,7 +10,7 @@ Choose **Create project**, pick your platform, and copy the DSN it shows. Paste ## Notifications -Under each project's **Settings → Alerts**, add a webhook for Discord, Slack, Microsoft Teams, ntfy or any URL. Outbound mail ports are blocked on Cottage, so email alerts and invite emails won't send; use webhooks and invite links instead. +Under each project's **Settings → Alerts**, add a webhook for Discord, Slack, Microsoft Teams, ntfy or any URL. Email alerts and invitations work once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). ## Export your data diff --git a/apps/glitchtip/template.yml b/apps/glitchtip/template.yml index 4f75038..4ccc5e1 100644 --- a/apps/glitchtip/template.yml +++ b/apps/glitchtip/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: glitchtip name: GlitchTip description: Sentry-compatible error tracking and uptime monitoring. - version: "7.0.0-c1" + version: "7.0.0-c2" primary: { service: app, port: 8000 } health_path: /_health/ default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } @@ -16,6 +16,12 @@ x-harbor: - { key: SECRET_KEY, label: Session signing secret, type: string, secret: true, generate: random32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: ENABLE_USER_REGISTRATION, label: Allow anyone to sign up, type: bool, default: "false", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -33,6 +39,16 @@ services: # The first account can always register; this governs everyone after. ENABLE_USER_REGISTRATION: ${ENABLE_USER_REGISTRATION} ENABLE_ORGANIZATION_CREATION: "false" + # Mail through the owner's provider. GlitchTip counts any EMAIL_* variable as + # set up, so EMAIL_ENABLED decides: empty (no SMTP server) means off. + EMAIL_ENABLED: ${SMTP_HOST:+true} + EMAIL_HOST: ${SMTP_HOST} + EMAIL_PORT: ${SMTP_PORT} + EMAIL_HOST_USER: ${SMTP_USER} + EMAIL_HOST_PASSWORD: ${SMTP_PASSWORD} + EMAIL_USE_TLS: ${SMTP_SECURITY_IS_STARTTLS:+true} + EMAIL_USE_SSL: ${SMTP_SECURITY_IS_TLS:+true} + DEFAULT_FROM_EMAIL: ${SMTP_FROM:-${SMTP_USER}} volumes: [ "uploads:/code/uploads" ] db: image: postgres:18.7-alpine diff --git a/apps/grimmory/README.md b/apps/grimmory/README.md index a82e054..59f9ce3 100644 --- a/apps/grimmory/README.md +++ b/apps/grimmory/README.md @@ -8,7 +8,7 @@ Create a library and choose the folder `/books` for it. Then use **Upload** to a Files dropped into the Bookdrop (`/bookdrop`) wait for you to review their details before they join a library, which is handy for big imports. -Add accounts for others under **Settings → Users**. Outbound mail ports are blocked on Cottage, so the send-to-Kindle email feature won't work here; use the Kobo or KOReader sync instead. +Add accounts for others under **Settings → Users**. To send books to a Kindle by email, add your mail provider's SMTP details in Grimmory's **Settings**; the Kobo and KOReader sync work without it. ## Reading on other devices diff --git a/apps/grimmory/template.yml b/apps/grimmory/template.yml index 8ed8b42..8619247 100644 --- a/apps/grimmory/template.yml +++ b/apps/grimmory/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: grimmory name: Grimmory description: Self-hosted digital library with a built-in reader. - version: "3.5.1-c1" + version: "3.5.1-c2" primary: { service: app, port: 6060 } health_path: /api/v1/healthcheck default_resources: { cpu_millis: 1000, memory_mb: 1536, storage_mb: 20480 } diff --git a/apps/hedgedoc/README.md b/apps/hedgedoc/README.md index 36a0ef9..048a4f1 100644 --- a/apps/hedgedoc/README.md +++ b/apps/hedgedoc/README.md @@ -2,7 +2,7 @@ Until you've set things up, only you can open the app. Open it from your Cottage dashboard, choose **Sign In**, then **Register** with your email address and a password. Then choose **Done** on the app's page so anyone you share the address with can reach it. -HedgeDoc doesn't send email, and outbound mail ports are blocked on Cottage anyway, so registering needs no confirmation and there's no password reset. Keep your password somewhere safe. +HedgeDoc doesn't send email, so registering needs no confirmation and there's no password reset. Keep your password somewhere safe. ## Who can use it diff --git a/apps/hedgedoc/template.yml b/apps/hedgedoc/template.yml index 1747ecc..be9a4ee 100644 --- a/apps/hedgedoc/template.yml +++ b/apps/hedgedoc/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: hedgedoc name: HedgeDoc description: Collaborative Markdown editor. - version: "1.12.0-c1" + version: "1.12.0-c2" primary: { service: app, port: 3000 } health_path: /_health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } diff --git a/apps/homebox/template.yml b/apps/homebox/template.yml index 1dfdb1a..a5fd57d 100644 --- a/apps/homebox/template.yml +++ b/apps/homebox/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: homebox name: HomeBox description: Home inventory for everything you own. - version: "0.27.1-c2" + version: "0.27.1-c3" primary: { service: app, port: 7745 } health_path: /api/v1/status default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 10240 } @@ -16,6 +16,11 @@ x-harbor: - { key: API_KEY_PEPPER_B, label: API key secret (part 2), type: string, secret: true, generate: hex32 } # HomeBox can't create its first account with registration off, so it starts on. - { key: SIGNUPS_ALLOWED, label: Allow anyone to sign up, type: bool, default: "true", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587: HomeBox sends with STARTTLS only, so port 465 won't work." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } services: app: @@ -30,6 +35,13 @@ services: HBOX_OPTIONS_GITHUB_RELEASE_CHECK: "false" HBOX_OPTIONS_ALLOW_ANALYTICS: "false" HBOX_WEB_MAX_UPLOAD_SIZE: "50" + # Mail through the owner's provider; off unless server, user, password and + # sender are all set. + HBOX_MAILER_HOST: ${SMTP_HOST} + HBOX_MAILER_PORT: ${SMTP_PORT} + HBOX_MAILER_USERNAME: ${SMTP_USER} + HBOX_MAILER_PASSWORD: ${SMTP_PASSWORD} + HBOX_MAILER_FROM: ${SMTP_FROM:-${SMTP_USER}} HBOX_AUTH_API_KEY_PEPPER: ${API_KEY_PEPPER_A}${API_KEY_PEPPER_B} volumes: [ "data:/data" ] diff --git a/apps/immich/README.md b/apps/immich/README.md index 9e86c0f..e729d6d 100644 --- a/apps/immich/README.md +++ b/apps/immich/README.md @@ -2,7 +2,7 @@ The first visit asks you to create the admin account, so until you've done that only you can open the app. Open it from your Cottage dashboard, choose **Getting started**, create your account, then choose **Done** on the app's page so the phone apps and anyone you share with can reach it. -Add accounts for family under **Administration → Users**. Outgoing mail ports are blocked on Cottage, so Immich can't email invitations or password resets; set each person's password when you create them. +Add accounts for family under **Administration → Users**, and set each person's password when you create them. To have Immich email invitations and notifications, enter your mail provider's SMTP details under **Administration → Settings → Notification Settings**. ## Phone backup diff --git a/apps/immich/template.yml b/apps/immich/template.yml index 7d374d8..cb8cfa6 100644 --- a/apps/immich/template.yml +++ b/apps/immich/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: immich name: Immich description: Photo and video backup and library. - version: "3.4.2-c1" + version: "3.4.2-c2" primary: { service: app, port: 2283 } health_path: /api/server/ping # Upstream's minimum is 6 GB of RAM with machine learning (faces, smart search). diff --git a/apps/kan/README.md b/apps/kan/README.md index 967757b..3bc4f22 100644 --- a/apps/kan/README.md +++ b/apps/kan/README.md @@ -8,7 +8,7 @@ Kan has no separate admin account, and sign-ups are open until you turn them off ## Bring in your team -Outbound mail ports are blocked on Cottage, so Kan's email invitations can't be delivered. Use an invite link instead: open **Members**, choose **Create invite link**, and send the link to your teammates. They sign up from it and land in your workspace. +Kan emails invitations and sign-in links once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). You can always use an invite link instead: open **Members**, choose **Create invite link**, and send the link to your teammates. They sign up from it and land in your workspace. Once everyone is in, switch on **Close new sign-ups** in the app's settings on Cottage so strangers can't make accounts. Switch it off again for a while whenever someone new needs to join. diff --git a/apps/kan/template.yml b/apps/kan/template.yml index 6c3f7b3..c1684d0 100644 --- a/apps/kan/template.yml +++ b/apps/kan/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: kan name: Kan description: Open-source kanban boards. - version: "0.7.0-c1" + version: "0.7.0-c2" primary: { service: app, port: 3000 } health_path: /api/health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } @@ -15,6 +15,12 @@ x-harbor: - { key: BETTER_AUTH_SECRET, label: Session signing secret, type: string, secret: true, generate: random32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: DISABLE_SIGN_UP, label: Close new sign-ups, type: bool, default: "false", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -31,8 +37,15 @@ services: RUN_MIGRATIONS: "true" NEXT_PUBLIC_ALLOW_CREDENTIALS: "true" NEXT_PUBLIC_DISABLE_SIGN_UP: ${DISABLE_SIGN_UP} - # Outgoing mail is blocked, so hide magic links and email features. - NEXT_PUBLIC_DISABLE_EMAIL: "true" + # Kan shows magic links and email invites unless this is exactly "true": it + # is "true" while no SMTP server is set, and the server's name otherwise. + NEXT_PUBLIC_DISABLE_EMAIL: ${SMTP_HOST:-true} + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USER: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + EMAIL_FROM: ${SMTP_FROM:-${SMTP_USER}} + SMTP_SECURE: ${SMTP_SECURITY_IS_TLS:-false} db: image: postgres:18.7-alpine user: "70:70" diff --git a/apps/karakeep/README.md b/apps/karakeep/README.md index fd09103..0488b59 100644 --- a/apps/karakeep/README.md +++ b/apps/karakeep/README.md @@ -4,7 +4,7 @@ The first account to sign up becomes the admin, so until you've done that only y Sign-up stays open after that, so anyone with the address can make an account. To stop that, switch on **Turn off public sign-up** on the app's page. As admin you can still add people under **Admin settings → Users**. -Outbound mail ports are blocked on Cottage, so there's no email verification or password reset by email. The admin can reset a password from **Admin settings → Users**. +Password resets by email work once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). The admin can always reset a password from **Admin settings → Users**. ## Save your first bookmarks diff --git a/apps/karakeep/template.yml b/apps/karakeep/template.yml index 639ce88..328a7a6 100644 --- a/apps/karakeep/template.yml +++ b/apps/karakeep/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: karakeep name: Karakeep description: Bookmark everything, with search and optional AI tagging. - version: "0.35.0-c1" + version: "0.35.0-c2" primary: { service: web, port: 3000 } health_path: /api/health default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 20480 } @@ -18,6 +18,12 @@ x-harbor: - { key: MEILI_MASTER_KEY, label: Search index key, type: string, secret: true, generate: random32 } - { key: DISABLE_SIGNUPS, label: Turn off public sign-up, type: bool, default: "false", editable: true } - { key: OPENAI_API_KEY, label: OpenAI API key for AI tagging (optional), type: string, secret: true, default: "", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: web: @@ -34,6 +40,14 @@ services: BROWSER_WEB_URL: http://chrome:9222 DISABLE_SIGNUPS: ${DISABLE_SIGNUPS} OPENAI_API_KEY: ${OPENAI_API_KEY} + # Mail through the owner's provider; off while no SMTP server is set. + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USER: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + SMTP_FROM: ${SMTP_FROM:-${SMTP_USER}} + # Must be exactly "true" or "false", or Karakeep won't start. + SMTP_SECURE: ${SMTP_SECURITY_IS_TLS:-false} volumes: [ "data:/data" ] chrome: diff --git a/apps/keycloak/README.md b/apps/keycloak/README.md index c29de08..fc768cf 100644 --- a/apps/keycloak/README.md +++ b/apps/keycloak/README.md @@ -8,7 +8,7 @@ Keycloak marks this first account as temporary. Under **Users** in the master re 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**. +To send verification and "forgot password" emails, enter your mail provider's SMTP details for each realm under **Realm settings → Email** (port 587 or 465; port 25 is blocked on Cottage). Until then, leave those emails off and set passwords for people yourself under **Users**. ## Export your data diff --git a/apps/keycloak/template.yml b/apps/keycloak/template.yml index 011aedf..b0678b8 100644 --- a/apps/keycloak/template.yml +++ b/apps/keycloak/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: keycloak name: Keycloak description: Open-source identity and access management. - version: "26.8.2-c1" + version: "26.8.2-c2" primary: { service: app, port: 8080 } health_path: /health/ready default_resources: { cpu_millis: 1000, memory_mb: 1536, storage_mb: 5120 } diff --git a/apps/leantime/README.md b/apps/leantime/README.md index 0b0546a..d2c825f 100644 --- a/apps/leantime/README.md +++ b/apps/leantime/README.md @@ -4,7 +4,7 @@ The first visit runs Leantime's installer, which creates the admin account, so u ## Add your team -Open **User Management** from the menu and choose **Add User**. Outbound mail ports are blocked on Cottage, so Leantime can't email the invitation and will say so. That's expected: open the new user, choose **Copy Invitation Link**, and send the link to them yourself. They set their own password from it. +Open **User Management** from the menu and choose **Add User**. Leantime emails the invitation once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Until then it will say it couldn't send it. That's expected: open the new user, choose **Copy Invitation Link**, and send the link to them yourself. They set their own password from it. ## Your first project diff --git a/apps/leantime/template.yml b/apps/leantime/template.yml index eee8a6c..610e096 100644 --- a/apps/leantime/template.yml +++ b/apps/leantime/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: leantime name: Leantime description: Strategy, planning and task management for small teams. - version: "3.15.3-c1" + version: "3.15.3-c2" primary: { service: app, port: 8080 } health_path: /health default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } @@ -20,6 +20,12 @@ x-harbor: - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 } - { key: TIMEZONE, label: Default time zone, type: string, default: UTC, editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -40,7 +46,16 @@ services: LEAN_SITENAME: Leantime LEAN_USER_FILE_PATH: userfiles/ LEAN_USE_S3: "false" - LEAN_EMAIL_USE_SMTP: "false" + # Mail through the owner's provider; off while no SMTP server is set. + LEAN_EMAIL_USE_SMTP: ${SMTP_HOST:+true} + LEAN_EMAIL_SMTP_HOSTS: ${SMTP_HOST} + LEAN_EMAIL_SMTP_PORT: ${SMTP_PORT} + LEAN_EMAIL_SMTP_AUTH: ${SMTP_USER:+true} + LEAN_EMAIL_SMTP_USERNAME: ${SMTP_USER} + LEAN_EMAIL_SMTP_PASSWORD: ${SMTP_PASSWORD} + LEAN_EMAIL_RETURN: ${SMTP_FROM:-${SMTP_USER}} + LEAN_EMAIL_SMTP_SECURE: ${SMTP_SECURITY_IS_STARTTLS:+STARTTLS}${SMTP_SECURITY_IS_TLS:+SSL} + LEAN_EMAIL_SMTP_AUTO_TLS: ${SMTP_SECURITY_IS_STARTTLS:+true} volumes: - userfiles:/var/www/html/userfiles - public_userfiles:/var/www/html/public/userfiles diff --git a/apps/linkwarden/README.md b/apps/linkwarden/README.md index fb76d32..63b6a96 100644 --- a/apps/linkwarden/README.md +++ b/apps/linkwarden/README.md @@ -4,7 +4,7 @@ The first account to sign up becomes the admin, so until you've done that only y Sign-up stays open after that, so anyone with the address can make an account. To stop that, switch on **Turn off public sign-up** on the app's page. As admin you can still add people yourself: open your profile menu and choose **Server Administration**. -Outbound mail ports are blocked on Cottage, so there's no password reset by email. Keep your password somewhere safe. +Linkwarden on Cottage doesn't send password reset emails. Keep your password somewhere safe. ## Save your first links diff --git a/apps/linkwarden/template.yml b/apps/linkwarden/template.yml index 21b4865..830ab15 100644 --- a/apps/linkwarden/template.yml +++ b/apps/linkwarden/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: linkwarden name: Linkwarden description: Bookmarks with full-page archives. - version: "2.17.0-c1" + version: "2.17.0-c2" primary: { service: app, port: 3000 } health_path: /api/v1/config default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 20480 } diff --git a/apps/lubelogger/README.md b/apps/lubelogger/README.md index 0290a1e..513de9a 100644 --- a/apps/lubelogger/README.md +++ b/apps/lubelogger/README.md @@ -2,7 +2,7 @@ Sign in with the username `admin` and the **Password for the admin user** from the app's Overview tab. This is LubeLogger's root user, which can see every vehicle and manage other users. -Nobody else can register on their own. To add someone, open the **Admin Panel** from the menu, generate a token for their email address, and send it to them yourself: outgoing mail ports are blocked on Cottage, so LubeLogger can't email it. They then choose **I Have a Token** on the sign-in page. +Nobody else can register on their own. To add someone, open the **Admin Panel** from the menu and generate a token for their email address. LubeLogger emails it once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)); until then, send it to them yourself. They then choose **I Have a Token** on the sign-in page. ## Get started diff --git a/apps/lubelogger/template.yml b/apps/lubelogger/template.yml index d067de0..3b8b07a 100644 --- a/apps/lubelogger/template.yml +++ b/apps/lubelogger/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: lubelogger name: LubeLogger description: Vehicle maintenance records and fuel mileage tracker. - version: "1.7.5-c1" + version: "1.7.5-c2" primary: { service: app, port: 8080 } health_path: /Login default_resources: { cpu_millis: 250, memory_mb: 384, storage_mb: 10240 } @@ -13,6 +13,11 @@ x-harbor: keys: { uid: 1654, gid: 1654, mode: "0700" } parameters: - { key: ADMIN_PASSWORD, label: Password for the admin user, type: string, secret: true, generate: random16 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS: the app picks the security from the port." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } services: app: @@ -26,6 +31,12 @@ services: EnableAuth: "true" ADMIN_PASSWORD: ${ADMIN_PASSWORD} LUBELOGGER_DOMAIN: ${HARBOR_PUBLIC_URL} + # Mail through the owner's provider; off while no SMTP server is set. + MailConfig__EmailServer: ${SMTP_HOST} + MailConfig__Port: ${SMTP_PORT} + MailConfig__Username: ${SMTP_USER} + MailConfig__Password: ${SMTP_PASSWORD} + MailConfig__EmailFrom: ${SMTP_FROM:-${SMTP_USER}} command: - sh - -c diff --git a/apps/lychee/README.md b/apps/lychee/README.md index 36e3c7c..f7eb1bb 100644 --- a/apps/lychee/README.md +++ b/apps/lychee/README.md @@ -8,7 +8,7 @@ Choose the upload button in the top bar to add photos, or create an album first Add accounts for family and friends under **Users**, and choose whether each one may upload. -Outbound mail ports are blocked on Cottage, so Lychee's email notifications about new photos won't be sent. +Lychee's email notifications about new photos are sent once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). ## Export your data diff --git a/apps/lychee/template.yml b/apps/lychee/template.yml index 0faeec7..f8a5f93 100644 --- a/apps/lychee/template.yml +++ b/apps/lychee/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: lychee name: Lychee description: Self-hosted photo management and sharing. - version: "7.13.1-c1" + version: "7.13.1-c2" primary: { service: app, port: 8000 } health_path: /up default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 20480 } @@ -14,6 +14,11 @@ x-harbor: parameters: - { key: APP_KEY, label: Encryption key, type: string, secret: true, generate: hex32 } - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random16 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS: the app picks the security from the port." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } services: app: @@ -30,6 +35,8 @@ services: touch /var/lib/lychee/lychee.sqlite cd /app/public/uploads && mkdir -p import medium medium2x original small small2x thumb thumb2x tracks && cd /app php artisan migrate --force + # Without an SMTP server, write mail to the log rather than fail to send it. + [ -n "$$MAIL_HOST" ] || export MAIL_DRIVER=log php artisan config:cache php artisan route:cache php artisan view:cache @@ -48,6 +55,13 @@ services: DB_CONNECTION: sqlite DB_DATABASE: /var/lib/lychee/lychee.sqlite ADMIN_PASSWORD: ${ADMIN_PASSWORD} + # Mail through the owner's provider (see the command above). + MAIL_DRIVER: smtp + MAIL_HOST: ${SMTP_HOST} + MAIL_PORT: ${SMTP_PORT} + MAIL_USERNAME: ${SMTP_USER} + MAIL_PASSWORD: ${SMTP_PASSWORD} + MAIL_FROM_ADDRESS: ${SMTP_FROM:-${SMTP_USER}} # FrankenPHP keeps its own state under XDG paths; the image's are root-owned. XDG_CONFIG_HOME: /tmp/xdg-config XDG_DATA_HOME: /tmp/xdg-data diff --git a/apps/matomo/README.md b/apps/matomo/README.md index 43f1813..8eba37e 100644 --- a/apps/matomo/README.md +++ b/apps/matomo/README.md @@ -2,7 +2,7 @@ While Cottage keeps the app private to you, open it and step through Matomo's installer. The database details are already filled in, so choose **Next** on that page. Then create your superuser (username, password and email), and add the first website you want to track. When the installer finishes, come back to the app's page in the dashboard and choose **Done**, so visitors' browsers can reach the tracker. -Nobody can sign up on their own. Add people under **Administration → System → Users**, and give them a password yourself: outgoing mail is blocked on Cottage, so Matomo can't send invitations, password resets or scheduled email reports. +Nobody can sign up on their own. Add people under **Administration → System → Users**, and give them a password yourself. For invitations, password resets and scheduled email reports, enter your mail provider's SMTP details under **Administration → System → General settings → Email server settings** (port 587 or 465; port 25 is blocked on Cottage). ## Start tracking diff --git a/apps/matomo/template.yml b/apps/matomo/template.yml index 00fd21d..ef5e1cc 100644 --- a/apps/matomo/template.yml +++ b/apps/matomo/template.yml @@ -10,7 +10,7 @@ x-harbor: slug: matomo name: Matomo description: Web analytics that keeps your visitors' data in your hands. - version: "5.14.3-c2" + version: "5.14.3-c3" primary: { service: app, port: 8080 } # A static file: PHP pages here would belong to the installer until setup is done. health_path: /matomo.js diff --git a/apps/mattermost/README.md b/apps/mattermost/README.md index fdff9a9..df1ba52 100644 --- a/apps/mattermost/README.md +++ b/apps/mattermost/README.md @@ -6,7 +6,7 @@ Open sign-ups are off: people join through an invite link. ## Invite your team -In your team's menu choose **Invite people** and copy the invite link. Outbound mail ports are blocked on Cottage, so Mattermost can't email invitations or notifications: send the link yourself. Email notifications are turned off for the same reason; desktop and mobile notifications still work. +In your team's menu choose **Invite people** and copy the invite link to send it yourself. Mattermost emails invitations and notifications once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)); desktop and mobile notifications work either way. ## Apps diff --git a/apps/mattermost/template.yml b/apps/mattermost/template.yml index 065ca6f..822ca8b 100644 --- a/apps/mattermost/template.yml +++ b/apps/mattermost/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: mattermost name: Mattermost description: Team chat and collaboration (Team Edition). - version: "12.1.0-c1" + version: "12.1.0-c2" primary: { service: app, port: 8065 } health_path: /api/v4/system/ping default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 20480 } @@ -15,6 +15,12 @@ x-harbor: db_data: { uid: 70, gid: 70, mode: "0700" } parameters: - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -34,8 +40,16 @@ services: # Logs go to the container output only. MM_LOGSETTINGS_ENABLEFILE: "false" MM_NOTIFICATIONLOGSETTINGS_ENABLEFILE: "false" - # Outbound mail is blocked on Cottage. - MM_EMAILSETTINGS_SENDEMAILNOTIFICATIONS: "false" + # Mail through the owner's provider; notifications are off while no SMTP + # server is set. Settings given here are locked in the System Console. + MM_EMAILSETTINGS_SENDEMAILNOTIFICATIONS: ${SMTP_HOST_IS_EMPTY:+false}${SMTP_HOST:+true} + MM_EMAILSETTINGS_SMTPSERVER: ${SMTP_HOST} + MM_EMAILSETTINGS_SMTPPORT: ${SMTP_PORT} + MM_EMAILSETTINGS_ENABLESMTPAUTH: ${SMTP_USER_IS_EMPTY:+false}${SMTP_USER:+true} + MM_EMAILSETTINGS_SMTPUSERNAME: ${SMTP_USER} + MM_EMAILSETTINGS_SMTPPASSWORD: ${SMTP_PASSWORD} + MM_EMAILSETTINGS_FEEDBACKEMAIL: ${SMTP_FROM:-${SMTP_USER}} + MM_EMAILSETTINGS_CONNECTIONSECURITY: ${SMTP_SECURITY_IS_STARTTLS:+STARTTLS}${SMTP_SECURITY_IS_TLS:+TLS} MM_EMAILSETTINGS_REQUIREEMAILVERIFICATION: "false" MM_LOGSETTINGS_ENABLEDIAGNOSTICS: "false" volumes: [ "data:/mattermost/data" ] diff --git a/apps/mealie/README.md b/apps/mealie/README.md index 0fbaf8e..806514c 100644 --- a/apps/mealie/README.md +++ b/apps/mealie/README.md @@ -2,7 +2,7 @@ Mealie starts with an admin account that uses a published default password, so until you've replaced it only you can open the app. Open it from your Cottage dashboard: the sign-in page fills in the default details for you. Sign in, and **First Time Setup** asks for your own name, email and password. Finish it, then choose **Done** on the app's page so anyone you share the address with can reach it. -Sign-ups are off. To add family members, open your profile, choose **Get Invite Link** and send it to them yourself: outgoing mail ports are blocked on Cottage, so Mealie can't email it. +Sign-ups are off. To add family members, open your profile and choose **Get Invite Link**. Mealie can email it once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)); otherwise send the link yourself. ## Get started diff --git a/apps/mealie/template.yml b/apps/mealie/template.yml index d4de842..bf93fce 100644 --- a/apps/mealie/template.yml +++ b/apps/mealie/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: mealie name: Mealie description: Recipe manager, meal planner and shopping lists. - version: "3.31.0-c1" + version: "3.31.0-c2" primary: { service: app, port: 9000 } health_path: /api/app/about default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 10240 } @@ -12,6 +12,12 @@ x-harbor: data: { uid: 1000, gid: 1000, mode: "0750" } parameters: - { key: TZ, label: Time zone, type: string, default: "UTC", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -25,6 +31,13 @@ services: TZ: ${TZ} BASE_URL: ${HARBOR_PUBLIC_URL} ALLOW_SIGNUP: "false" + # Mail through the owner's provider; off while no SMTP server is set. + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USER: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + SMTP_FROM_EMAIL: ${SMTP_FROM:-${SMTP_USER}} + SMTP_AUTH_STRATEGY: ${SMTP_SECURITY_IS_STARTTLS:+TLS}${SMTP_SECURITY_IS_TLS:+SSL}${SMTP_SECURITY_IS_NONE:+NONE} volumes: [ "data:/app/data" ] volumes: diff --git a/apps/mediawiki/README.md b/apps/mediawiki/README.md index 9913409..29565f8 100644 --- a/apps/mediawiki/README.md +++ b/apps/mediawiki/README.md @@ -4,7 +4,7 @@ Choose **Log in** at the top of the wiki and sign in as `Admin` with the **Admin Anyone can read your wiki, but only signed-in people can edit. To make accounts for your team, open **Special:CreateAccount** while signed in as Admin. Or turn on **Allow anyone to create an account** in the app's settings. -Outbound mail ports are blocked on Cottage, so the wiki doesn't send email: there are no email confirmations or password reset emails. If someone forgets their password and can't be reached another way, make them a new account. +The wiki sends email confirmations and password resets once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Until then, if someone forgets their password and can't be reached another way, make them a new account. ## Your first pages diff --git a/apps/mediawiki/template.yml b/apps/mediawiki/template.yml index a014c6b..e343b55 100644 --- a/apps/mediawiki/template.yml +++ b/apps/mediawiki/template.yml @@ -8,7 +8,7 @@ x-harbor: slug: mediawiki name: MediaWiki description: The free wiki software that runs Wikipedia. - version: "1.46.2-c1" + version: "1.46.2-c2" primary: { service: app, port: 8080 } health_path: /api.php default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } @@ -20,6 +20,12 @@ x-harbor: - { key: MW_ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random16 } - { key: MW_SITENAME, label: Wiki name, type: string, default: "My Wiki", editable: true } - { key: MW_OPEN_SIGNUPS, label: Allow anyone to create an account, type: bool, default: "false", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -31,6 +37,12 @@ services: MW_SITENAME: ${MW_SITENAME} MW_OPEN_SIGNUPS: ${MW_OPEN_SIGNUPS} MW_ADMIN_PASSWORD: ${MW_ADMIN_PASSWORD} + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USER: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + SMTP_FROM: ${SMTP_FROM} + SMTP_SECURITY: ${SMTP_SECURITY} entrypoint: [ "/bin/bash", "-c" ] command: - | @@ -46,7 +58,7 @@ services: $$wgServer = getenv( 'MW_SERVER' ); $$wgSitename = getenv( 'MW_SITENAME' ); $$wgEnableUploads = true; - # Outgoing mail is blocked on Cottage. + # Mail stays off unless the app's email settings are filled in (see below). $$wgEnableEmail = false; $$wgEnableUserEmail = false; # Visitors can read; only signed-in users edit, and only an admin makes accounts @@ -55,6 +67,28 @@ services: $$wgGroupPermissions['*']['createaccount'] = getenv( 'MW_OPEN_SIGNUPS' ) === 'true'; SETTINGS fi + # Mail through the owner's provider, from the app's email settings. Added once, + # also to wikis installed before this block existed; read on every request. + if ! grep -q 'Cottage: mail' "$$MW_CONFIG_FILE"; then + cat >> "$$MW_CONFIG_FILE" <<'MAIL' + + # Cottage: mail follows the app's email settings; off while no SMTP server is set. + if ( getenv( 'SMTP_HOST' ) ) { + $$wgEnableEmail = true; + $$wgEnableUserEmail = true; + $$wgSMTP = [ + 'host' => ( getenv( 'SMTP_SECURITY' ) === 'tls' ? 'ssl://' : '' ) . getenv( 'SMTP_HOST' ), + 'IDHost' => parse_url( getenv( 'MW_SERVER' ), PHP_URL_HOST ), + 'port' => (int)getenv( 'SMTP_PORT' ), + 'auth' => getenv( 'SMTP_USER' ) !== '', + 'username' => getenv( 'SMTP_USER' ), + 'password' => getenv( 'SMTP_PASSWORD' ), + ]; + $$wgPasswordSender = getenv( 'SMTP_FROM' ) ?: getenv( 'SMTP_USER' ); + $$wgEmergencyContact = $$wgPasswordSender; + } + MAIL + fi php maintenance/run.php update --quick # Apache on 8080: copies of the stock config with only the port changed. sed 's/^Listen 80$$/Listen 8080/' /etc/apache2/ports.conf > /tmp/ports.conf diff --git a/apps/memos/README.md b/apps/memos/README.md index 3e0e550..2ff0c33 100644 --- a/apps/memos/README.md +++ b/apps/memos/README.md @@ -2,7 +2,7 @@ The first visit asks you to create the administrator account, so until you've done that only you can open the app. Open it from your Cottage dashboard, choose a username and password, then choose **Done** on the app's page so anyone you share the address with can reach it. -Outbound mail ports are blocked on Cottage, so there's no password reset by email. As admin you can set a new password for anyone from the member list in **Settings**. +Memos doesn't send password resets by email. As admin you can set a new password for anyone from the member list in **Settings**. ## Who can sign up diff --git a/apps/memos/template.yml b/apps/memos/template.yml index 531d4ca..2856532 100644 --- a/apps/memos/template.yml +++ b/apps/memos/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: memos name: Memos description: Lightweight self-hosted note taking. - version: "26.11.2-c1" + version: "26.11.2-c2" primary: { service: app, port: 5230 } health_path: /healthz default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } diff --git a/apps/metabase/README.md b/apps/metabase/README.md index eb0acf0..9340405 100644 --- a/apps/metabase/README.md +++ b/apps/metabase/README.md @@ -2,7 +2,7 @@ Metabase takes a minute or two to start the first time. While Cottage keeps the app private to you, open it and follow the setup steps: your name, email and a password become the first admin account. You can skip adding data for now. When the wizard finishes, come back to the app's page in the dashboard and choose **Done** so your teammates can reach it. -Nobody can sign up on their own. Add people under **Admin settings → People → Invite someone**. Outgoing mail is blocked on Cottage, so Metabase shows you a temporary password to pass on yourself. +Nobody can sign up on their own. Add people under **Admin settings → People → Invite someone**. Metabase emails the invitation once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)); until then it shows you a temporary password to pass on yourself. ## Connect your data diff --git a/apps/metabase/template.yml b/apps/metabase/template.yml index 5c3fa1b..a0b30aa 100644 --- a/apps/metabase/template.yml +++ b/apps/metabase/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: metabase name: Metabase description: Ask questions of your data and share dashboards. - version: "0.65.6-c1" + version: "0.65.6-c2" primary: { service: app, port: 3000 } health_path: /api/health default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 5120 } @@ -15,6 +15,12 @@ x-harbor: parameters: - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: ENCRYPTION_KEY, label: Encryption key for saved connections, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -35,6 +41,13 @@ services: MB_ENCRYPTION_SECRET_KEY: ${ENCRYPTION_KEY} MB_ANON_TRACKING_ENABLED: "false" MB_CHECK_FOR_UPDATES: "false" + # Mail through the owner's provider; empty settings count as unset, so mail is off. + MB_EMAIL_SMTP_HOST: ${SMTP_HOST} + MB_EMAIL_SMTP_PORT: ${SMTP_PORT} + MB_EMAIL_SMTP_USERNAME: ${SMTP_USER} + MB_EMAIL_SMTP_PASSWORD: ${SMTP_PASSWORD} + MB_EMAIL_FROM_ADDRESS: ${SMTP_FROM:-${SMTP_USER}} + MB_EMAIL_SMTP_SECURITY: ${SMTP_SECURITY_IS_STARTTLS:+starttls}${SMTP_SECURITY_IS_TLS:+ssl}${SMTP_SECURITY_IS_NONE:+none} # Let the Java heap use most of the memory Cottage gives the app. JAVA_OPTS: "-XX:MaxRAMPercentage=70" db: diff --git a/apps/microbin/template.yml b/apps/microbin/template.yml index 8cfd7c1..5823c6c 100644 --- a/apps/microbin/template.yml +++ b/apps/microbin/template.yml @@ -3,9 +3,9 @@ x-harbor: slug: microbin name: MicroBin description: Tiny self-contained paste bin and file sharing. - version: "2.1.0-c1" + version: "2.1.0-c2" primary: { service: app, port: 8080 } - health_path: / + health_path: /static/favicon.ico default_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 10240 } min_resources: { cpu_millis: 250, memory_mb: 64, storage_mb: 1024 } volumes: diff --git a/apps/monica/README.md b/apps/monica/README.md index ca0dbfa..cb8d23f 100644 --- a/apps/monica/README.md +++ b/apps/monica/README.md @@ -4,7 +4,7 @@ While Cottage keeps the app private to you, open it and fill in the registration After that first account, sign-ups are off. You can turn them back on with **Turn off sign-ups after the first account** in the app's settings, but then anyone who finds your address can make an account of their own. -Outgoing mail is blocked on Cottage, so Monica can't email reminders or invitations. Reminders still show on your dashboard, and with the calendar sync below they reach your phone too. +Monica emails reminders and invitations once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Reminders always show on your dashboard, and with the calendar sync below they reach your phone too. ## Sync with your phone diff --git a/apps/monica/template.yml b/apps/monica/template.yml index 95173d4..86977fc 100644 --- a/apps/monica/template.yml +++ b/apps/monica/template.yml @@ -7,7 +7,7 @@ x-harbor: slug: monica name: Monica description: A personal CRM for your friends and family. - version: "4.1.2-c1" + version: "4.1.2-c2" primary: { service: app, port: 8080 } health_path: /login default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } @@ -23,6 +23,11 @@ x-harbor: - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 } - { key: APP_DISABLE_SIGNUP, label: Turn off sign-ups after the first account, type: bool, default: "true", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS: the app picks the security from the port." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } services: app: @@ -46,14 +51,22 @@ services: DB_DATABASE: monica DB_USERNAME: monica DB_PASSWORD: ${DB_PASSWORD} - # Outgoing mail is blocked on Cottage; keep mail in the log instead. - MAIL_MAILER: log + # Mail through the owner's provider; without an SMTP server it goes to the log + # (see the command below). + MAIL_MAILER: smtp + MAIL_HOST: ${SMTP_HOST} + MAIL_PORT: ${SMTP_PORT} + MAIL_USERNAME: ${SMTP_USER} + MAIL_PASSWORD: ${SMTP_PASSWORD} + MAIL_ENCRYPTION: tls + MAIL_FROM_ADDRESS: ${SMTP_FROM:-${SMTP_USER}} LOG_CHANNEL: stderr CHECK_VERSION: "false" entrypoint: [ "/bin/bash", "-c" ] command: - | set -e + [ -n "$$MAIL_HOST" ] || export MAIL_MAILER=log sed 's/^Listen 80$$/Listen 8080/' /etc/apache2/ports.conf > /tmp/ports.conf sed 's/:80>/:8080>/' /etc/apache2/sites-enabled/000-default.conf > /tmp/site.conf sed -e 's#^Include ports.conf#Include /tmp/ports.conf#' \ diff --git a/apps/nextcloud/README.md b/apps/nextcloud/README.md index 9a2ce2c..21ed98b 100644 --- a/apps/nextcloud/README.md +++ b/apps/nextcloud/README.md @@ -2,7 +2,7 @@ Sign in as `admin` with the **Admin password** from the app's Overview tab. Add people under **Accounts** in the top-right menu and set their passwords there. -Outgoing mail ports are blocked on Cottage, so Nextcloud can't send share notifications or password-reset emails. You'll see a warning about the email server in **Administration settings → Overview**; it's safe to leave. +To send share notifications and password-reset emails, enter your mail provider's details under **Administration settings → Basic settings → Email server** (port 587 or 465; port 25 is blocked on Cottage). Until then you'll see a warning about the email server in **Administration settings → Overview**; it's safe to leave. ## Sync and apps diff --git a/apps/nextcloud/template.yml b/apps/nextcloud/template.yml index 835c0bc..dbc3606 100644 --- a/apps/nextcloud/template.yml +++ b/apps/nextcloud/template.yml @@ -5,7 +5,7 @@ x-harbor: slug: nextcloud name: Nextcloud description: Files, calendars, contacts and collaboration. - version: "35.0.3-c1" + version: "35.0.3-c2" primary: { service: app, port: 8080 } health_path: /status.php default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 51200 } diff --git a/apps/ntfy/README.md b/apps/ntfy/README.md index 618e7f7..227e205 100644 --- a/apps/ntfy/README.md +++ b/apps/ntfy/README.md @@ -14,7 +14,7 @@ curl -H "Authorization: Bearer " -d "Backup finished" https://your-app-ad Subscribe to the `backups` topic in the web app, or in the ntfy app for Android or iPhone: add your app's address as the default server (or when you subscribe) and sign in with the same account. On iPhone, instant notifications are relayed through ntfy.sh, which only sees a wake-up signal, not your messages. -Outbound mail ports are blocked on Cottage, so ntfy can't forward notifications to email. +ntfy can forward notifications to email once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). ntfy sends with STARTTLS only, so use port 587. ## Export your data diff --git a/apps/ntfy/template.yml b/apps/ntfy/template.yml index 605f1a9..4e5ef7c 100644 --- a/apps/ntfy/template.yml +++ b/apps/ntfy/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: ntfy name: ntfy description: Push notifications over plain HTTP. - version: "2.38.1-c1" + version: "2.38.1-c2" primary: { service: app, port: 8080 } health_path: /v1/health default_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 5120 } @@ -12,6 +12,11 @@ x-harbor: data: { uid: 1000, gid: 1000, mode: "0750" } parameters: - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587: ntfy sends with STARTTLS only, so port 465 won't work." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } services: app: @@ -45,6 +50,12 @@ services: # Lets the iOS app get instant notifications: ntfy.sh relays only a wake-up # with the message ID, never the message itself. NTFY_UPSTREAM_BASE_URL: https://ntfy.sh + # Forward messages to email through the owner's provider; off while no SMTP + # server is set. ntfy won't start with a server but no sender address. + NTFY_SMTP_SENDER_ADDR: ${SMTP_HOST:+${SMTP_HOST}:${SMTP_PORT}} + NTFY_SMTP_SENDER_USER: ${SMTP_USER} + NTFY_SMTP_SENDER_PASS: ${SMTP_PASSWORD} + NTFY_SMTP_SENDER_FROM: ${SMTP_FROM:-ntfy@${HARBOR_HOSTNAME}} volumes: [ "data:/var/lib/ntfy" ] volumes: diff --git a/apps/open-webui/README.md b/apps/open-webui/README.md index ef757d7..6bb7410 100644 --- a/apps/open-webui/README.md +++ b/apps/open-webui/README.md @@ -2,7 +2,7 @@ Sign in with the email `admin@` followed by your app's hostname (for example `admin@yourapp.cottage.host`) and the **Admin password** from the app's Overview tab. Then open **Settings → Account** to change your name, email and password. -New sign-ups are off. Outgoing mail ports are blocked on Cottage, so to add people, open **Admin Panel → Users**, choose **+**, and give them the email and password you set. You can also turn sign-ups on under **Admin Panel → Settings → General**; new accounts then wait for you to approve them. +New sign-ups are off. To add people, open **Admin Panel → Users**, choose **+**, and give them the email and password you set. You can also turn sign-ups on under **Admin Panel → Settings → General**; new accounts then wait for you to approve them. ## Connect a model diff --git a/apps/open-webui/template.yml b/apps/open-webui/template.yml index 8fc59dc..6b0b9f7 100644 --- a/apps/open-webui/template.yml +++ b/apps/open-webui/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: open-webui name: Open WebUI description: Chat interface for AI models. - version: "0.13.4-c1" + version: "0.13.4-c2" primary: { service: app, port: 8080 } health_path: /health default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 10240 } diff --git a/apps/opentodo/README.md b/apps/opentodo/README.md index e36461d..68fbe83 100644 --- a/apps/opentodo/README.md +++ b/apps/opentodo/README.md @@ -4,7 +4,7 @@ The first visit asks you to create the owner account, so until you've done that ## Add people and devices -Sign-up is closed. To add someone, open **Settings → People → Users and invitations**, create an invitation link and send it to them yourself. Outbound mail ports are blocked on Cottage, so OpenTodo doesn't email invitations or password resets; from the same page you can also make a single-use reset link for anyone who forgets their password. +Sign-up is closed. To add someone, open **Settings → People → Users and invitations**, create an invitation link and send it to them yourself. OpenTodo emails invitations and password resets once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)); from the same page you can always make a single-use reset link for anyone who forgets their password. On your phone, install OpenTodo from the App Store or the Android APK on GitHub and enter your app's full address, starting with `https://`. Calendar and reminder apps can sync over CalDAV from **Settings**. diff --git a/apps/opentodo/template.yml b/apps/opentodo/template.yml index f9ee7f0..d1bc9f2 100644 --- a/apps/opentodo/template.yml +++ b/apps/opentodo/template.yml @@ -3,13 +3,20 @@ x-harbor: slug: opentodo name: OpenTodo description: Local-first task manager with apps for every device. - version: "1.6.0-c1" + version: "1.6.0-c2" 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: 128, storage_mb: 1024 } volumes: data: { uid: 65532, gid: 65532, mode: "0750" } + parameters: + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email, hint: "OpenTodo won't start with None and a username: it never sends a password unencrypted." } services: app: @@ -19,6 +26,13 @@ services: OPENTODO_BASE_URL: ${HARBOR_PUBLIC_URL} # People join through invitation links the owner creates; no open sign-up. OPENTODO_ALLOW_SIGNUP: "false" + # Mail through the owner's provider; off while no SMTP server is set. OpenTodo + # won't start with a server but no sender (or the reverse), so both follow the server. + OPENTODO_SMTP_HOST: ${SMTP_HOST:+${SMTP_HOST}:${SMTP_PORT}} + OPENTODO_SMTP_USER: ${SMTP_USER} + OPENTODO_SMTP_PASSWORD: ${SMTP_PASSWORD} + OPENTODO_SMTP_FROM: ${SMTP_HOST:+${SMTP_FROM:-${SMTP_USER}}} + OPENTODO_SMTP_SECURITY: ${SMTP_HOST:+${SMTP_SECURITY}} volumes: [ "data:/data" ] volumes: diff --git a/apps/paisa/template.yml b/apps/paisa/template.yml index eed84b2..88a52ab 100644 --- a/apps/paisa/template.yml +++ b/apps/paisa/template.yml @@ -3,9 +3,9 @@ x-harbor: slug: paisa name: Paisa description: Personal finance manager for plain-text ledger journals. - version: "0.8.0-c1" + version: "0.8.0-c2" primary: { service: app, port: 7500 } - health_path: / + health_path: /robots.txt default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } min_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 1024 } volumes: diff --git a/apps/paperless-ngx/README.md b/apps/paperless-ngx/README.md index ca04175..f1e2c32 100644 --- a/apps/paperless-ngx/README.md +++ b/apps/paperless-ngx/README.md @@ -6,7 +6,7 @@ Sign in as `admin` with the **Admin password** from the app's Overview tab. Add Drag PDFs, images or office files onto the dashboard, or use **Upload** in the menu. Paperless reads each one with OCR (English by default), then you can add a correspondent, document type and tags. Once it has seen a few examples, it starts suggesting them for you. -The phone apps and scanner apps that support Paperless-ngx can upload straight to your app's address. Fetching documents from an email inbox works over IMAP, but Paperless can't send mail on Cottage because outgoing mail ports are blocked. +The phone apps and scanner apps that support Paperless-ngx can upload straight to your app's address. Fetching documents from an email inbox works over IMAP. To email documents and password resets, fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). ## Export your data diff --git a/apps/paperless-ngx/template.yml b/apps/paperless-ngx/template.yml index fff37df..86be040 100644 --- a/apps/paperless-ngx/template.yml +++ b/apps/paperless-ngx/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: paperless-ngx name: Paperless-ngx description: Document management system with OCR. - version: "3.5.1-c1" + version: "3.5.1-c2" primary: { service: app, port: 8000 } health_path: /accounts/login/ default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 20480 } @@ -19,6 +19,12 @@ x-harbor: - { key: SECRET_KEY, label: Secret key, type: string, secret: true, generate: random32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: ADMIN_PASSWORD, label: Admin password (user admin), type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -44,6 +50,15 @@ services: PAPERLESS_TASK_WORKERS: "1" PAPERLESS_THREADS_PER_WORKER: "1" PAPERLESS_WEBSERVER_WORKERS: "1" + # Mail through the owner's provider. Paperless treats host "localhost" with no + # user as "no mail", and fails to start on empty ports or flags, hence the defaults. + PAPERLESS_EMAIL_HOST: ${SMTP_HOST:-localhost} + PAPERLESS_EMAIL_PORT: ${SMTP_PORT:-587} + PAPERLESS_EMAIL_HOST_USER: ${SMTP_HOST:+${SMTP_USER}} + PAPERLESS_EMAIL_HOST_PASSWORD: ${SMTP_PASSWORD} + PAPERLESS_EMAIL_FROM: ${SMTP_FROM:-${SMTP_USER}} + PAPERLESS_EMAIL_USE_TLS: ${SMTP_SECURITY_IS_STARTTLS:-false} + PAPERLESS_EMAIL_USE_SSL: ${SMTP_SECURITY_IS_TLS:-false} volumes: - "data:/usr/src/paperless/data" - "media:/usr/src/paperless/media" diff --git a/apps/pdfding/README.md b/apps/pdfding/README.md index 2c38c1e..d0213d3 100644 --- a/apps/pdfding/README.md +++ b/apps/pdfding/README.md @@ -2,7 +2,7 @@ Sign in with the **Admin sign-in email** and **Admin password** from the app's Overview tab. Change the email to your own under **Settings → Account** once you're in. -Sign-ups are off, so nobody else can make an account. Add people under **Admin → Users**, or turn off **Turn off sign-ups** in the app's settings for a while if you'd rather they sign up themselves. Outgoing mail is blocked on Cottage, so PdfDing can't send verification or password-reset emails; as the admin you can set a new password for anyone from the same page. +Sign-ups are off, so nobody else can make an account. Add people under **Admin → Users**, or turn off **Turn off sign-ups** in the app's settings for a while if you'd rather they sign up themselves. PdfDing sends password-reset emails once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)); as the admin you can always set a new password for anyone from the same page. ## Your library diff --git a/apps/pdfding/template.yml b/apps/pdfding/template.yml index 8446644..7e5002e 100644 --- a/apps/pdfding/template.yml +++ b/apps/pdfding/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: pdfding name: PdfDing description: PDF manager, viewer and editor. - version: "1.15.0-c1" + version: "1.15.0-c2" primary: { service: app, port: 8000 } health_path: /healthz default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } @@ -15,6 +15,12 @@ x-harbor: - { key: ADMIN_EMAIL, label: Admin sign-in email (used on first start), type: string, default: "admin@example.com" } - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } - { key: DISABLE_USER_SIGNUP, label: Turn off sign-ups (the admin adds users), type: bool, default: "true", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -54,6 +60,15 @@ services: ADMIN_EMAIL: ${ADMIN_EMAIL} ADMIN_PASSWORD: ${ADMIN_PASSWORD} DEFAULT_THEME: light + # Mail through the owner's provider; off while no SMTP server is set. + EMAIL_BACKEND: ${SMTP_HOST:+SMTP} + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USER: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + EMAIL_ADDRESS: ${SMTP_FROM:-${SMTP_USER}} + SMTP_USE_TLS: ${SMTP_SECURITY_IS_STARTTLS:+TRUE} + SMTP_USE_SSL: ${SMTP_SECURITY_IS_TLS:+TRUE} volumes: [ "data:/home/nonroot/data" ] volumes: diff --git a/apps/pocket-id/README.md b/apps/pocket-id/README.md index eec8741..f8e54f7 100644 --- a/apps/pocket-id/README.md +++ b/apps/pocket-id/README.md @@ -8,7 +8,7 @@ Add a second passkey on another device under **Passkeys** in your account, so lo 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. +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. They use the code once to sign in and add their own passkey. To have Pocket ID email codes and sign-in alerts, enter your mail provider's SMTP details under **Application Configuration → Email**. ## Export your data diff --git a/apps/pocket-id/template.yml b/apps/pocket-id/template.yml index 9088164..1760684 100644 --- a/apps/pocket-id/template.yml +++ b/apps/pocket-id/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: pocket-id name: Pocket ID description: Simple single sign-on with passkeys. - version: "2.19.3-c1" + version: "2.19.3-c2" primary: { service: app, port: 1411 } health_path: /.well-known/openid-configuration default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } diff --git a/apps/poznote/README.md b/apps/poznote/README.md index a0313e1..afae277 100644 --- a/apps/poznote/README.md +++ b/apps/poznote/README.md @@ -11,7 +11,7 @@ Once both are done, choose **Done** on the app's page so anyone you share the ad Choose **New note** and pick rich text or Markdown. Group notes in folders and tags, and use separate workspaces for things like work and home. To write with family or a team, create an account for each person under **Admin Tools → User Management**, then share a workspace with them from **Settings → Workspaces**. -Outbound mail ports are blocked on Cottage, so reminder and shared workspace emails can't be sent. Leave the SMTP settings empty. +For reminder and shared workspace emails, enter your mail provider's SMTP details in Poznote's settings (port 587 or 465; port 25 is blocked on Cottage). Leave them empty to keep mail off. ## Export your data diff --git a/apps/poznote/template.yml b/apps/poznote/template.yml index a81dd2d..c86f450 100644 --- a/apps/poznote/template.yml +++ b/apps/poznote/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: poznote name: Poznote description: Self-hosted note-taking and documentation platform. - version: "6.156.1-c1" + version: "6.156.1-c2" primary: { service: app, port: 8080 } health_path: /api/health default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } diff --git a/apps/privatebin/template.yml b/apps/privatebin/template.yml index 43730d3..d41014c 100644 --- a/apps/privatebin/template.yml +++ b/apps/privatebin/template.yml @@ -3,9 +3,9 @@ x-harbor: slug: privatebin name: PrivateBin description: A minimalist pastebin that can't read your pastes. - version: "2.1.1-c1" + version: "2.1.1-c2" primary: { service: app, port: 8080 } - health_path: / + health_path: /robots.txt default_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 5120 } min_resources: { cpu_millis: 100, memory_mb: 64, storage_mb: 1024 } volumes: diff --git a/apps/pwpush/README.md b/apps/pwpush/README.md index 4613100..012da7a 100644 --- a/apps/pwpush/README.md +++ b/apps/pwpush/README.md @@ -8,7 +8,7 @@ New sign-ups are off, and only signed-in people can create pushes. Anyone you se 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. +Password Pusher on Cottage doesn't send password reset emails. Keep your password somewhere safe. ## Export your data diff --git a/apps/pwpush/template.yml b/apps/pwpush/template.yml index 59b4cd2..8333c0e 100644 --- a/apps/pwpush/template.yml +++ b/apps/pwpush/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: pwpush name: Password Pusher description: Share secrets with links that expire after views or time. - version: "2.17.4-c1" + version: "2.17.4-c2" primary: { service: app, port: 5100 } health_path: /up default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } diff --git a/apps/pydio-cells/README.md b/apps/pydio-cells/README.md index e3acfe2..5d290fd 100644 --- a/apps/pydio-cells/README.md +++ b/apps/pydio-cells/README.md @@ -1,6 +1,6 @@ ## First login -Sign in as `admin` with the **Admin password** from the app's Overview tab. Add people under **Cells Console → Identity Management → People**, and give them a password there; outgoing mail ports are blocked on Cottage, so Cells can't email invitations or password resets. +Sign in as `admin` with the **Admin password** from the app's Overview tab. Add people under **Cells Console → Identity Management → People**, and give them a password there. To email invitations and password resets, set up your mail provider in the **Cells Console** mailer settings. ## Workspaces and sharing diff --git a/apps/pydio-cells/template.yml b/apps/pydio-cells/template.yml index a096eb5..a40a722 100644 --- a/apps/pydio-cells/template.yml +++ b/apps/pydio-cells/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: pydio-cells name: Pydio Cells description: File sharing and collaboration platform. - version: "5.1.1-c1" + version: "5.1.1-c2" primary: { service: app, port: 8080 } health_path: /a/frontend/bootconf default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 20480 } diff --git a/apps/readeck/README.md b/apps/readeck/README.md index f931198..438f706 100644 --- a/apps/readeck/README.md +++ b/apps/readeck/README.md @@ -2,7 +2,7 @@ Sign in as `admin` with the **Admin password** from the app's Overview tab. You can change it, and add an email address, under **Profile**. -To give someone else an account, open **Settings → Users** and choose **Add a new user**. Outbound mail ports are blocked on Cottage, so set their password yourself rather than relying on emails. +To give someone else an account, open **Settings → Users** and choose **Add a new user**, and set their password yourself. To send articles by email, fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). ## Save your first pages diff --git a/apps/readeck/template.yml b/apps/readeck/template.yml index c9f07b2..fe1e1ac 100644 --- a/apps/readeck/template.yml +++ b/apps/readeck/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: readeck name: Readeck description: Read-it-later app that keeps the content of the pages you save. - version: "0.23.6-c1" + version: "0.23.6-c2" primary: { service: app, port: 8000 } health_path: /api/info default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } @@ -12,6 +12,12 @@ x-harbor: data: { uid: 1000, gid: 1000, mode: "0750" } parameters: - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -20,6 +26,14 @@ services: environment: READECK_SERVER_PORT: "8000" ADMIN_PASSWORD: ${ADMIN_PASSWORD} + # Mail through the owner's provider; empty settings are ignored, so mail is off + # while no SMTP server is set. + READECK_MAIL_HOST: ${SMTP_HOST} + READECK_MAIL_PORT: ${SMTP_PORT} + READECK_MAIL_USERNAME: ${SMTP_USER} + READECK_MAIL_PASSWORD: ${SMTP_PASSWORD} + READECK_MAIL_FROM: ${SMTP_FROM:-${SMTP_USER}} + READECK_MAIL_ENCRYPTION: ${SMTP_SECURITY_IS_STARTTLS:+starttls}${SMTP_SECURITY_IS_TLS:+ssltls}${SMTP_SECURITY_IS_NONE:+none} # On the very first start (no database yet), create the admin account with # the generated password; later starts leave accounts alone. entrypoint: [ "/bin/sh", "-c" ] diff --git a/apps/rocket-chat/README.md b/apps/rocket-chat/README.md index e589dbd..ae57b9f 100644 --- a/apps/rocket-chat/README.md +++ b/apps/rocket-chat/README.md @@ -8,7 +8,7 @@ Rocket.Chat may offer to register your workspace with Rocket.Chat Cloud. That's Open registration is off. Add people under **Administration → Users → New user**, giving each a username and starting password, or set **Registration form** to **Public** under **Administration → Settings → Accounts → Registration** to let anyone with the address sign up. -Outbound mail ports are blocked on Cottage, so Rocket.Chat can't send invitation, password reset or notification emails. Desktop and mobile notifications still work. +To send invitation, password reset and notification emails, enter your mail provider's SMTP details under **Administration → Workspace → Settings → Email → SMTP** (port 587 or 465; port 25 is blocked on Cottage). Desktop and mobile notifications work either way. ## Apps diff --git a/apps/rocket-chat/template.yml b/apps/rocket-chat/template.yml index 9010df1..0ada5a1 100644 --- a/apps/rocket-chat/template.yml +++ b/apps/rocket-chat/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: rocket-chat name: Rocket.Chat description: Team chat with channels, threads and calls. - version: "9.0.0-c1" + version: "9.0.0-c2" primary: { service: app, port: 3000 } health_path: /api/info default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 10240 } @@ -32,7 +32,7 @@ services: ADMIN_EMAIL_VERIFIED: "true" OVERWRITE_SETTING_Show_Setup_Wizard: completed # Starting values only (the admin can change them later): no open sign-ups, - # and no sign-in codes by email, which Cottage can't send. + # and no sign-in codes by email until a mail server is set up. Accounts_RegistrationForm: Disabled Accounts_TwoFactorAuthentication_By_Email_Enabled: "false" Accounts_TwoFactorAuthentication_By_Email_Auto_Opt_In: "false" diff --git a/apps/roundcube/README.md b/apps/roundcube/README.md index d9e4173..f2cd2c5 100644 --- a/apps/roundcube/README.md +++ b/apps/roundcube/README.md @@ -8,7 +8,7 @@ Open the app and sign in with your mailbox's email address and password. Many pr ## Sending mail -Outbound mail ports 465 and 587 are blocked on Cottage, so with most providers Roundcube can read, search and organise mail but can't send it. If your provider also accepts mail submission on another port (some offer `2525`), set **SMTP server** and **SMTP port** to match, and sending will work. +To send mail, set **SMTP server** in the app's **Email** settings to your provider's SMTP address (for example `smtp.fastmail.com`, without `tls://`), and leave **SMTP port** at `587` with **Connection security** on STARTTLS, or use `465` with TLS. Roundcube signs in to it with the same mailbox login you use for reading mail. Leave out any `tls://` or `ssl://` prefix: **Connection security** adds it. ## Export your data diff --git a/apps/roundcube/cottage.yml b/apps/roundcube/cottage.yml index 58dad5d..942a03a 100644 --- a/apps/roundcube/cottage.yml +++ b/apps/roundcube/cottage.yml @@ -4,8 +4,8 @@ category: Communication description: >- A full-featured webmail client for a mailbox you already have. Read, search and file your mail in a clean interface, with folders, contacts, identities - and keyboard shortcuts. Sending needs your provider to accept mail on a port - other than 465 or 587, which Cottage blocks. + and keyboard shortcuts. Sends through your provider's SMTP server with the + same login. upstream: https://github.com/roundcube/roundcubemail website: https://roundcube.net license: GPL-3.0-or-later diff --git a/apps/roundcube/template.yml b/apps/roundcube/template.yml index c78e086..fb0cdb5 100644 --- a/apps/roundcube/template.yml +++ b/apps/roundcube/template.yml @@ -4,9 +4,9 @@ x-harbor: slug: roundcube name: Roundcube description: Webmail client for your existing IMAP mailbox. - version: "1.7.6-c1" + version: "1.7.6-c2" primary: { service: app, port: 8000 } - health_path: / + health_path: /static.php/skins/elastic/images/favicon.ico default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } min_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 1024 } volumes: @@ -15,10 +15,11 @@ x-harbor: - { key: DES_KEY, label: Session encryption key, type: string, secret: true, generate: random32 } - { key: IMAP_HOST, label: IMAP server (ssl:// for port 993), type: string, default: "ssl://imap.example.com", editable: true } - { key: IMAP_PORT, label: IMAP port, type: string, default: "993", editable: true } - # Ports 465 and 587 are blocked on Cottage, so sending works only if the mail - # provider also accepts submission on another port (some offer 2525). - - { key: SMTP_HOST, label: SMTP server (tls:// for STARTTLS), type: string, default: "tls://smtp.example.com", editable: true } - - { key: SMTP_PORT, label: SMTP port, type: string, default: "587", editable: true } + # Roundcube sends as the signed-in mailbox, with its login, so it has no username, + # password or From fields. + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your provider's SMTP server, e.g. smtp.fastmail.com, without tls:// or ssl://. Roundcube signs in with your mailbox login." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -28,7 +29,7 @@ services: ROUNDCUBEMAIL_DES_KEY: ${DES_KEY} ROUNDCUBEMAIL_DEFAULT_HOST: ${IMAP_HOST} ROUNDCUBEMAIL_DEFAULT_PORT: ${IMAP_PORT} - ROUNDCUBEMAIL_SMTP_SERVER: ${SMTP_HOST} + ROUNDCUBEMAIL_SMTP_SERVER: ${SMTP_SECURITY_IS_TLS:+ssl://}${SMTP_SECURITY_IS_STARTTLS:+tls://}${SMTP_HOST} ROUNDCUBEMAIL_SMTP_PORT: ${SMTP_PORT} ROUNDCUBEMAIL_DB_TYPE: sqlite ROUNDCUBEMAIL_PLUGINS: archive,zipdownload,markasjunk,newmail_notifier diff --git a/apps/rsshub/template.yml b/apps/rsshub/template.yml index 3f3b11d..fa1f51f 100644 --- a/apps/rsshub/template.yml +++ b/apps/rsshub/template.yml @@ -3,9 +3,9 @@ x-harbor: slug: rsshub name: RSSHub description: Open-source RSS feed generator for thousands of sites. - version: "2026.11.21-c1" # upstream 2026-11-21 + version: "2026.11.21-c2" # upstream 2026-11-21 primary: { service: app, port: 1200 } - health_path: / + health_path: /favicon.ico default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } min_resources: { cpu_millis: 250, memory_mb: 384, storage_mb: 1024 } parameters: diff --git a/apps/serpbear/README.md b/apps/serpbear/README.md index bf29444..2776bbc 100644 --- a/apps/serpbear/README.md +++ b/apps/serpbear/README.md @@ -8,7 +8,7 @@ SerpBear doesn't query Google itself: it sends each rank check through a scrapin Then choose **+ Add Domain** and add the keywords you want to follow. SerpBear checks them once a day, and you can refresh any keyword by hand. -Outgoing mail ports are blocked on Cottage, so the daily email summary can't be sent. The dashboard always has the latest positions. +To get the daily email summary, enter your mail provider's SMTP details in SerpBear's **Settings** (port 587 or 465; port 25 is blocked on Cottage). The dashboard always has the latest positions. ## Export your data diff --git a/apps/serpbear/template.yml b/apps/serpbear/template.yml index b90961c..6a4ef57 100644 --- a/apps/serpbear/template.yml +++ b/apps/serpbear/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: serpbear name: SerpBear description: Track where your sites rank on Google for the keywords you care about. - version: "3.1.2-c1" + version: "3.1.2-c2" primary: { service: app, port: 3000 } health_path: /login default_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 5120 } diff --git a/apps/slink/README.md b/apps/slink/README.md index c38887a..b183a94 100644 --- a/apps/slink/README.md +++ b/apps/slink/README.md @@ -8,7 +8,7 @@ Drag images onto the upload page, then copy the link Slink gives you. From an im ## 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. +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. Slink doesn't send email, so password resets go through you. ## Export your data diff --git a/apps/slink/template.yml b/apps/slink/template.yml index 607f979..f179fad 100644 --- a/apps/slink/template.yml +++ b/apps/slink/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: slink name: Slink description: Self-hosted image sharing platform. - version: "1.14.6-c1" + version: "1.14.6-c2" primary: { service: app, port: 3000 } health_path: /api/health default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 20480 } @@ -26,7 +26,7 @@ services: 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. + # placeholder (Slink sends no mail) and can be changed in the profile. ADMIN_EMAIL: admin@example.com ADMIN_PASSWORD: ${ADMIN_PASSWORD} USER_ALLOW_REGISTRATION: ${USER_ALLOW_REGISTRATION} diff --git a/apps/snipe-it/README.md b/apps/snipe-it/README.md index 383be0b..9ebb05c 100644 --- a/apps/snipe-it/README.md +++ b/apps/snipe-it/README.md @@ -2,7 +2,7 @@ While Cottage keeps the app private to you, open it and follow the setup page. After the pre-flight check, choose **Next: Create database tables**, then **Next: Create user** and fill in your site name, email and an admin username and password. When you reach the dashboard, come back to the app's page in Cottage and choose **Done** so your team can reach it. -Nobody can sign up on their own. Add people under **People → Create new**, and give them a password yourself: outgoing mail is blocked on Cottage, so Snipe-IT can't send welcome or password-reset emails, or alerts for expiring licences. +Nobody can sign up on their own. Add people under **People → Create new**, and give them a password yourself. Snipe-IT sends welcome and password-reset emails, and alerts for expiring licences, once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). ## Add your first assets diff --git a/apps/snipe-it/template.yml b/apps/snipe-it/template.yml index 306bc80..444b702 100644 --- a/apps/snipe-it/template.yml +++ b/apps/snipe-it/template.yml @@ -8,7 +8,7 @@ x-harbor: slug: snipe-it name: Snipe-IT description: Track your organisation's hardware, software and licences. - version: "8.8.4-c1" + version: "8.8.4-c2" primary: { service: app, port: 8080 } health_path: /health default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 10240 } @@ -22,6 +22,11 @@ x-harbor: - { key: APP_KEY, label: Encryption key, type: string, secret: true, generate: hex32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } - { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS: Snipe-IT picks the security from the port." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } services: app: @@ -42,9 +47,13 @@ services: DB_DATABASE: snipeit DB_USERNAME: snipeit DB_PASSWORD: ${DB_PASSWORD} - # Outgoing mail is blocked on Cottage; keep mail in the log instead. - MAIL_MAILER: log - MAIL_FROM_ADDR: snipe-it@${HARBOR_HOSTNAME} + # Mail through the owner's provider; without an SMTP server it goes to the log. + MAIL_MAILER: ${SMTP_HOST_IS_EMPTY:+log}${SMTP_HOST:+smtp} + MAIL_HOST: ${SMTP_HOST} + MAIL_PORT: ${SMTP_PORT} + MAIL_USERNAME: ${SMTP_USER} + MAIL_PASSWORD: ${SMTP_PASSWORD} + MAIL_FROM_ADDR: ${SMTP_FROM:-snipe-it@${HARBOR_HOSTNAME}} MAIL_FROM_NAME: Snipe-IT entrypoint: [ "/bin/bash", "-c" ] command: diff --git a/apps/storyteller/README.md b/apps/storyteller/README.md index 50464b9..5e6eb60 100644 --- a/apps/storyteller/README.md +++ b/apps/storyteller/README.md @@ -10,7 +10,7 @@ When it's done, download the synced EPUB or open it in the Storyteller app. ## Readers and apps -Invite readers under **Users**, choosing what each one may do. Outbound mail ports are blocked on Cottage, so the invite email won't arrive: copy the invite link shown in the list and send it yourself. +Invite readers under **Users**, choosing what each one may do, then copy the invite link shown in the list and send it yourself. To have Storyteller email invites, enter your mail provider's SMTP details in Storyteller's **Settings**. The Storyteller apps for iOS and Android ask for a server address: enter your app's full address, starting with `https://`. diff --git a/apps/storyteller/template.yml b/apps/storyteller/template.yml index b46c0c8..73640bb 100644 --- a/apps/storyteller/template.yml +++ b/apps/storyteller/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: storyteller name: Storyteller description: Self-hosted platform for synced audiobooks and ebooks. - version: "2.14.23-c1" + version: "2.14.23-c2" primary: { service: app, port: 8001 } health_path: /api/health default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 20480 } diff --git a/apps/sure/README.md b/apps/sure/README.md index dfb802b..7f4d290 100644 --- a/apps/sure/README.md +++ b/apps/sure/README.md @@ -4,7 +4,7 @@ Sign-ups are open until you close them, so until you've finished setup only you Then close sign-ups straight away: open **Settings → Self-Hosting** and set **Onboarding** to **Closed**, or to **Invite-only** if you'd like to hand out invite codes. Finally choose **Done** on the app's page so anyone you share the address with can reach it. -Outgoing mail ports are blocked on Cottage, so Sure can't send password resets or invitation emails. To add someone to your household, invite them under **Settings → Profile Info**, copy the invitation link and send it yourself. +Sure sends password resets once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). To add someone to your household, invite them under **Settings → Profile Info**, copy the invitation link and send it yourself. ## Get started diff --git a/apps/sure/template.yml b/apps/sure/template.yml index 515aa70..aec655e 100644 --- a/apps/sure/template.yml +++ b/apps/sure/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: sure name: Sure description: Personal finance app for budgets, accounts and net worth. - version: "0.7.6.2-c1" + version: "0.7.6.2-c2" primary: { service: app, port: 3000 } health_path: /up default_resources: { cpu_millis: 1000, memory_mb: 1536, storage_mb: 5120 } @@ -17,6 +17,12 @@ x-harbor: parameters: - { key: SECRET_KEY_BASE, label: Session secret, type: string, secret: true, generate: random32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } x-sure-env: &sure_env SELF_HOSTED: "true" @@ -31,8 +37,17 @@ x-sure-env: &sure_env POSTGRES_DB: sure POSTGRES_PASSWORD: ${DB_PASSWORD} REDIS_URL: redis://redis:6379/1 - # Outgoing mail is blocked, so changing an email address mustn't wait for a confirmation email. + # Changing an email address doesn't wait for a confirmation email, so nobody is + # stuck while mail isn't set up. REQUIRE_EMAIL_CONFIRMATION: "false" + # Mail through the owner's provider; with no SMTP server, sending just fails quietly. + SMTP_ADDRESS: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USERNAME: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + # true is TLS from the start; otherwise STARTTLS when the server offers it. + SMTP_TLS_ENABLED: ${SMTP_SECURITY_IS_TLS:-false} + EMAIL_SENDER: ${SMTP_FROM:-sender@sure.local} services: app: diff --git a/apps/thelounge/template.yml b/apps/thelounge/template.yml index 45e9ec8..0ec264f 100644 --- a/apps/thelounge/template.yml +++ b/apps/thelounge/template.yml @@ -3,9 +3,9 @@ x-harbor: slug: thelounge name: The Lounge description: Always-connected web IRC client. - version: "4.5.2-c1" + version: "4.5.2-c2" primary: { service: app, port: 9000 } - health_path: / + health_path: /robots.txt default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } min_resources: { cpu_millis: 100, memory_mb: 128, storage_mb: 1024 } volumes: diff --git a/apps/traggo/template.yml b/apps/traggo/template.yml index a84c6f6..9ed364c 100644 --- a/apps/traggo/template.yml +++ b/apps/traggo/template.yml @@ -3,9 +3,9 @@ x-harbor: slug: traggo name: Traggo description: Tag-based time tracking. - version: "0.8.3-c1" + version: "0.8.3-c2" primary: { service: app, port: 3030 } - health_path: / + health_path: /manifest.json default_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 5120 } min_resources: { cpu_millis: 250, memory_mb: 64, storage_mb: 1024 } volumes: diff --git a/apps/tt-rss/README.md b/apps/tt-rss/README.md index 932d767..b837013 100644 --- a/apps/tt-rss/README.md +++ b/apps/tt-rss/README.md @@ -2,7 +2,7 @@ Sign in as `admin` with the **Admin password** from the app's Overview tab. You can change it under **Preferences → Personal data / Authentication → Change password**. -To give someone else an account, open **Preferences → Users** and choose **Create user**. Outbound mail ports are blocked on Cottage, so email digests and password reset emails won't be sent. +To give someone else an account, open **Preferences → Users** and choose **Create user**. Tiny Tiny RSS on Cottage doesn't send email digests or password reset emails. ## Add your feeds diff --git a/apps/tt-rss/template.yml b/apps/tt-rss/template.yml index 8a742dd..7f6fc37 100644 --- a/apps/tt-rss/template.yml +++ b/apps/tt-rss/template.yml @@ -6,7 +6,7 @@ x-harbor: slug: tt-rss name: Tiny Tiny RSS description: Web-based news feed reader and aggregator. - version: "20261121.201339-c1" # upstream 20261121-201339 + version: "20261121.201339-c2" # upstream 20261121-201339 primary: { service: web, port: 8080 } health_path: /healthz default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } diff --git a/apps/tududi/README.md b/apps/tududi/README.md index 6dda0de..58599c9 100644 --- a/apps/tududi/README.md +++ b/apps/tududi/README.md @@ -2,7 +2,7 @@ Sign in with the **Admin email** and **Admin password** from the app's Overview tab. Change the email and password under your profile once you're in. The account is an admin, so you can add other people from **Admin → Users → Add user**. -Outbound mail ports are blocked on Cottage, so tududi can't send invitations or password resets by email. Set each person's password when you add them and share it with them yourself. +tududi sends invitations and password resets by email once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). Until then, set each person's password when you add them and share it with them yourself. ## Getting organised diff --git a/apps/tududi/template.yml b/apps/tududi/template.yml index 7807051..1b850b3 100644 --- a/apps/tududi/template.yml +++ b/apps/tududi/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: tududi name: tududi description: Self-hosted task and project manager. - version: "2.1.1-c1" + version: "2.1.1-c2" primary: { service: app, port: 3002 } health_path: /api/health default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } @@ -18,6 +18,12 @@ x-harbor: - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random16 } - { key: SESSION_SECRET, label: Session secret, type: string, secret: true, generate: hex32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -39,7 +45,15 @@ services: # Created as an admin on first start; later starts leave its password alone. TUDUDI_USER_EMAIL: ${ADMIN_EMAIL} TUDUDI_USER_PASSWORD: ${ADMIN_PASSWORD} - ENABLE_EMAIL: "false" + # Mail through the owner's provider; off while no SMTP server is set. + ENABLE_EMAIL: ${SMTP_HOST:+true} + EMAIL_SMTP_HOST: ${SMTP_HOST} + EMAIL_SMTP_PORT: ${SMTP_PORT} + EMAIL_SMTP_USERNAME: ${SMTP_USER} + EMAIL_SMTP_PASSWORD: ${SMTP_PASSWORD} + EMAIL_FROM_ADDRESS: ${SMTP_FROM:-${SMTP_USER}} + # true is TLS from the start; otherwise STARTTLS when the server offers it. + EMAIL_SMTP_SECURE: ${SMTP_SECURITY_IS_TLS:-false} volumes: - uploads:/app/uploads - backups:/app/backups diff --git a/apps/twenty/README.md b/apps/twenty/README.md index 6b50df9..f998da1 100644 --- a/apps/twenty/README.md +++ b/apps/twenty/README.md @@ -2,7 +2,7 @@ Twenty takes a minute or two to set up its database the first time. While Cottage keeps the app private to you, open it and choose **Continue with email**: the first account you create becomes the admin, and you name your workspace. Then come back to the app's page in the dashboard and choose **Done** so your team can reach it. -Nobody can join without an invitation. Under **Settings → Members**, copy the invite link and share it with your teammates yourself: outgoing mail is blocked on Cottage, so Twenty can't email invitations or password resets. +Nobody can join without an invitation. Under **Settings → Members**, copy the invite link and share it with your teammates yourself. Twenty emails invitations and password resets once you fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). ## Bring in your contacts diff --git a/apps/twenty/template.yml b/apps/twenty/template.yml index 327e844..f9ddfcf 100644 --- a/apps/twenty/template.yml +++ b/apps/twenty/template.yml @@ -5,7 +5,7 @@ x-harbor: slug: twenty name: Twenty description: A modern, open-source CRM. - version: "2.59.0-c1" + version: "2.59.0-c2" primary: { service: server, port: 3000 } health_path: /healthz default_resources: { cpu_millis: 1000, memory_mb: 3072, storage_mb: 10240 } @@ -19,6 +19,11 @@ x-harbor: - { key: APP_SECRET, label: Session signing secret, type: string, secret: true, generate: random32 } - { key: ENCRYPTION_KEY, label: Encryption key for stored secrets, type: string, secret: true, generate: random32 } - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 (STARTTLS when the server offers it). Twenty can't use TLS on port 465." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } x-twenty-env: &twenty-env PG_DATABASE_URL: postgres://twenty:${DB_PASSWORD}@db:5432/twenty @@ -30,8 +35,15 @@ x-twenty-env: &twenty-env # One workspace per app; only a server admin can create more. IS_MULTIWORKSPACE_ENABLED: "false" IS_WORKSPACE_CREATION_LIMITED_TO_SERVER_ADMINS: "true" - # Outgoing mail is blocked on Cottage, so never wait for a verification email. + # Never wait for a verification email, so nobody is stuck while mail isn't set up. IS_EMAIL_VERIFICATION_REQUIRED: "false" + # Mail through the owner's provider; logged only while no SMTP server is set. + EMAIL_DRIVER: ${SMTP_HOST_IS_EMPTY:+logger}${SMTP_HOST:+smtp} + EMAIL_SMTP_HOST: ${SMTP_HOST} + EMAIL_SMTP_PORT: ${SMTP_PORT} + EMAIL_SMTP_USER: ${SMTP_USER} + EMAIL_SMTP_PASSWORD: ${SMTP_PASSWORD} + EMAIL_FROM_ADDRESS: ${SMTP_FROM:-${SMTP_USER}} TELEMETRY_ENABLED: "false" services: diff --git a/apps/uptime-kuma/README.md b/apps/uptime-kuma/README.md index 9807aac..e1c6e61 100644 --- a/apps/uptime-kuma/README.md +++ b/apps/uptime-kuma/README.md @@ -6,7 +6,7 @@ The first visit asks you to create the admin account, so until you've done that Choose **Add New Monitor**, pick a type (HTTP is the usual one), and paste the address to watch. Under **Settings → Notifications** you can add email, ntfy, Slack and many others. -Outbound mail ports are blocked on Cottage. For email alerts, use a provider with an HTTPS API, or a push service such as ntfy. +For email alerts, add an **Email (SMTP)** notification with your mail provider's SMTP server on port 587 or 465 (port 25 is blocked on Cottage), or use a push service such as ntfy. ## Export your data diff --git a/apps/uptime-kuma/template.yml b/apps/uptime-kuma/template.yml index 1cdbd4b..77ec576 100644 --- a/apps/uptime-kuma/template.yml +++ b/apps/uptime-kuma/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: uptime-kuma name: Uptime Kuma description: Self-hosted uptime monitoring. - version: "1.23.16-c2" + version: "1.23.16-c3" primary: { service: app, port: 3001 } health_path: /api/entry-page default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } diff --git a/apps/vaultwarden/template.yml b/apps/vaultwarden/template.yml index aa7723d..2e4cc38 100644 --- a/apps/vaultwarden/template.yml +++ b/apps/vaultwarden/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: vaultwarden name: Vaultwarden description: Bitwarden-compatible password manager. - version: "1.34.3-c1" + version: "1.34.3-c2" primary: { service: app, port: 8080 } health_path: /alive default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } @@ -13,6 +13,12 @@ x-harbor: parameters: - { key: ADMIN_TOKEN, label: Admin page token, type: string, secret: true, generate: random32 } - { key: SIGNUPS_ALLOWED, label: Allow anyone to sign up, type: bool, default: "false", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -25,6 +31,16 @@ services: SIGNUPS_ALLOWED: ${SIGNUPS_ALLOWED} # With mail off, an invited address can register directly from the sign-up page. INVITATIONS_ALLOWED: "true" + # Mail through the owner's provider. Vaultwarden counts an empty SMTP_HOST as + # set, so _ENABLE_SMTP turns mail off, and SMTP_FROM always has a value + # because Vaultwarden won't start with a host but no sender. + _ENABLE_SMTP: ${SMTP_HOST_IS_EMPTY:+false}${SMTP_HOST:+true} + SMTP_HOST: ${SMTP_HOST} + SMTP_PORT: ${SMTP_PORT} + SMTP_USERNAME: ${SMTP_USER} + SMTP_PASSWORD: ${SMTP_PASSWORD} + SMTP_FROM: ${SMTP_FROM:-vaultwarden@${HARBOR_HOSTNAME}} + SMTP_SECURITY: ${SMTP_SECURITY_IS_STARTTLS:+starttls}${SMTP_SECURITY_IS_TLS:+force_tls}${SMTP_SECURITY_IS_NONE:+off} volumes: [ "data:/data" ] volumes: diff --git a/apps/vikunja/README.md b/apps/vikunja/README.md index 9f40ed4..2aa99ec 100644 --- a/apps/vikunja/README.md +++ b/apps/vikunja/README.md @@ -10,7 +10,7 @@ Vikunja has no separate admin account, and sign-ups are open until you turn them Create a project, add a few tasks, then switch its view between **List**, **Kanban**, **Gantt** and **Table**. To work with someone else, open the project's **Share** menu and add them by username. Under **Settings → Import from other services** you can bring in tasks from Todoist, Trello or Microsoft To Do. -Outbound mail ports are blocked on Cottage, so reminders show up in the app and in your calendar feed (**Settings → CalDAV**) rather than by email. +Reminders show up in the app and in your calendar feed (**Settings → CalDAV**). To get them by email, fill in the **Email** settings for the app in your Cottage dashboard with your mail provider's details ([how](https://cottage.host/docs/email)). With email on, people who sign up confirm their address before they can sign in. ## Export your data diff --git a/apps/vikunja/template.yml b/apps/vikunja/template.yml index 6e8f5ed..f8fd7fe 100644 --- a/apps/vikunja/template.yml +++ b/apps/vikunja/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: vikunja name: Vikunja description: Self-hosted to-do lists and project boards. - version: "2.8.0-c1" + version: "2.8.0-c2" primary: { service: app, port: 3456 } health_path: /health default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } @@ -14,6 +14,12 @@ x-harbor: parameters: - { key: SERVICE_SECRET, label: Token signing secret, type: string, secret: true, generate: random32 } - { key: ENABLE_REGISTRATION, label: Allow anyone to sign up, type: bool, default: "true", editable: true } + - { key: SMTP_HOST, label: SMTP server, type: string, editable: true, group: email, hint: "Your mail provider's SMTP server, e.g. smtp.fastmail.com. Leave empty to turn mail off." } + - { key: SMTP_PORT, label: SMTP port, type: int, default: "587", editable: true, group: email, hint: "587 for STARTTLS, 465 for TLS." } + - { key: SMTP_USER, label: SMTP username, type: string, editable: true, group: email } + - { key: SMTP_PASSWORD, label: SMTP password, type: string, secret: true, editable: true, group: email } + - { key: SMTP_FROM, label: Send as, type: string, editable: true, group: email, hint: "The address mail is sent from. Your provider must allow it." } + - { key: SMTP_SECURITY, label: Connection security, type: choice, choices: [starttls, tls, none], default: starttls, editable: true, group: email } services: app: @@ -26,6 +32,16 @@ services: VIKUNJA_DATABASE_TYPE: sqlite VIKUNJA_DATABASE_PATH: /db/vikunja.db VIKUNJA_FILES_BASEPATH: /app/vikunja/files + # Mail through the owner's provider; off while no SMTP server is set. With mail + # on, new accounts confirm their email address before signing in. + VIKUNJA_MAILER_ENABLED: ${SMTP_HOST:+true} + VIKUNJA_MAILER_HOST: ${SMTP_HOST} + VIKUNJA_MAILER_PORT: ${SMTP_PORT} + VIKUNJA_MAILER_USERNAME: ${SMTP_USER} + VIKUNJA_MAILER_PASSWORD: ${SMTP_PASSWORD} + VIKUNJA_MAILER_FROMEMAIL: ${SMTP_FROM:-${SMTP_USER}} + # true is TLS from the start; otherwise STARTTLS when the server offers it. + VIKUNJA_MAILER_FORCESSL: ${SMTP_SECURITY_IS_TLS:-false} volumes: - db:/db - files:/app/vikunja/files diff --git a/apps/wallabag/README.md b/apps/wallabag/README.md index a5781dd..2504c3a 100644 --- a/apps/wallabag/README.md +++ b/apps/wallabag/README.md @@ -2,7 +2,7 @@ Sign in as `wallabag` with the **Admin password** from the app's Overview tab. You can change your details and password under **Config → User information** and **Config → Password**. -Sign-ups are off. To add people, open **Users management** and choose **Create a new user**. Outbound mail ports are blocked on Cottage, so password reset emails can't be sent; an admin can set a new password there instead. +Sign-ups are off. To add people, open **Users management** and choose **Create a new user**. wallabag on Cottage doesn't send password reset emails; an admin can set a new password there instead. ## Save your first articles diff --git a/apps/wallabag/template.yml b/apps/wallabag/template.yml index b904e0a..c8cab63 100644 --- a/apps/wallabag/template.yml +++ b/apps/wallabag/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: wallabag name: wallabag description: Self-hosted read-it-later application. - version: "2.6.18-c1" + version: "2.6.18-c2" primary: { service: app, port: 8080 } health_path: /api/info default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } diff --git a/apps/wekan/README.md b/apps/wekan/README.md index 69e1c02..5fbcffd 100644 --- a/apps/wekan/README.md +++ b/apps/wekan/README.md @@ -6,7 +6,7 @@ The first account registered on WeKan becomes its admin, so until you've finishe 2. To stop strangers signing up, open **Admin Panel → People** and untick **Self-Registration**. You can add people from the same page, or switch it back on while your team registers. 3. Choose **Done** on the app's page so anyone you share the address with can reach it. -Outbound mail ports are blocked on Cottage, so WeKan can't email invitations, notifications or password resets. As admin you can set a member's password from **Admin Panel → People**. +To send invitations, notifications and password resets, enter your mail provider's SMTP details in the **Admin Panel**'s email settings (port 587 or 465; port 25 is blocked on Cottage). As admin you can always set a member's password from **Admin Panel → People**. ## Your first board diff --git a/apps/wekan/template.yml b/apps/wekan/template.yml index 8595fbf..28adf96 100644 --- a/apps/wekan/template.yml +++ b/apps/wekan/template.yml @@ -4,7 +4,7 @@ x-harbor: slug: wekan name: WeKan description: Open-source kanban boards. - version: "13.27-c1" + version: "13.27-c2" primary: { service: app, port: 8080 } health_path: /sign-in default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } diff --git a/apps/wiki-js/README.md b/apps/wiki-js/README.md index e7bbdce..66f3589 100644 --- a/apps/wiki-js/README.md +++ b/apps/wiki-js/README.md @@ -8,7 +8,7 @@ Once you're in, open your profile to change that email to your own, and set a ne Choose **New Page**, pick a folder and an editor (the visual editor or Markdown), and start writing. Under **Administration → Site** set your wiki's title, and under **Groups** decide who can read and who can edit. -Outbound mail ports are blocked on Cottage, so the wiki can't send invitations or password resets by email. Create accounts for your team under **Administration → Users** and hand them their passwords yourself. +Create accounts for your team under **Administration → Users** and hand them their passwords yourself. To send invitations and password resets by email, enter your mail provider's SMTP details under **Administration → Mail**. ## Export your data diff --git a/apps/wiki-js/template.yml b/apps/wiki-js/template.yml index 973e171..999c2f1 100644 --- a/apps/wiki-js/template.yml +++ b/apps/wiki-js/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: wiki-js name: Wiki.js description: A modern, fast wiki with a visual and a Markdown editor. - version: "3.5.0-c1" + version: "3.5.0-c2" primary: { service: app, port: 3000 } health_path: /_live default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 5120 } diff --git a/apps/wordpress/README.md b/apps/wordpress/README.md index 331cb0e..1b733c0 100644 --- a/apps/wordpress/README.md +++ b/apps/wordpress/README.md @@ -2,7 +2,7 @@ The first visit runs the WordPress installer, which asks for your site's title and creates its admin account, so until you've done that only you can open the app. Open it from your Cottage dashboard, choose a language, fill in the form, then choose **Done** on the app's page so visitors can reach your site. -Sign in at `/wp-admin` on your app's address. Outgoing mail ports are blocked on Cottage, so WordPress can't send email: **Lost your password?** won't arrive, so keep your password somewhere safe. Another admin can set a new one for you under **Users**. +Sign in at `/wp-admin` on your app's address. WordPress can't send email until you add an SMTP plugin (such as WP Mail SMTP) and give it your mail provider's details, so until then **Lost your password?** won't arrive: keep your password somewhere safe. Another admin can set a new one for you under **Users**. ## Make it yours diff --git a/apps/wordpress/template.yml b/apps/wordpress/template.yml index fd88c73..18aa4fa 100644 --- a/apps/wordpress/template.yml +++ b/apps/wordpress/template.yml @@ -3,7 +3,7 @@ x-harbor: slug: wordpress name: WordPress description: Website and blog publishing software. - version: "7.1.5-c1" + version: "7.1.5-c2" primary: { service: app, port: 8080 } # A static file: every PHP page redirects to the installer until setup is done. health_path: /wp-includes/images/blank.gif diff --git a/docs/licensing.md b/docs/licensing.md index 398d796..de483f3 100644 --- a/docs/licensing.md +++ b/docs/licensing.md @@ -42,6 +42,22 @@ test; they are kept on the `deferred-file-access` branch as a starting point. | Komga | Comics and manga; reads library folders, no upload | | Homer | Dashboard; reads `config.yml` from its volume, no in-app editor | +## Possible now that apps can send mail + +Cottage now lets apps send mail through the owner's own provider (ports 465, 587 and 2525; port 25 +stays blocked). These apps were left out or held back only because they couldn't send mail, so they +can be reconsidered. None is in the catalog yet. + +| App | Why it waited | What a recipe needs | +| --- | --- | --- | +| Rallly | Accounts are created only through an emailed one-time code | Mail fields filled in before the owner's first sign-in | +| Fider | Sign-in is passwordless, by emailed link (or OAuth) | Mail fields filled in before the owner's first sign-in | +| Listmonk | Sends newsletters only over SMTP | Mail fields; the owner's provider must allow bulk sending | +| Mautic | Its main job is email campaigns, and its official image sends only over SMTP or sendmail | Mail fields; the owner's provider must allow bulk sending | + +Ghost's member sign-up and newsletters, and Roundcube's sending, also work once the owner adds their +provider's details. + | App | Upstream | Licence | Verdict | Conditions and notes | Source | | --- | --- | --- | --- | --- | --- | | Activepieces | [activepieces/activepieces](https://github.com/activepieces/activepieces) | MIT (+ commercial `ee/`) | Allowed with conditions | Community edition image only; no `ee/` licence-key features. | [licence](https://github.com/activepieces/activepieces/blob/main/LICENSE) | diff --git a/schema/cottage.schema.json b/schema/cottage.schema.json index 59abfd3..6959914 100644 --- a/schema/cottage.schema.json +++ b/schema/cottage.schema.json @@ -2,6 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cottage.host/schema/cottage.schema.json", "title": "Cottage listing (cottage.yml)", + "description": "Validates cottage.yml. $defs/parameter describes one entry of template.yml's x-harbor.parameters; CI checks every recipe against it.", "type": "object", "additionalProperties": false, "required": ["name", "tagline", "category", "description", "upstream", "license", "images"], @@ -25,5 +26,27 @@ }, "mobile_apps": { "type": "boolean" }, "first_visit_claims_admin": { "type": "boolean", "description": "The app's first visitor creates the admin account; the dashboard tells the owner to finish setup at once." } + }, + "$defs": { + "parameter": { + "title": "Recipe parameter (one entry of x-harbor.parameters in template.yml)", + "type": "object", "additionalProperties": false, + "required": ["key", "label", "type"], + "properties": { + "key": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{0,62}$", "description": "Variable name; the HARBOR_ prefix is reserved." }, + "label": { "type": "string", "minLength": 1, "maxLength": 60 }, + "type": { "enum": ["string", "int", "bool", "choice"] }, + "default": { "type": "string", "description": "Always a quoted string, e.g. \"587\"." }, + "required": { "type": "boolean" }, + "secret": { "type": "boolean", "description": "Shown masked in the dashboard." }, + "generate": { "enum": ["random16", "random32", "hex32"] }, + "choices": { "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^[a-z0-9_]+$" } }, + "editable": { "type": "boolean", "description": "The owner may change it after the app exists." }, + "group": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,31}$", "description": "Groups fields in the dashboard. Outgoing mail settings use \"email\"." }, + "hint": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[^\\n\\r]*$", "description": "One line of help text shown with the field." } + }, + "if": { "properties": { "type": { "const": "choice" } } }, + "then": { "required": ["choices"] } + } } } diff --git a/scripts/local-test-plan.py b/scripts/local-test-plan.py index ef0d456..f1fdb5c 100644 --- a/scripts/local-test-plan.py +++ b/scripts/local-test-plan.py @@ -43,6 +43,12 @@ for p in x.get("parameters") or []: env[p["key"]] = GEN[p["generate"]]() else: env[p["key"]] = str(p.get("default", "")) + # like Cottage's servers: _IS_=true for the selected choice only, + # and _IS_EMPTY=true for an empty parameter + if p.get("type") == "choice" and env[p["key"]]: + env[f'{p["key"]}_IS_{env[p["key"]].upper()}'] = "true" + if env[p["key"]] == "": + env[f'{p["key"]}_IS_EMPTY'] = "true" with open(os.path.join(work, "env"), "w") as f: for k, v in env.items(): f.write(f"{k}={json.dumps(v)}\n")