Seed a default admin account and harden the installer; update symlink behavior and LXC hook argument handling. - Install: downgrade Node setup to 22, write ADMIN_EMAIL/ADMIN_PASSWORD into /opt/trek/server/.env for initial boot, chmod the file, wait for app health, then remove plaintext creds from the env and print the default admin credentials. Remove previous DB patching script and credentials file generation. Add health-check failure handling. - ct/trek.sh: check for /opt/trek instead of ~/.trek, run npm ci without --production, and recreate server data/uploads by removing any existing dirs and creating explicit symlinks. - Installer: mirror symlink strategy used in the container (rm then ln -s) and ensure generated ENCRYPTION_KEY note; add ADMIN_EMAIL default. - json: set default username to admin@trek.local, update notes about seeded admin, ENCRYPTION_KEY storage, and APP_URL recommendation. - tools/pve/lxc-prehook.sh: fix append_unique_line_in_ct to pass positional arguments into the bash -c snippet safely (avoid parent-shell expansion). These changes ensure a reproducible default admin creation flow without leaving plaintext credentials, improve symlink handling, and fix a bug in the LXC prehook.
48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"name": "TREK",
|
|
"slug": "trek",
|
|
"categories": [
|
|
0
|
|
],
|
|
"date_created": "2026-04-02",
|
|
"type": "ct",
|
|
"updateable": true,
|
|
"privileged": false,
|
|
"interface_port": 3000,
|
|
"documentation": "https://github.com/mauriceboe/TREK#readme",
|
|
"website": "https://github.com/mauriceboe/TREK",
|
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/trek.webp",
|
|
"description": "TREK is a self-hosted, real-time collaborative travel planner with interactive maps, budgets, packing lists, weather forecasts, PWA support, and multi-user collaboration via WebSocket.",
|
|
"install_methods": [
|
|
{
|
|
"type": "default",
|
|
"script": "ct/trek.sh",
|
|
"config_path": "/opt/trek/server/.env",
|
|
"resources": {
|
|
"cpu": 2,
|
|
"ram": 2048,
|
|
"hdd": 8,
|
|
"os": "Debian",
|
|
"version": "13"
|
|
}
|
|
}
|
|
],
|
|
"default_credentials": {
|
|
"username": "admin@trek.local",
|
|
"password": null
|
|
},
|
|
"notes": [
|
|
{
|
|
"text": "A default admin account is seeded during setup with the email admin@trek.local.",
|
|
"type": "info"
|
|
},
|
|
{
|
|
"text": "ENCRYPTION_KEY is auto-generated during setup and stored in `/opt/trek/server/.env`.",
|
|
"type": "info"
|
|
},
|
|
{
|
|
"text": "Set APP_URL in `/opt/trek/server/.env` if you plan to use OIDC or email-based features.",
|
|
"type": "info"
|
|
}
|
|
]
|
|
} |