Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

Update the admin categories, packing templates, plugins and storage wiki pages

Maurice866b9e94af6c
diff --git a/wiki/Admin-Categories.md b/wiki/Admin-Categories.md
index 2235236d9..3098e9659 100644
--- a/wiki/Admin-Categories.md
+++ b/wiki/Admin-Categories.md
@@ -21,7 +21,7 @@ Click **New Category** (top right of the card). A dialog opens:
2. **Icon**: a grid of 47 curated Lucide icons (Pin, Hotel, Restaurant, Transport, Nature and so on). Click an icon to select it. The default icon is `MapPin`.
3. **Color**: 12 preset swatches plus **Choose custom color** (pipette button). The default color is `#6366f1` (indigo). The 12 presets are:
- `#6366f1` · `#8b5cf6` · `#ec4899` · `#ef4444` · `#f97316` · `#f59e0b` · `#10b981` · `#06b6d4` · `#3b82f6` · `#84cc16` · `#6b7280` · `#1f2937`
+ `#6366f1`, `#8b5cf6`, `#ec4899`, `#ef4444`, `#f97316`, `#f59e0b`, `#10b981`, `#06b6d4`, `#3b82f6`, `#84cc16`, `#6b7280`, `#1f2937`
4. **Preview**: a chip shows how the category will look to users as you make selections.
@@ -43,6 +43,10 @@ When a user adds a place from the search or from a map POI, TREK picks the match
Categories are always displayed in alphabetical order by name. There is no manual reordering.
+## On a phone
+
+The phone admin has the same card in its **Personalization** section, with the same create, edit and delete steps.
+
## Related pages
- [Places-and-Search](Places-and-Search)
diff --git a/wiki/Admin-Packing-Templates.md b/wiki/Admin-Packing-Templates.md
index 3171fbe93..df67e94aa 100644
--- a/wiki/Admin-Packing-Templates.md
+++ b/wiki/Admin-Packing-Templates.md
@@ -23,10 +23,10 @@ Templates are instance-wide. Besides the ones you build here, the list also show
The template list shows each template as a collapsible row displaying:
- Template name
-- Category count and item count (e.g., `3 categories · 12 items`)
+- Category count and item count (for example 3 categories and 12 items)
- Rename and delete buttons
-Inside an expanded template, an item shows its quantity, weight and bag next to its name when it has them (for example `2× · 300 g · Backpack`). These values come from the trip list the template was saved from; items you add here start with none of them.
+Inside an expanded template, an item shows its quantity, weight and bag next to its name when it has them (for example 2×, 300 g, Backpack). These values come from the trip list the template was saved from; items you add here start with none of them.
## Creating a template
@@ -52,9 +52,11 @@ All editing is inline:
## Deleting
-- **Delete a template**: click the trash icon on the template row. The template is removed at once, without a confirmation. This does not affect trips that already had items from this template applied.
-- **Delete a category**: click the trash icon in the category header. All items in that category are also deleted from the template.
-- **Delete an item**: hover the item row to reveal the trash icon.
+- **Delete a template**: click the trash icon on the template row and confirm (**Delete the template "{name}" with all its categories and items?**). This does not affect trips that already had items from this template applied.
+- **Delete a category**: click the trash icon in the category header. A category that still has items asks first (**Delete the category "{name}" and all its items?**) and removes the items with it; an empty category goes at once.
+- **Delete an item**: hover the item row to reveal the trash icon. It goes at once.
+
+The phone admin has the same card in its **Personalization** section.
## Applying templates to a trip
diff --git a/wiki/Admin-Plugins.md b/wiki/Admin-Plugins.md
index 6c5508d0b..985babbc9 100644
--- a/wiki/Admin-Plugins.md
+++ b/wiki/Admin-Plugins.md
@@ -8,7 +8,7 @@ Install, review, enable, update, and remove third-party plugins on your instance
Open the **Admin Panel** and select the **Plugins** tab (in the **Configuration** group of the side navigation). *Install and manage third-party plugins on your instance.*
-> **Admin:** This whole panel is admin-only. It also needs the plugin runtime turned on — otherwise you get *Plugins are disabled*: **The plugin runtime is turned off (`TREK_PLUGINS_ENABLED`). No plugin can run until an admin enables it in the server configuration.** When the runtime is on, a green **Runtime on** pill appears in the header.
+> **Admin:** This whole panel is admin-only. It also needs the plugin runtime turned on, otherwise you get *Plugins are disabled*: **The plugin runtime is turned off (`TREK_PLUGINS_ENABLED`). No plugin can run until an admin enables it in the server configuration.** When the runtime is on, a green **Runtime on** pill appears in the header.
For what plugins are and how users interact with them, see [Plugins](Plugins).
@@ -16,10 +16,10 @@ For what plugins are and how users interact with them, see [Plugins](Plugins).
A segmented switch at the top toggles between:
-- **Installed** — what is on this instance, with a count.
-- **Discover** — the community registry, browsable as cards.
+- **Installed**: what is on this instance, with a count.
+- **Discover**: the community registry, browsable as cards.
-Both views share a toolbar: a **Search plugins…** box, a **Type** filter (Widget / Page / Integration / Trip page), a **Sort** menu, an **Upload plugin** button, and a **Rescan** button. The **Installed** view adds a **Status** filter (Active / Off / Update available / Error).
+Both views share a toolbar: a **Search plugins…** box, a **Type** filter (Widget / Page / Integration / Trip page) and a **Sort** menu (**Name**, **Recently updated**, **Updates first** or **Most downloads**). The **Installed** view adds a **Status** filter (Active / Off / Update available / Error). In the head of the card, two icon buttons named by their tooltips, **Upload plugin** and **Rescan**, sit beside the **Runtime on** pill.
**Rescan** does two things: it rediscovers locally-installed plugins *and* force-pulls the registry, bypassing the 30-minute server cache and GitHub's CDN, so a just-published plugin shows up immediately instead of up to ~35 minutes later.
@@ -29,7 +29,7 @@ Both views share a toolbar: a **Search plugins…** box, a **Type** filter (Widg
2. Click a card to open the **pre-install review dialog** (see below).
3. Click **Install**.
-If the newest release does not support the TREK you are running — either it needs a newer one, or your TREK has outgrown the upper bound it declares (`>=3.2.0 <4.0.0` on TREK 4, say) — the button changes: when an older release still fits you get **Install {version}** for that one; when nothing fits, the button reads **Incompatible** and is disabled. Either way the dialog explains why in an amber note — it does not hide the reason behind a tooltip.
+If the newest release does not support the TREK you are running, the button changes. This happens when it needs a newer TREK, or when your TREK has outgrown the upper bound it declares (`>=3.2.0 <4.0.0` on TREK 4, say). Then: when an older release still fits you get **Install {version}** for that one; when nothing fits, the button reads **Incompatible** and is disabled. Either way the dialog explains why in an amber note; it does not hide the reason behind a tooltip.
A newly installed plugin is **off**. Nothing runs until you enable it.
@@ -37,38 +37,38 @@ A newly installed plugin is **off**. Nothing runs until you enable it.
Before installing, read these sections:
-- **What it can access** — a plain-language summary of what the plugin's permissions let it do ("Reads your trips", "Edits places", "Provides photos"), plus a line for its own isolated database. It is a summary, not the raw permission list: permissions TREK has no summary line for — `notify:send`, `ai:invoke`, `jobs:run`, `db:write:members` and others — do not appear here at all, and a plugin that asks only for those still reads *Needs no special access.* For the complete list, read the manifest in the plugin's source repository. Only the consent dialog for an update renders permissions code by code, unknown codes verbatim.
+- **What it can access**: a plain-language summary of what the plugin's permissions let it do ("Reads your trips", "Edits places", "Provides photos"), plus a line for its own isolated database. It is a summary, not the raw permission list: permissions TREK has no summary line for (`notify:send`, `ai:invoke`, `jobs:run`, `db:write:members` and others) do not appear here at all, and a plugin that asks only for those still reads *Needs no special access.* For the complete list, read the manifest in the plugin's source repository. Only the consent dialog for an update renders permissions code by code, unknown codes verbatim.
- **Map categories it adds**: for a plugin that asks for `hook:poi-category-provider`, each button it would add to the category row on the trip map (see [Places and Search](Places-and-Search#categories-from-plugins)), with its icon on its colour and its name in your language. The access list above reads *Adds map categories* for the same permission, and so does a chip on the plugin's row once it is installed. A plugin that declares categories without asking for the permission shows no list, because its buttons would never appear. The consent dialog of an update that adds the permission spells out what it shares: *Add its own place categories to Explore places on the map; picking one sends the plugin the map area you are viewing.*
- A plugin that asks for `hook:search-provider` reads **Answers searches** in the access list: its own index answers place searches beside TREK's results, and a plugin built for it also answers while the search is still being typed, with its places marked with the plugin's name (see [Places and Search](Places-and-Search#suggestions-while-you-type)).
-- **Connects to** — every host the manifest declares it may reach, as monospace chips.
-- **Setup** — settings the plugin will ask you (or each user) to fill in, tagged **Instance-wide** or **Per user**, and **Required** where applicable.
-- **Details** — version, size, the TREK version range it requires, when it was reviewed, and total downloads.
+- **Connects to**: every host the manifest declares it may reach, as monospace chips.
+- **Setup**: settings the plugin will ask you (or each user) to fill in, tagged **Instance-wide** or **Per user**, and **Required** where applicable.
+- **Details**: version, size, the TREK version range it requires, when it was reviewed, and total downloads.
A footer links to the **Source repository**, **Report an issue**, and the plugin's **Homepage**.
### Operator egress hosts
-Some plugins talk to a service only *you* can name — a self-hosted Gotify, ntfy, or similar. Their manifest cannot list a host, so the review dialog adds a **+ hosts you add** chip and this note:
+Some plugins talk to a service only *you* can name; a self-hosted Gotify, ntfy, or similar. Their manifest cannot list a host, so the review dialog adds a **+ hosts you add** chip and this note:
> *This plugin talks to a service only you can name. After installing, add the hosts it may reach under ⋯ → Allowed hosts. It can reach no others.*
After install, open the row's **⋯ → Allowed hosts** dialog and add hostnames one at a time. Until you add at least one, the plugin's row shows an amber **Add allowed host** chip, because it can reach nothing and would otherwise look silently broken. Once hosts exist the chip turns blue and counts them.
-Saving restarts the plugin so it picks up the new list — a running plugin's allow-list can never be widened in place.
+Saving restarts the plugin so it picks up the new list; a running plugin's allow-list can never be widened in place.
## Enabling, restarting, and disabling
-Each installed row has a toggle (**Enable plugin**) and shows **Active** or **Off**. A coloured dot on the icon tile reflects runtime health: green when the plugin is active, a pulsing blue while it starts, red when it has errored, grey when it is not running. Incompatibility is not a dot colour — a plugin this TREK cannot run gets an amber chip on the row instead.
+Each installed row has a toggle (**Enable plugin**) and shows **Active** or **Off**. A coloured dot on the icon tile reflects runtime health: green when the plugin is active, a pulsing blue while it starts, red when it has errored, grey when it is not running. Incompatibility is not a dot colour; a plugin this TREK cannot run gets an amber chip on the row instead.
-Enabling can be refused for good reasons. The first three are version gates that run before everything else — a plugin that cannot run on this TREK is never offered a permission dialog, because consenting would not make it start:
+Enabling can be refused for good reasons. The first three are version gates that run before everything else; a plugin that cannot run on this TREK is never offered a permission dialog, because consenting would not make it start:
-- **This TREK is outside the range the plugin declares** — the row carries an amber *Needs TREK {range} — this server runs {host}* chip and the toggle is refused. Expect this after a major upgrade: a plugin that declared `>=3.2.0 <4.0.0` stops activating on TREK 4 even though it ran fine the day before. There is no dialog to click through, it takes a release from the author that admits this TREK — and once the registry has one, the row's **Update** button offers it.
-- **The plugin does not say which TREK versions it supports** — the chip reads *Does not say which TREK versions it supports*. That is a plugin folder which predates the range field or was dropped into the plugins directory by hand: **Rescan** registers it rather than letting it vanish silently, and the gate then refuses it instead of guessing. It needs a manifest with a `trek` range.
-- **Version checks off** — the operator set `TREK_PLUGINS_IGNORE_TREK_RANGE` (see [Environment Variables](Environment-Variables)), and the header shows an amber *Version checks off* pill. The two cases above then stop being blockers: the row carries an amber *Outside its TREK range ({range}) — version checks off* (or *Declares no TREK range — version checks off*) chip for as long as the plugin runs here, but the toggle works. In Discover, an entry the registry marks incompatible gets an **Install anyway** button instead of a dead one; pressing it opens a warning first — the author has not updated the plugin's range for this TREK, nothing guarantees it works, and in rare cases a mismatched plugin can corrupt TREK data — and only **Install anyway** in that dialog sends the request. A sideload, dev-link, update or dependency download that lands outside its range cannot ask first, so the same warning appears right after it succeeds. The bypass never lifts the plugin-API version gate.
-- **The plugin needs a newer plugin API** — its manifest's `apiVersion` is higher than the plugin API this TREK implements (currently v1). Install, upload, and dev-link reject that up front, so this only shows for a plugin picked up from the plugins directory on disk — registered at the next restart, or when you press **Rescan**.
-- **A required addon is disabled** — a toast names the addon; turn it on in [Admin-Addons](Admin-Addons).
-- **A plugin dependency is missing or outdated** — a dialog lists each dependency with a one-click **Download** / **Update** that installs the newest compatible version and then retries.
-- **The update widened its permissions** — the consent dialog (below).
+- **This TREK is outside the range the plugin declares**: the row carries an amber *Needs TREK {range}* chip that also names the version this server runs, and the toggle is refused. Expect this after a major upgrade: a plugin that declared `>=3.2.0 <4.0.0` stops activating on TREK 4 even though it ran fine the day before. There is no dialog to click through: it takes a release from the author that admits this TREK, and once the registry has one, the row's **Update** button offers it.
+- **The plugin does not say which TREK versions it supports**: the chip reads *Does not say which TREK versions it supports*. That is a plugin folder which predates the range field or was dropped into the plugins directory by hand: **Rescan** registers it rather than letting it vanish silently, and the gate then refuses it instead of guessing. It needs a manifest with a `trek` range.
+- **Version checks off**: the operator set `TREK_PLUGINS_IGNORE_TREK_RANGE` (see [Environment Variables](Environment-Variables)), and the header shows an amber *Version checks off* pill. The two cases above then stop being blockers: the row carries an amber chip for as long as the plugin runs here, saying the plugin is *Outside its TREK range ({range})* (or *Declares no TREK range*) and that version checks are off, but the toggle works. In Discover, an entry the registry marks incompatible gets an **Install anyway** button instead of a dead one; pressing it opens a warning first (the author has not updated the plugin's range for this TREK, nothing guarantees it works, and in rare cases a mismatched plugin can corrupt TREK data) and only **Install anyway** in that dialog sends the request. A sideload, dev-link, update or dependency download that lands outside its range cannot ask first, so the same warning appears right after it succeeds. The bypass never lifts the plugin-API version gate.
+- **The plugin needs a newer plugin API**: its manifest's `apiVersion` is higher than the plugin API this TREK implements (currently v1). Install, upload, and dev-link reject that up front, so this only shows for a plugin picked up from the plugins directory on disk, registered at the next restart, or when you press **Rescan**.
+- **A required addon is disabled**: a toast names the addon; turn it on in [Admin-Addons](Admin-Addons).
+- **A plugin dependency is missing or outdated**: a dialog lists each dependency with a one-click **Download** / **Update** that installs the newest compatible version and then retries.
+- **The update widened its permissions**: the consent dialog (below).
Installed-but-disabled dependencies are enabled automatically as a cascade, and a toast tells you which.
@@ -84,34 +84,38 @@ If the new version requests rights you have not granted, TREK installs it but le
The dialog lists **Newly requested permissions** and **New outbound connections**. Choose **Approve & turn on** or **Keep off for now**. Updating several plugins at once queues these prompts, so none is skipped. If the version being approved is unsigned, the dialog adds a line saying nothing ties it to its author.
+### Changing the version
+
+**⋯ → Change version…** (registry plugins only) lists the versions the registry has published, each with a **Switch to {version}** button and a note when it needs a different TREK. Picking an older one asks first (**Roll back this plugin?**: data written by the newer version stays in place, and the older version may not understand it) and installs it after you press **Roll back**. A deliberate pick other than the newest version holds that plugin there: its row reads **Updates paused at v{version}** with a **Resume updates** link, and it is left out of the update banner and **Update all** until you resume or move to the newest version.
+
### Blocked updates
-If an author's signing key no longer matches the one pinned at install, the update is refused and the row shows **Update blocked — {reason}** with a **Review** link. The dialog then shows the pinned key fingerprint next to the offered one:
+If an author's signing key no longer matches the one pinned at install, the update is refused and the row shows **Update blocked** and the reason, with a **Review** link. The dialog then shows the pinned key fingerprint next to the offered one:
-> *TREK cannot tell a legitimate key rotation apart from a takeover — both look identical from here. Confirm the new key with the author through a channel you already trust before you accept it.*
+> *TREK cannot tell a legitimate key rotation apart from a takeover; both look identical from here. Confirm the new key with the author through a channel you already trust before you accept it.*
-Only a **changed key** can be overridden (**Trust the new key & update**). A signature that is invalid, missing, or half-declared gets an explanation and **no override button at all** — the server refuses those too.
+Only a **changed key** can be overridden (**Trust the new key & update**). A signature that is invalid, missing, or half-declared gets an explanation and **no override button at all**; the server refuses those too.
## Uninstalling
-**⋯ → Delete** asks **Uninstall plugin?** — *This stops the plugin, removes its code, and deletes all of its data. This cannot be undone.*
+**⋯ → Delete** asks **Uninstall plugin?** (*This stops the plugin, removes its code, and deletes all of its data. This cannot be undone.*)
## Badges: what they do and do not guarantee
-- **Reviewed** — *"Reviewed" means a TREK maintainer scanned this plugin for malware on each version — not for quality or whether it works. It is not a guarantee that a plugin is harmless.*
-- **Signed** — the files were verified against the author's signing key at install, and that key is pinned. A checksum already proves the files are what the *registry* vouches for; a signature proves they came from the *author*.
-- **Unsigned** — *The files match what the registry vouches for, but nothing ties them to the author. One guarantee fewer — not unsafe.* Most registry plugins are unsigned today, which is why this is an amber note rather than an alarm.
+- **Reviewed**: a TREK maintainer scanned this plugin for malware on each version, not for quality or whether it works. It is not a guarantee that a plugin is harmless.
+- **Signed**: the files were verified against the author's signing key at install, and that key is pinned. A checksum already proves the files are what the *registry* vouches for; a signature proves they came from the *author*.
+- **Unsigned**: *The files match what the registry vouches for, but nothing ties them to the author. One guarantee fewer, not unsafe.* Most registry plugins are unsigned today, which is why this is an amber note rather than an alarm.
-Neither badge says anything about what the code *does*. A collapsible **How plugins are contained — and the limits** panel at the bottom of the tab spells out the isolation model, what permissions really constrain, what TREK cannot promise, and the worst case. Read it once.
+Neither badge says anything about what the code *does*. A collapsible panel at the bottom of the tab, titled **How plugins are contained**, spells out the isolation model, what permissions really constrain, what TREK cannot promise, and the worst case. Read it once.
## Sideloading and dev-linking
Two paths install a plugin that never went through the registry:
-- **Upload plugin** (toolbar button, or drag a `.zip` onto the panel) — installs the archive **inactive**; you still consent on activation. The row is marked **Sideloaded**: *Uploaded manually — not from the registry, unsigned and unreviewed.*
-- **Link a local plugin** — a path field that registers a plugin from a local build directory and hot-reloads it against real data. Dev only, and only shown when the server sets `TREK_PLUGINS_DEV_LINK=1`. The row is marked **Dev-Link**.
+- **Upload plugin** (toolbar button, or drag a `.zip` onto the panel): installs the archive **inactive**; you still consent on activation. The row is marked **Sideloaded**: *Uploaded manually, not from the registry, unsigned and unreviewed.*
+- **Link a local plugin**: a path field that registers a plugin from a local build directory and hot-reloads it against real data. Dev only, and only shown when the server sets `TREK_PLUGINS_DEV_LINK=1`. The row is marked **Dev-Link**.
-Be honest with yourself about what these badges mean: both are only a *label on the card*. They record where the code came from — they do not check, sandbox differently, or restrict it. A sideloaded or dev-linked plugin runs with exactly the permissions it declares, same as a registry one, and it received no malware scan and carries no signature. The badge is there so you can tell at a glance that no one but you vouched for that code. (The source badge also replaces the Signed/Unsigned badge on those rows, since it already says something stronger.)
+Be honest with yourself about what these badges mean: both are only a *label on the card*. They record where the code came from; they do not check, sandbox differently, or restrict it. A sideloaded or dev-linked plugin runs with exactly the permissions it declares, same as a registry one, and it received no malware scan and carries no signature. The badge is there so you can tell at a glance that no one but you vouched for that code. (The source badge also replaces the Signed/Unsigned badge on those rows, since it already says something stronger.)
## Permissions
diff --git a/wiki/Admin-Storage.md b/wiki/Admin-Storage.md
index e34c1f087..a378ca39a 100644
--- a/wiki/Admin-Storage.md
+++ b/wiki/Admin-Storage.md
@@ -16,15 +16,15 @@ A backend is a named place bytes can live. Two exist out of the box:
You can **edit** a built-in to relocate its root directory, and **add**
backends of type:
-- **Local** — a directory on a disk or mount reachable by the server.
-- **S3** — any S3-compatible service (AWS S3, Cloudflare R2, Backblaze B2,
+- **Local**: a directory on a disk or mount reachable by the server.
+- **S3**: any S3-compatible service (AWS S3, Cloudflare R2, Backblaze B2,
Garage, MinIO/AIStor). Endpoint URL, bucket, credentials, and optionally
region, key prefix, retries, and timeout. For self-hosted endpoints, use an
IP address or `localhost` in the URL unless your server is configured for
virtual-hosted bucket addressing.
If `TREK_PLACE_PHOTO_DIR` is set, a read-only `place-photos-local` backend
-appears too — it is defined by that environment variable, not by this panel.
+appears too; it is defined by that environment variable, not by this panel.
### Replication (Mirror targets)
@@ -33,36 +33,36 @@ backend is then also copied to each selected target. Removing all targets
turns replication off again.
- A backend can serve as a **mirror target or as a category target, not
- both** — only backends no category is stored on are offered in the list, and
+ both**: only backends no category is stored on are offered in the list, and
saving a configuration that mixes the two is refused. A sync makes a target
match its backend (see below), so anything else stored there would be
deleted.
- Writes go to the backend itself first (it stays the source of truth), then
to each target in order. A slow or unreachable target slows every upload of
- every category on that backend — ideal for backups, worth weighing before
+ every category on that backend, ideal for backups, worth weighing before
replicating hot categories like trip documents.
- Replica failures **never fail the original request**. They are recorded and
shown in the **Health** strip at the top of the tab, with the backend, the
object, the operation, and how long ago it happened. An empty strip means
- every replicated write landed. Replica failures also notify admins — in-app
+ every replicated write landed. Replica failures also notify admins, in-app
and over the configured webhook/ntfy/email channels (first failure
immediately, then at most one summary per backend per hour). Preferences
live in the admin Notifications tab.
- Replication starts with the next write. To copy objects that existed before
- you added a target, press **Sync now** on the backend's row — one sync runs
+ you added a target, press **Sync now** on the backend's row; one sync runs
at a time, with progress and a cancel button; objects already present with
matching sizes are skipped, and per-object failures land in the Health
strip without stopping the run. A sync makes the target **match** the
backend, not just catch up: it also deletes target objects that no longer
- exist on the backend — it's not a trash can, so run it only when you want
+ exist on the backend; it's not a trash can, so run it only when you want
the target pruned to match, and stray deletions land in the Health strip
like any other replica failure.
### Test
Every backend row has a **Test** button: the server writes, checks, and
-deletes a small probe object (`trek-probe/…`) on the backend — for a
-replicated backend, on the backend itself and each target individually — and
+deletes a small probe object (`trek-probe/…`) on the backend (for a
+replicated backend, on the backend itself and each target individually) and
reports per-target results. "Connection OK" means credentials, bucket, and
reachability all check out. Targets must be **saved** before Test can probe
them; a just-added, unsaved backend used as a target reports an error until
@@ -75,22 +75,22 @@ assigned to exactly one backend:
| Category | Id | What it stores |
|----------|----|----------------|
-| Trip documents | `files` | File attachments uploaded to trips — tickets, PDFs, booking confirmations, and files shared in trip chat |
+| Trip documents | `files` | File attachments uploaded to trips, tickets, PDFs, booking confirmations, and files shared in trip chat |
| Journey photos | `journey` | Photos and thumbnails attached to journey entries |
| Cover images | `covers` | Trip and collection cover images, including covers fetched from Unsplash |
| Profile pictures | `avatars` | User account profile pictures |
-| Place images | `places` | Images attached to places and collection places — uploaded or imported |
-| Google photo cache | `photos-google` | Cached copies of Google Places photos — re-fetchable, safe to lose |
-| TREK photo cache | `photos-trek` | Cached photos from the TREK photo service used by Memories — re-fetchable, safe to lose |
+| Place images | `places` | Images attached to places and collection places, uploaded or imported |
+| Google photo cache | `photos-google` | Cached copies of Google Places photos, re-fetchable, safe to lose |
+| TREK photo cache | `photos-trek` | Cached photos from the TREK photo service used by Memories, re-fetchable, safe to lose |
| Backups | `backups` | Server backup archives created by the Backup panel or schedule |
Reassigning a category changes where **new** objects go. If the category
already holds objects, the panel asks first: **Move existing objects** copies
everything to the new backend, switches the category, then sweeps any writes
-that raced the copy; **Just route new writes** keeps the previous behavior —
+that raced the copy; **Just route new writes** keeps the previous behavior:
new objects go to the new backend, existing ones stay put and keep being
served from wherever they already are. Replicating the Google photo cache or
-Place images is flagged as not recommended — both hold content that is
+Place images is flagged as not recommended; both hold content that is
re-fetchable or provider-derived.
The legacy `/uploads/photos` directory written by older TREK versions is not
@@ -100,18 +100,18 @@ writes there anymore and it cannot be reassigned.
### Moving a category's objects
A category migration shares its one-at-a-time slot with mirror syncs (see
-*Replication* above) — starting a move while a sync (or another move) is
+*Replication* above); starting a move while a sync (or another move) is
running is refused, and vice versa. Progress (done/total, copied/skipped/
failed) shows inline with a cancel button.
Cancelling before the category switches is completely safe: nothing has
-changed yet, the copy just stops. A failed copy behaves the same way — the
+changed yet, the copy just stops. A failed copy behaves the same way; the
category is never switched if any object failed to copy. Once the switch has
happened, the delta sweep (catching writes that landed on the old backend
while the copy was running) always runs to completion, even if you cancel.
-The old objects are **not** deleted when a move finishes — that's what the
-reclaimable line means (`N objects (size) remain on <backend> — reclaim
+The old objects are **not** deleted when a move finishes; that's what the
+reclaimable line means (`N objects (size) remain on <backend>, reclaim
manually`). It's left behind on purpose so you can confirm the new backend
looks right before removing it yourself.
@@ -119,18 +119,18 @@ looks right before removing it yourself.
The Backends section shows per-backend and per-category object counts and
sizes, scanned nightly (04:15 server time) and on demand via **Refresh**. The
-stamp shows when the numbers were computed — reassigning categories does not
+stamp shows when the numbers were computed; reassigning categories does not
retroactively move them until the next scan. The uploads backend's total
includes the legacy photo library.
## Secrets and encryption
Backend credentials (the S3 secret access key) are stored encrypted. Setting
-the `ENCRYPTION_KEY` environment variable explicitly is recommended — without
+the `ENCRYPTION_KEY` environment variable explicitly is recommended; without
it the implicit key persisted in the data directory is used, which works but
rides inside backup archives (someone holding a backup can decrypt the
secrets it contains). If you later move from the implicit key to an explicit
-one, follow [[Encryption Key Rotation|Encryption-Key-Rotation]] — setting a
+one, follow [[Encryption Key Rotation|Encryption-Key-Rotation]]; setting a
new key directly would orphan already-stored secrets. Saved secrets display
as a masked placeholder; leaving the mask untouched when editing keeps the
stored value.
@@ -139,12 +139,12 @@ stored value.
For scripted deployments, place a `storage-config.json` in the data directory
(in Docker: mount it at `/app/data/storage-config.json`). It is imported
-exactly once — on the first boot that has no stored storage configuration —
+exactly once, on the first boot that has no stored storage configuration,
then ignored (a log line says so). An invalid file aborts boot with the exact
validation error.
```jsonc
-// storage-config.json - secrets may be plaintext (encrypted on import)
+// storage-config.json: secrets may be plaintext (encrypted on import)
// or already-encrypted enc:v1: values.
{
"backends": [
@@ -167,7 +167,7 @@ The panel presents this exact setup as **Mirror targets** on `backups-local`.
To reset storage configuration (or re-import a seed file): stop the server,
`sqlite3 data/travel.db "DELETE FROM app_settings WHERE key LIKE 'storage.%';"`,
-start it again — it boots on the built-in defaults, or re-imports the seed
+start it again; it boots on the built-in defaults, or re-imports the seed
file if present.
**Restore chicken-and-egg:** backups include the storage configuration. If
@@ -175,9 +175,11 @@ your only backup lives on S3 and the credentials are inside it: start a fresh
instance, enter the S3 credentials here (or mount a seed file), then restore
from the Backup panel.
+The phone admin has the same functions in its **Storage** section.
+
## Related pages
-- [[Backups|Backups]] — what a backup contains, restore procedure
+- [[Backups|Backups]]: what a backup contains, restore procedure
- [[Environment Variables|Environment-Variables]]
- [[Encryption Key Rotation|Encryption-Key-Rotation]]
- [[Admin Panel Overview|Admin-Panel-Overview]]