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 Proxmox and Unraid install pages for first-start credentials, the pre-migrate copy and extra variables

Maurice1c83bf78faf2
diff --git a/wiki/Install-Proxmox.md b/wiki/Install-Proxmox.md
index c9a44452e..b1dadfc83 100644
--- a/wiki/Install-Proxmox.md
+++ b/wiki/Install-Proxmox.md
@@ -23,6 +23,8 @@ The script will prompt you to choose between **Default** and **Advanced** settin
### Default container specs
+These are the defaults at the time of writing. The script decides them, so check the script page for the current values.
+
| Resource | Value |
|---|---|
| OS | Debian 13 |
@@ -47,6 +49,8 @@ On first boot, TREK automatically creates an admin account. The credentials are
journalctl -u trek -n 50
```
+If you put `ADMIN_EMAIL` and `ADMIN_PASSWORD` into `/opt/trek/server/.env` before the first start, TREK uses them instead, but only on that first start and only when both are set. Once a user exists they have no effect.
+
The `ENCRYPTION_KEY` is auto-generated during setup and saved to `/opt/trek/server/.env`. Record that file in your backups.
## Viewing Logs
@@ -92,6 +96,8 @@ HOST=10.0.0.72 # bind only on this LAN interface
If the container reaches the internet only through a proxy, set `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` in the same file, and `NODE_USE_ENV_PROXY=1` next to them: unlike the Docker image, a Proxmox install does not set that switch for you, and without it Node ignores the proxy for everything except TREK's guarded integration requests. See [Environment-Variables](Environment-Variables#outbound-https-proxy).
+The same file takes every other variable from [Environment-Variables](Environment-Variables), for example the Web Push, OIDC or place search settings. The in-app Help pages are read from the `wiki` folder that comes with the installed version, so they match what you run. Installed plugins are stored under the `data` folder by default (`TREK_PLUGINS_DIR` moves them), so keep that folder in your backups.
+
See [Environment-Variables](Environment-Variables) for the full variable reference.
## Updating
@@ -104,7 +110,7 @@ bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/Proxmo
> **Tip:** Always check the [community-scripts TREK page](https://community-scripts.org/scripts/trek) to confirm the latest command before running.
-The script stops the service, backs up your data and uploads, applies the new release, restores the backup, and restarts. No manual steps required.
+The script stops the service, backs up your data and uploads, applies the new release, restores the backup, and restarts. No manual steps required. When the new version starts, TREK also copies the database to `data/pre-migrate-<schema>-<time>.db` before migrating it, so you can go back if needed (see [Updating](Updating#database-migrations)).
## Next Steps
diff --git a/wiki/Install-Unraid.md b/wiki/Install-Unraid.md
index 4acc79441..bd0a1c5e9 100644
--- a/wiki/Install-Unraid.md
+++ b/wiki/Install-Unraid.md
@@ -2,8 +2,6 @@
Install TREK on Unraid via Community Applications or a direct template import.
-<!-- TODO: screenshot: Unraid container template settings -->
-
## Prerequisite
Docker must be enabled in Unraid (**Settings → Docker → Enable Docker: Yes**).
@@ -47,7 +45,7 @@ The Unraid template exposes the following fields in the container UI:
Additional variables (`PORT`, `NODE_ENV`, `LOG_LEVEL`, `TREK_WIKI_DIR`, `DEFAULT_LANGUAGE`, `FORCE_HTTPS`, `HSTS_INCLUDE_SUBDOMAINS`, `TRUST_PROXY`, `COOKIE_SECURE`, `ALLOW_INTERNAL_NETWORK`, `SESSION_DURATION`, `SESSION_DURATION_REMEMBER`, the OIDC variables apart from `OIDC_USERNAME_CLAIM`, `MCP_RATE_LIMIT`, `MCP_MAX_SESSION_PER_USER`, `DEMO_MODE`, `UNSPLASH_ACCESS_KEY`, `VAPID_PUBLIC_KEY`, `VAPID_PRIVATE_KEY`, `VAPID_SUBJECT`) are available under **Advanced View** in the template editor.
-Any other variable from [Environment-Variables](Environment-Variables), such as `OIDC_USERNAME_CLAIM`, `FILE_UPLOAD_LIMIT_MB`, `PLACES_API_KEY` or `HTTP_PROXY`, is added as a new variable in the template editor, with its name as the key.
+Any other variable from [Environment-Variables](Environment-Variables), such as `OIDC_USERNAME_CLAIM`, `ALLOW_LINK_LOCAL_IPS`, `FILE_UPLOAD_LIMIT_MB`, `PLACES_API_KEY`, the `SMTP_*` settings, the `AMAP_*` keys or `HTTP_PROXY`, is added as a new variable in the template editor, with its name as the key.
## Setting the Encryption Key
@@ -69,6 +67,10 @@ http://<unraid-ip>:<port>
On first boot, TREK automatically creates an admin account. The credentials are printed to the container log — check **Docker → trek → Log** in the Unraid UI. If you set both `ADMIN_EMAIL` and `ADMIN_PASSWORD`, those values are used; otherwise the email is `[email protected]` and a random password is generated.
+## Updating
+
+Click the TREK container in the **Docker** tab and select **Update**. Before the new version migrates the database, TREK copies it to `pre-migrate-<schema>-<time>.db` in the `data` folder (`/mnt/user/appdata/trek/data` by default), so you can go back to the previous image if needed. See [Updating](Updating#database-migrations).
+
## Next Steps
- [Environment-Variables](Environment-Variables) — complete variable reference