home-hosted 0.10.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +273 -628
- package/dist/chunks/archive-DpCwA8Nf.js +339 -0
- package/dist/chunks/archive-DpCwA8Nf.js.map +1 -0
- package/dist/chunks/atomic-CEfCUfkQ.js +25 -0
- package/dist/chunks/atomic-CEfCUfkQ.js.map +1 -0
- package/dist/chunks/backup-CPrJVPJI.js +797 -0
- package/dist/chunks/backup-CPrJVPJI.js.map +1 -0
- package/dist/chunks/backups-Bd2SF2qd.js +4346 -0
- package/dist/chunks/backups-Bd2SF2qd.js.map +1 -0
- package/dist/chunks/config-text-DifCHhnz.js +50 -0
- package/dist/chunks/config-text-DifCHhnz.js.map +1 -0
- package/dist/chunks/contracts-ku5ypHXJ.js +2256 -0
- package/dist/chunks/contracts-ku5ypHXJ.js.map +1 -0
- package/dist/chunks/daemon-TwXk5vb8.js +215 -0
- package/dist/chunks/daemon-TwXk5vb8.js.map +1 -0
- package/dist/chunks/daemon-log-BVj8cDEo.js +241 -0
- package/dist/chunks/daemon-log-BVj8cDEo.js.map +1 -0
- package/dist/chunks/docker-CGv4Uv7w.js +436 -0
- package/dist/chunks/docker-CGv4Uv7w.js.map +1 -0
- package/dist/chunks/down-BlX5X3bm.js +378 -0
- package/dist/chunks/down-BlX5X3bm.js.map +1 -0
- package/dist/chunks/init-DdmqHVra.js +263 -0
- package/dist/chunks/init-DdmqHVra.js.map +1 -0
- package/dist/chunks/last-stop-BZ08Z89-.js +52 -0
- package/dist/chunks/last-stop-BZ08Z89-.js.map +1 -0
- package/dist/chunks/layout-D74TGUnr.js +24 -0
- package/dist/chunks/layout-D74TGUnr.js.map +1 -0
- package/dist/chunks/log-buffer-HnP0jKhZ.js +350 -0
- package/dist/chunks/log-buffer-HnP0jKhZ.js.map +1 -0
- package/dist/chunks/logger-B5U4GD3j.js +13 -0
- package/dist/chunks/logger-B5U4GD3j.js.map +1 -0
- package/dist/chunks/logs-gI_69Q1P.js +265 -0
- package/dist/chunks/logs-gI_69Q1P.js.map +1 -0
- package/dist/chunks/migrate-BTlsibvF.js +155 -0
- package/dist/chunks/migrate-BTlsibvF.js.map +1 -0
- package/dist/chunks/nanny-20aBXL1o.js +1069 -0
- package/dist/chunks/nanny-20aBXL1o.js.map +1 -0
- package/dist/chunks/nanny-CjnnrIpm.js +132 -0
- package/dist/chunks/nanny-CjnnrIpm.js.map +1 -0
- package/dist/chunks/nanny-DUaAfCV-.js +39 -0
- package/dist/chunks/nanny-DUaAfCV-.js.map +1 -0
- package/dist/chunks/nanny-sweep-Ca9kPAVi.js +104 -0
- package/dist/chunks/nanny-sweep-Ca9kPAVi.js.map +1 -0
- package/dist/chunks/nearest-6KgQEDUe.js +41 -0
- package/dist/chunks/nearest-6KgQEDUe.js.map +1 -0
- package/dist/chunks/parse-B9owE47G.js +383 -0
- package/dist/chunks/parse-B9owE47G.js.map +1 -0
- package/dist/chunks/paths-BT94q6-w.js +172 -0
- package/dist/chunks/paths-BT94q6-w.js.map +1 -0
- package/dist/chunks/port-B8WBTRMk.js +333 -0
- package/dist/chunks/port-B8WBTRMk.js.map +1 -0
- package/dist/chunks/restart-UZgeDukG.js +126 -0
- package/dist/chunks/restart-UZgeDukG.js.map +1 -0
- package/dist/chunks/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/chunks/schema-o7Lgk0V1.js +102 -0
- package/dist/chunks/schema-o7Lgk0V1.js.map +1 -0
- package/dist/chunks/secrets-D7PdYh71.js +544 -0
- package/dist/chunks/secrets-D7PdYh71.js.map +1 -0
- package/dist/chunks/server-BuIeSsRu.js +169 -0
- package/dist/chunks/server-BuIeSsRu.js.map +1 -0
- package/dist/chunks/server-ids-DRuNLVCV.js +32 -0
- package/dist/chunks/server-ids-DRuNLVCV.js.map +1 -0
- package/dist/chunks/set-password-DegMumPh.js +43 -0
- package/dist/chunks/set-password-DegMumPh.js.map +1 -0
- package/dist/chunks/set-token-21d1FTDC.js +78 -0
- package/dist/chunks/set-token-21d1FTDC.js.map +1 -0
- package/dist/chunks/settings-BVSBnIwJ.js +332 -0
- package/dist/chunks/settings-BVSBnIwJ.js.map +1 -0
- package/dist/chunks/setup-temp-XiuAtiW2.js +150 -0
- package/dist/chunks/setup-temp-XiuAtiW2.js.map +1 -0
- package/dist/chunks/shape-DnTKzjQ2.js +24 -0
- package/dist/chunks/shape-DnTKzjQ2.js.map +1 -0
- package/dist/chunks/src-BL97vLVb.js +11153 -0
- package/dist/chunks/src-BL97vLVb.js.map +1 -0
- package/dist/chunks/status-EuWdRq8Q.js +119 -0
- package/dist/chunks/status-EuWdRq8Q.js.map +1 -0
- package/dist/chunks/ui-DbPuwddJ.js +323 -0
- package/dist/chunks/ui-DbPuwddJ.js.map +1 -0
- package/dist/chunks/ui-dir-CsU3uLNV.js +39 -0
- package/dist/chunks/ui-dir-CsU3uLNV.js.map +1 -0
- package/dist/chunks/ui-release-DKzVvlLd.js +312 -0
- package/dist/chunks/ui-release-DKzVvlLd.js.map +1 -0
- package/dist/chunks/ui-revert-BhqOAhmM.js +27 -0
- package/dist/chunks/ui-revert-BhqOAhmM.js.map +1 -0
- package/dist/chunks/ui-switch-CMoslPO2.js +150 -0
- package/dist/chunks/ui-switch-CMoslPO2.js.map +1 -0
- package/dist/chunks/ui-update-TTBBoDik.js +272 -0
- package/dist/chunks/ui-update-TTBBoDik.js.map +1 -0
- package/dist/chunks/up-C4H13hBw.js +196 -0
- package/dist/chunks/up-C4H13hBw.js.map +1 -0
- package/dist/chunks/usage-CSBgLRN5.js +85 -0
- package/dist/chunks/usage-CSBgLRN5.js.map +1 -0
- package/dist/chunks/workspaces-CAln2sQ7.js +221 -0
- package/dist/chunks/workspaces-CAln2sQ7.js.map +1 -0
- package/dist/chunks/wsl-temperature-BiCI4iK6.js +322 -0
- package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +1 -0
- package/dist/cli.js +229 -24861
- package/dist/cli.js.map +1 -1
- package/dist/client.js +120 -0
- package/dist/client.js.map +1 -0
- package/dist/types/api/acme.d.ts +24 -0
- package/dist/types/api/auth/$.routes.d.ts +103 -0
- package/dist/types/api/backups.d.ts +179 -0
- package/dist/types/api/control.d.ts +469 -0
- package/dist/types/api/ddns.d.ts +432 -0
- package/dist/types/api/events.d.ts +21 -0
- package/dist/types/api/health.d.ts +27 -0
- package/dist/types/api/logs.d.ts +95 -0
- package/dist/types/api/metrics.d.ts +19 -0
- package/dist/types/api/notifications.d.ts +141 -0
- package/dist/types/api/proxy.d.ts +1128 -0
- package/dist/types/api/servers/$.routes.d.ts +1318 -0
- package/dist/types/api/settings.d.ts +642 -0
- package/dist/types/api/state.d.ts +492 -0
- package/dist/types/api/static.d.ts +11 -0
- package/dist/types/api/tls.d.ts +112 -0
- package/dist/types/api/workspaces/$.routes.d.ts +797 -0
- package/dist/types/api/wsl-temperature.d.ts +113 -0
- package/dist/types/app.d.ts +6080 -0
- package/dist/types/cli/args.d.ts +75 -0
- package/dist/types/cli/backup-offline.d.ts +23 -0
- package/dist/types/cli/backup.d.ts +79 -0
- package/dist/types/cli/down.d.ts +75 -0
- package/dist/types/cli/init.d.ts +60 -0
- package/dist/types/cli/io.d.ts +65 -0
- package/dist/types/cli/logs.d.ts +64 -0
- package/dist/types/cli/migrate.d.ts +33 -0
- package/dist/types/cli/nanny.d.ts +19 -0
- package/dist/types/cli/nearest.d.ts +10 -0
- package/dist/types/cli/restart.d.ts +42 -0
- package/dist/types/cli/server.d.ts +68 -0
- package/dist/types/cli/set-password.d.ts +14 -0
- package/dist/types/cli/set-token.d.ts +21 -0
- package/dist/types/cli/setup-temp.d.ts +65 -0
- package/dist/types/cli/status.d.ts +14 -0
- package/dist/types/cli/ui-revert.d.ts +3 -0
- package/dist/types/cli/ui-switch.d.ts +27 -0
- package/dist/types/cli/ui-update.d.ts +72 -0
- package/dist/types/cli/up.d.ts +90 -0
- package/dist/types/cli/usage.d.ts +23 -0
- package/dist/types/cli.d.ts +12 -0
- package/dist/types/client.d.ts +6284 -0
- package/dist/types/config/layout.d.ts +11 -0
- package/dist/types/config/migrations.d.ts +69 -0
- package/dist/types/config/parse.d.ts +54 -0
- package/dist/types/config/patch.d.ts +20 -0
- package/dist/types/config/schema.d.ts +318 -0
- package/dist/types/config/secret-parts.d.ts +48 -0
- package/dist/types/config/secrets.d.ts +206 -0
- package/dist/types/config/seed.d.ts +30 -0
- package/dist/types/config/server-ids.d.ts +14 -0
- package/dist/types/config/settings.d.ts +74 -0
- package/dist/types/config/store.d.ts +132 -0
- package/dist/types/config/workspaces.d.ts +96 -0
- package/dist/types/helpers/action-result.d.ts +46 -0
- package/dist/types/helpers/atomic.d.ts +9 -0
- package/dist/types/helpers/backoff.d.ts +7 -0
- package/dist/types/helpers/bind.d.ts +16 -0
- package/dist/types/helpers/config-text.d.ts +23 -0
- package/dist/types/helpers/cookies.d.ts +19 -0
- package/dist/types/helpers/copy-tree.d.ts +15 -0
- package/dist/types/helpers/daemon-log.d.ts +45 -0
- package/dist/types/helpers/daemon.d.ts +122 -0
- package/dist/types/helpers/deferred.d.ts +7 -0
- package/dist/types/helpers/env-file.d.ts +20 -0
- package/dist/types/helpers/error.d.ts +18 -0
- package/dist/types/helpers/factory.d.ts +6 -0
- package/dist/types/helpers/last-stop.d.ts +20 -0
- package/dist/types/helpers/logger.d.ts +7 -0
- package/dist/types/helpers/open.d.ts +2 -0
- package/dist/types/helpers/openapi.d.ts +46 -0
- package/dist/types/helpers/paths.d.ts +94 -0
- package/dist/types/helpers/restore-lock.d.ts +32 -0
- package/dist/types/helpers/runtime.d.ts +18 -0
- package/dist/types/helpers/secret-compare.d.ts +13 -0
- package/dist/types/helpers/shell.d.ts +19 -0
- package/dist/types/helpers/sse.d.ts +23 -0
- package/dist/types/helpers/template.d.ts +8 -0
- package/dist/types/helpers/ui-dir.d.ts +11 -0
- package/dist/types/helpers/validate.d.ts +7 -0
- package/dist/types/helpers/validator.d.ts +12 -0
- package/dist/types/helpers/version.d.ts +10 -0
- package/dist/types/helpers/workspace.d.ts +25 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/middleware/auth.d.ts +37 -0
- package/dist/types/middleware/host.d.ts +29 -0
- package/dist/types/middleware/loopback.d.ts +18 -0
- package/dist/types/openapi-reference.d.ts +22 -0
- package/dist/types/openapi.d.ts +34 -0
- package/dist/types/providers/archive.d.ts +54 -0
- package/dist/types/providers/backup-hook.d.ts +34 -0
- package/dist/types/providers/ddns/cloudflare.d.ts +2 -0
- package/dist/types/providers/ddns/desec.d.ts +2 -0
- package/dist/types/providers/ddns/digitalocean.d.ts +2 -0
- package/dist/types/providers/ddns/duckdns.d.ts +2 -0
- package/dist/types/providers/ddns/dyndns2.d.ts +15 -0
- package/dist/types/providers/ddns/dynu.d.ts +2 -0
- package/dist/types/providers/ddns/freedns.d.ts +2 -0
- package/dist/types/providers/ddns/gandi.d.ts +2 -0
- package/dist/types/providers/ddns/godaddy.d.ts +2 -0
- package/dist/types/providers/ddns/henet.d.ts +3 -0
- package/dist/types/providers/ddns/index.d.ts +12 -0
- package/dist/types/providers/ddns/ip.d.ts +27 -0
- package/dist/types/providers/ddns/namecheap-api.d.ts +13 -0
- package/dist/types/providers/ddns/namecheap.d.ts +6 -0
- package/dist/types/providers/ddns/noip.d.ts +2 -0
- package/dist/types/providers/ddns/porkbun.d.ts +2 -0
- package/dist/types/providers/ddns/spaceship.d.ts +7 -0
- package/dist/types/providers/ddns/types.d.ts +98 -0
- package/dist/types/providers/ddns/zone.d.ts +11 -0
- package/dist/types/providers/docker.d.ts +117 -0
- package/dist/types/providers/entry-state.d.ts +15 -0
- package/dist/types/providers/health-check.d.ts +27 -0
- package/dist/types/providers/host.d.ts +147 -0
- package/dist/types/providers/identity.d.ts +54 -0
- package/dist/types/providers/log-tail.d.ts +29 -0
- package/dist/types/providers/nanny-sweep.d.ts +51 -0
- package/dist/types/providers/nanny.d.ts +94 -0
- package/dist/types/providers/port.d.ts +142 -0
- package/dist/types/providers/proc.d.ts +116 -0
- package/dist/types/providers/process.d.ts +61 -0
- package/dist/types/providers/proxy/caddy.d.ts +2 -0
- package/dist/types/providers/proxy/index.d.ts +7 -0
- package/dist/types/providers/proxy/types.d.ts +54 -0
- package/dist/types/providers/server-vars.d.ts +4 -0
- package/dist/types/providers/telegram.d.ts +32 -0
- package/dist/types/providers/ui-release.d.ts +113 -0
- package/dist/types/providers/webhook.d.ts +64 -0
- package/dist/types/providers/wsl-temperature.d.ts +69 -0
- package/dist/types/services/acme-challenge.d.ts +44 -0
- package/dist/types/services/auth.d.ts +145 -0
- package/dist/types/services/backups.d.ts +352 -0
- package/dist/types/services/config-watch.d.ts +40 -0
- package/dist/types/services/control-server.d.ts +58 -0
- package/dist/types/services/ddns.d.ts +67 -0
- package/dist/types/services/dependencies.d.ts +21 -0
- package/dist/types/services/events.d.ts +17 -0
- package/dist/types/services/exposure.d.ts +33 -0
- package/dist/types/services/history.d.ts +36 -0
- package/dist/types/services/host-monitor.d.ts +32 -0
- package/dist/types/services/init.d.ts +71 -0
- package/dist/types/services/log-buffer.d.ts +28 -0
- package/dist/types/services/log-files.d.ts +87 -0
- package/dist/types/services/log-relay.d.ts +36 -0
- package/dist/types/services/nanny.d.ts +14 -0
- package/dist/types/services/notifications.d.ts +124 -0
- package/dist/types/services/panel.d.ts +194 -0
- package/dist/types/services/proxy-config.d.ts +83 -0
- package/dist/types/services/proxy.d.ts +454 -0
- package/dist/types/services/state.d.ts +41 -0
- package/dist/types/services/supervisor/compose.d.ts +17 -0
- package/dist/types/services/supervisor/entry.d.ts +139 -0
- package/dist/types/services/supervisor/health.d.ts +55 -0
- package/dist/types/services/supervisor/pending-load.d.ts +6 -0
- package/dist/types/services/supervisor/persistent.d.ts +55 -0
- package/dist/types/services/supervisor/port-preflight.d.ts +45 -0
- package/dist/types/services/supervisor/records.d.ts +38 -0
- package/dist/types/services/supervisor/spawn.d.ts +15 -0
- package/dist/types/services/supervisor/view.d.ts +4 -0
- package/dist/types/services/supervisor.d.ts +113 -0
- package/dist/types/services/tls.d.ts +48 -0
- package/dist/types/services/ui-update.d.ts +44 -0
- package/dist/types/services/ui.d.ts +50 -0
- package/dist/types/shared/api-client.d.ts +137 -0
- package/dist/types/shared/backup-scope.d.ts +109 -0
- package/dist/types/shared/clone.d.ts +14 -0
- package/dist/types/shared/contracts.d.ts +4233 -0
- package/dist/types/shared/cpu-scale.d.ts +25 -0
- package/dist/types/shared/ddns-form.d.ts +62 -0
- package/dist/types/shared/endpoint.d.ts +8 -0
- package/dist/types/shared/error-message.d.ts +8 -0
- package/dist/types/shared/fields.d.ts +21 -0
- package/dist/types/shared/generated.d.ts +26 -0
- package/dist/types/shared/host-readings.d.ts +185 -0
- package/dist/types/shared/patch-diff.d.ts +94 -0
- package/dist/types/shared/probe-latency.d.ts +25 -0
- package/dist/types/shared/proxy-form.d.ts +182 -0
- package/dist/types/shared/server-attention.d.ts +37 -0
- package/dist/types/shared/server-key.d.ts +13 -0
- package/dist/types/shared/server-readings.d.ts +55 -0
- package/dist/types/shared/server-url.d.ts +43 -0
- package/dist/types/shared/shape.d.ts +17 -0
- package/dist/types/shared/ui-format.d.ts +89 -0
- package/docs/API.md +180 -0
- package/docs/BACKUPS.md +97 -0
- package/docs/CLI.md +122 -0
- package/docs/DDNS.md +12 -3
- package/docs/NOTIFICATIONS.md +3 -1
- package/docs/RESTORE_DEMO.md +6 -4
- package/docs/REVERSE_PROXY.md +2 -2
- package/docs/SECURITY.md +82 -0
- package/docs/SERVERS.md +47 -15
- package/docs/UI_CREATION.md +82 -286
- package/package.json +18 -9
- package/uis/stock/dist/assets/de-DyGrM1KK.js +1 -0
- package/uis/stock/dist/assets/es-BebHdc0E.js +1 -0
- package/uis/stock/dist/assets/fr-DsDTrxhI.js +1 -0
- package/uis/stock/dist/assets/index-6LANO2Ua.css +2 -0
- package/uis/stock/dist/assets/index-D06cUZbM.js +56 -0
- package/uis/stock/dist/assets/ja-D3RARJjW.js +1 -0
- package/uis/stock/dist/assets/ko-CKI3dFoD.js +1 -0
- package/uis/stock/dist/assets/ru-DEU5ujXt.js +1 -0
- package/uis/stock/dist/assets/vi-ULKPnasj.js +1 -0
- package/uis/stock/dist/assets/zh-CN-tCvnOxWy.js +1 -0
- package/uis/stock/dist/index.html +2 -2
- package/uis/stock/dist/ui.json +3 -3
- package/AGENTS.md +0 -403
- package/uis/stock/dist/assets/de-CiSKBON6.js +0 -1
- package/uis/stock/dist/assets/es-BgNQbboq.js +0 -1
- package/uis/stock/dist/assets/fr-WzBF8AXI.js +0 -1
- package/uis/stock/dist/assets/index-CXDl25BP.js +0 -53
- package/uis/stock/dist/assets/index-Cok5msAO.css +0 -2
- package/uis/stock/dist/assets/ja-DMQqF4ip.js +0 -1
- package/uis/stock/dist/assets/ko-DgfSg9v_.js +0 -1
- package/uis/stock/dist/assets/ru-DjIByX61.js +0 -1
- package/uis/stock/dist/assets/vi-DOB8nYFC.js +0 -1
- package/uis/stock/dist/assets/zh-CN-DZ3WlUgy.js +0 -1
package/README.md
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
<sub>The harness for your servers.</sub>
|
|
10
10
|
|
|
11
|
-
Point it at the things you run — a gateway, a media server, a bot, a database — and it starts
|
|
12
|
-
|
|
13
|
-
[workspaces](#-workspaces) when one panel holds more than one setup
|
|
14
|
-
[
|
|
11
|
+
Point it at the things you run — a gateway, a media server, a bot, a database — and it starts them,
|
|
12
|
+
watches them, restarts what dies, and shows you one page of what is going on. Split them into
|
|
13
|
+
[workspaces](#-workspaces) when one panel holds more than one setup, and
|
|
14
|
+
[bring your own UI](#-bring-your-own-ui-byou) when you want one that fits you exactly.
|
|
15
15
|
|
|
16
16
|
[](https://www.npmjs.com/package/home-hosted)
|
|
17
17
|
[](https://www.npmjs.com/package/home-hosted)
|
|
@@ -19,7 +19,7 @@ them, watches them, restarts what dies, and shows you one page of what is going
|
|
|
19
19
|
[](./LICENSE)
|
|
20
20
|
[](https://nodejs.org)
|
|
21
21
|
|
|
22
|
-
[🚀 Quick start](#-quick-start) · [🗂 Workspaces](#-workspaces) · [🧩 Servers](./docs/SERVERS.md) · [🤖 Agents & API](#-agents-scripts-and-tools) · [✨ Features](#-features) · [🛠 CLI](#-cli) · [🔔 Notifications](./docs/NOTIFICATIONS.md) · [🔀 Reverse proxy](./docs/REVERSE_PROXY.md) · [🎨 BYOU](#-bring-your-own-ui-byou)
|
|
22
|
+
[🚀 Quick start](#-quick-start) · [🗂 Workspaces](#-workspaces) · [🧩 Servers](./docs/SERVERS.md) · [🤖 Agents & API](#-agents-scripts-and-your-own-tools) · [✨ Features](#-features) · [🛠 CLI](#-cli) · [🔔 Notifications](./docs/NOTIFICATIONS.md) · [🌐 Dynamic DNS](./docs/DDNS.md) · [💾 Backups](#-backups) · [🔀 Reverse proxy](./docs/REVERSE_PROXY.md) · [🔐 Security](#-security) · [🎨 BYOU](#-bring-your-own-ui-byou) · [❓ FAQ](#-faq)
|
|
23
23
|
|
|
24
24
|
</div>
|
|
25
25
|
|
|
@@ -27,11 +27,10 @@ them, watches them, restarts what dies, and shows you one page of what is going
|
|
|
27
27
|
|
|
28
28
|
<div align="center">
|
|
29
29
|
|
|
30
|
-

|
|
31
31
|
|
|
32
|
-
<sub>The stock panel, the [NOC
|
|
33
|
-
|
|
34
|
-
<a href="#-bring-your-own-ui-byou">BYOU</a>.</sub>
|
|
32
|
+
<sub>The stock panel, the [NOC console](./uis/noc-console) that ships alongside it, and UI directions
|
|
33
|
+
you could build yourself — <a href="#-bring-your-own-ui-byou">BYOU</a>.</sub>
|
|
35
34
|
|
|
36
35
|
</div>
|
|
37
36
|
|
|
@@ -40,17 +39,17 @@ shortcuts wizards), and UI directions you could build yourself —
|
|
|
40
39
|
## 🤔 Why?
|
|
41
40
|
|
|
42
41
|
You run a handful of services at home. The usual choices are extremes — 🧟 `tmux` sessions you
|
|
43
|
-
forget about, 📜 a hand-written systemd unit per service
|
|
44
|
-
|
|
42
|
+
forget about, 📜 a hand-written systemd unit per service, or 🐳 a whole container orchestrator — plus
|
|
43
|
+
😩 the monitoring, the reboots and the day you move to a new machine.
|
|
45
44
|
|
|
46
|
-
🙂✨ home-hosted
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
🙂✨ home-hosted sits in between: declare a server once, and it is started, watched, restarted,
|
|
46
|
+
alerted on, backed up and shown on one page — whether it is a plain command or a `docker compose`
|
|
47
|
+
stack.
|
|
49
48
|
|
|
50
49
|
```text
|
|
51
50
|
┌──────────────────────────────────────┐
|
|
52
|
-
your browser ──▶│ home-hosted · 127.0.0.1:3999
|
|
53
|
-
│
|
|
51
|
+
your browser ──▶│ home-hosted · 127.0.0.1:3999 │◀── scripts, agents, your own UI
|
|
52
|
+
│ UI + JSON API + live events (SSE) │ (Bearer token, OpenAPI)
|
|
54
53
|
└───────────────┬──────────────────────┘
|
|
55
54
|
│ supervises
|
|
56
55
|
┌──────────────────────────┼──────────────────────────┐
|
|
@@ -59,250 +58,162 @@ command or a `docker compose` stack.
|
|
|
59
58
|
│ gateway │ │ files │ │ bot │
|
|
60
59
|
│ :4000 │ │ :4010 │ │ ... │
|
|
61
60
|
└────┬────┘ └─────────┘ └─────────┘
|
|
62
|
-
│ compose up
|
|
61
|
+
│ compose up restarts ↻ · health ✓ · logs · alerts
|
|
63
62
|
▼
|
|
64
63
|
┌────────────┬────────────┬────────────┐
|
|
65
|
-
│ gateway │ postgres │ redis │
|
|
64
|
+
│ gateway │ postgres │ redis │ + backups · DDNS · reverse proxy (HTTPS)
|
|
66
65
|
└────────────┴────────────┴────────────┘
|
|
67
|
-
health ✓ (the published port is the probe)
|
|
68
66
|
```
|
|
69
67
|
|
|
70
68
|
| | |
|
|
71
69
|
| --- | --- |
|
|
72
|
-
| ❌ **"Is it still running?"** | Health, CPU/
|
|
73
|
-
| ❌ **Silent deaths** | Restarted automatically, and the panel or
|
|
70
|
+
| ❌ **"Is it still running?"** | Health, CPU/memory, uptime and live logs per server |
|
|
71
|
+
| ❌ **Silent deaths** | Restarted automatically, and you are told — in the panel, Telegram or a webhook |
|
|
74
72
|
| ❌ **Fragile reboots** | `autostart` brings the stack back; one `down` stops it all cleanly |
|
|
75
|
-
| ❌ **"Move it to the new box"** | One archive
|
|
76
|
-
| ✅ **home-hosted** | Declare it once, watch it forever
|
|
73
|
+
| ❌ **"Move it to the new box"** | One archive — config **and** data — restored on a blank host |
|
|
74
|
+
| ✅ **home-hosted** | Declare it once, watch it forever |
|
|
77
75
|
|
|
78
|
-
It ships with **no servers configured**:
|
|
79
|
-
environment you give it. A preset can fill that in for you, and you can change every field after:
|
|
76
|
+
It ships with **no servers configured**: a server is a command, its arguments and its environment.
|
|
80
77
|
|
|
81
78
|
```json
|
|
82
79
|
{ "id": "gateway", "command": "node", "args": ["server.js"], "port": 4000, "autostart": true }
|
|
83
80
|
```
|
|
84
81
|
|
|
85
|
-
<sub>Manage them from the panel, `home-hosted start|stop <id>` from a shell, `home-hosted status --json`,
|
|
86
|
-
or `GET /api/state`; `GET /healthz` is the same status line for your own monitor, no session needed —
|
|
87
|
-
`503` when a server has crashed, when the panel stopped one because it could not serve, or while
|
|
88
|
-
a running one is failing its health check.</sub>
|
|
89
|
-
|
|
90
82
|
---
|
|
91
83
|
|
|
92
84
|
## ⚡ Quick start
|
|
93
85
|
|
|
94
86
|
```bash
|
|
95
|
-
npx home-hosted # start it — detached, it
|
|
96
|
-
npx home-hosted status # where is
|
|
97
|
-
#
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
That is it. The panel is on **<http://127.0.0.1:3999>** and keeps running after the terminal
|
|
101
|
-
closes. <sub>Needs Node 24 or newer.</sub> Stop it whenever you like:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
npx home-hosted down # stops the panel *and* everything it started
|
|
87
|
+
npx home-hosted # start it — detached, it keeps running — and print the first-run password
|
|
88
|
+
npx home-hosted status # where it is, what is running, the first-run password until you change it
|
|
89
|
+
npx home-hosted down # stop the panel *and* everything it started
|
|
105
90
|
```
|
|
106
91
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
> it under **Global settings → Authentication** — binding beyond `127.0.0.1` stays refused until you do.
|
|
92
|
+
Open **<http://127.0.0.1:3999>**, sign in with the printed password, and change it under **Global
|
|
93
|
+
settings → Authentication**. <sub>Needs Node 24+. `pnpm dlx home-hosted …` works too.</sub>
|
|
110
94
|
|
|
111
95
|
<details>
|
|
112
96
|
<summary><b>📦 Install it instead of npx-ing it</b></summary>
|
|
113
97
|
|
|
114
98
|
```bash
|
|
115
99
|
npm install -g home-hosted # or: pnpm add -g home-hosted
|
|
116
|
-
|
|
100
|
+
hh up # `hh` is the short name for `home-hosted`
|
|
117
101
|
```
|
|
118
102
|
|
|
119
|
-
Everything it owns
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<sub>An installed home-hosted answers to **`hh`** too — `hh up`, `hh status`, `hh down`. Only the
|
|
123
|
-
installed form gets it; npx stays `npx home-hosted …`.</sub>
|
|
103
|
+
Everything it owns lives under `$HHOSTED_HOME/.hh` (default `~/.home-hosted/.hh`). Delete that and
|
|
104
|
+
nothing of it is left behind.
|
|
124
105
|
|
|
125
106
|
</details>
|
|
126
107
|
|
|
127
108
|
<details>
|
|
128
|
-
<summary><b>📁 Keep a whole setup in a
|
|
129
|
-
|
|
130
|
-
Commit the project and it *is* the setup. `init` scaffolds it:
|
|
109
|
+
<summary><b>📁 Keep a whole setup in a git repository</b></summary>
|
|
131
110
|
|
|
132
111
|
```bash
|
|
133
|
-
npx home-hosted init #
|
|
134
|
-
# project directory, package name, package manager, install, git — every step has a default
|
|
135
|
-
# `--yes` takes them all, for an agent or a CI job
|
|
112
|
+
npx home-hosted init # every step has a default; --yes takes them all
|
|
136
113
|
```
|
|
137
114
|
|
|
138
|
-
|
|
115
|
+
The project's scripts all pass `--home ./state`, and its `.gitignore` commits the server
|
|
116
|
+
definitions while keeping secrets, logs, TLS keys and archives local:
|
|
139
117
|
|
|
140
118
|
```jsonc
|
|
141
119
|
// package.json
|
|
142
|
-
{
|
|
143
|
-
"scripts": {
|
|
144
|
-
"up": "home-hosted up --home ./state",
|
|
145
|
-
"down": "home-hosted down --home ./state",
|
|
146
|
-
"status": "home-hosted status --home ./state"
|
|
147
|
-
// …and restart, set-password, set-token, migrate
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
```gitignore
|
|
153
|
-
node_modules/
|
|
154
|
-
state/.hh/* # secrets, logs, TLS keys and archives stay local…
|
|
155
|
-
!state/.hh/settings.json # …but the workspace definitions are committed
|
|
156
|
-
!state/.hh/workspaces.json
|
|
157
|
-
state/.hh/*/*
|
|
158
|
-
!state/.hh/*/ # git will not descend into an excluded directory,
|
|
159
|
-
# so the directories must be un-ignored first
|
|
160
|
-
!state/.hh/*/settings.json
|
|
161
|
-
!state/.hh/*/servers.config.json
|
|
162
|
-
data/ # per-server data directories, declared through dataEnvs
|
|
120
|
+
{ "scripts": { "up": "home-hosted up --home ./state", "down": "home-hosted down --home ./state", "status": "home-hosted status --home ./state" } }
|
|
163
121
|
```
|
|
164
122
|
|
|
165
|
-
|
|
166
|
-
|
|
123
|
+
Clone, `pnpm install`, `pnpm run up` — the same setup on any machine with Node. Give each project its
|
|
124
|
+
own panel port (`control.port`, e.g. `4399`) so two can run side by side. Call it `pnpm run up`:
|
|
125
|
+
`pnpm up` is pnpm's own update command. Worked example:
|
|
167
126
|
**[hhosted-ai-pack](https://github.com/NamesMT/hhosted-ai-pack)**.
|
|
168
127
|
|
|
169
|
-
<sub>Call them as `pnpm run up` — `pnpm up` is pnpm's own update, not your script.</sub>
|
|
170
|
-
|
|
171
|
-
<sub>Working **on** this repo? Its own scripts keep state in `.dev-state/`, so trying a change cannot
|
|
172
|
-
touch an installed panel: `pnpm run up|down|status|restart` are shorthand, and `pnpm run cli <command>`
|
|
173
|
-
runs anything else the CLI takes — `pnpm run cli backup list`.</sub>
|
|
174
|
-
|
|
175
|
-
> [!TIP]
|
|
176
|
-
> Recommended to give a project its own panel port (`control.port`, e.g. `4399`), to avoid port conflict
|
|
177
|
-
> with other projects.
|
|
178
|
-
|
|
179
128
|
</details>
|
|
180
129
|
|
|
181
130
|
<details>
|
|
182
|
-
<summary><b>🧰
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
home-hosted up --foreground # stays in the foreground, logs to stderr
|
|
186
|
-
```
|
|
131
|
+
<summary><b>🧰 Start it at boot: systemd or Docker</b></summary>
|
|
187
132
|
|
|
188
133
|
```ini
|
|
189
134
|
[Unit]
|
|
190
135
|
Description=home-hosted
|
|
136
|
+
After=network-online.target
|
|
137
|
+
|
|
191
138
|
[Service]
|
|
192
|
-
User
|
|
139
|
+
User=youruser
|
|
193
140
|
WorkingDirectory=/srv/home-hosted
|
|
194
|
-
ExecStart=/usr/local/bin/home-hosted up --foreground
|
|
195
141
|
Environment=HHOSTED_HOME=/srv/home-hosted
|
|
142
|
+
ExecStart=/usr/local/bin/home-hosted up --foreground
|
|
196
143
|
Restart=always
|
|
144
|
+
|
|
197
145
|
[Install]
|
|
198
146
|
WantedBy=multi-user.target
|
|
199
147
|
```
|
|
148
|
+
|
|
200
149
|
> [!CAUTION]
|
|
201
|
-
>
|
|
202
|
-
>
|
|
203
|
-
>
|
|
204
|
-
> path in your `servers.config.json` points somewhere under `/` and the entries fail to start.
|
|
205
|
-
> Docker does the same unless you pass `-w`. Set it to the directory holding the config you run
|
|
206
|
-
> from, or pin it explicitly with `Environment=HHOSTED_PROJECT=/srv/home-hosted`.
|
|
207
|
-
>
|
|
208
|
-
> Note: change `$YOUR_USER` to your actual user account, or remove for `root`.
|
|
209
|
-
> You could also change `/srv/home-hosted` to change where the data stores.
|
|
150
|
+
> **Set `WorkingDirectory`.** Relative paths in your servers (`cwd`, `{projectDir}`, `dataEnvs`)
|
|
151
|
+
> resolve against the directory the panel starts in, and systemd starts in `/`. Docker does the same
|
|
152
|
+
> without `-w`. Or pin it with `HHOSTED_PROJECT`.
|
|
210
153
|
|
|
211
154
|
</details>
|
|
212
155
|
|
|
213
156
|
---
|
|
214
157
|
|
|
215
|
-
## 🤖 Agents, scripts and tools
|
|
158
|
+
## 🤖 Agents, scripts and your own tools
|
|
216
159
|
|
|
217
|
-
Everything the panel does
|
|
218
|
-
|
|
219
|
-
and read logs.
|
|
160
|
+
Everything the panel does goes through one HTTP API — the stock UI is just one client of it. Get a
|
|
161
|
+
token, then plain HTTP:
|
|
220
162
|
|
|
221
163
|
```bash
|
|
222
|
-
home-hosted set-token --generate
|
|
223
|
-
#
|
|
164
|
+
home-hosted set-token --generate # hh_9uA2… — printed once, only its hash is kept
|
|
165
|
+
# (or Global settings → Authentication → Generate token)
|
|
224
166
|
|
|
225
|
-
curl -H "Authorization: Bearer
|
|
226
|
-
curl -H "Authorization: Bearer
|
|
227
|
-
curl -N -H "Authorization: Bearer
|
|
228
|
-
home-hosted status --json
|
|
167
|
+
curl -H "Authorization: Bearer hh_…" http://127.0.0.1:3999/api/state
|
|
168
|
+
curl -H "Authorization: Bearer hh_…" -X POST 'http://127.0.0.1:3999/api/servers/gateway/restart?workspace=default'
|
|
169
|
+
curl -N -H "Authorization: Bearer hh_…" http://127.0.0.1:3999/api/events # live SSE
|
|
170
|
+
home-hosted status --json # where everything is
|
|
229
171
|
```
|
|
230
172
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
173
|
+
Building in TypeScript? `import { createClient } from 'home-hosted/client'` — a ~3 KB client typed
|
|
174
|
+
from the panel's own routes, with the live event stream ([API.md](./docs/API.md#the-typescript-client)).
|
|
175
|
+
Any other language: `GET /openapi/spec.json` describes all of it (browse at `/openapi/ui`), so an
|
|
176
|
+
OpenAPI generator gives you a typed client. `GET /healthz` needs no credential and is `503` while any server needs attention —
|
|
177
|
+
point your uptime monitor at it.
|
|
178
|
+
|
|
179
|
+
> [!WARNING]
|
|
180
|
+
> **A token is full admin.** It can create and start server entries, which run commands as the
|
|
181
|
+
> panel's user. Keep it like a password; rotate with `set-token --generate`.
|
|
237
182
|
|
|
238
183
|
<details>
|
|
239
184
|
<summary><b>🌐 The endpoints worth knowing</b></summary>
|
|
240
185
|
|
|
241
|
-
|
|
186
|
+
✅ takes `?workspace=<id>` (omitted = the default workspace); ❌ is panel-wide.
|
|
187
|
+
|
|
188
|
+
| | | |
|
|
242
189
|
| --- | --- | --- |
|
|
243
|
-
| `GET /api/state` | the full snapshot:
|
|
244
|
-
| `GET
|
|
245
|
-
| `GET /api/
|
|
246
|
-
| `GET`/`POST /api/servers`, `
|
|
247
|
-
| `
|
|
248
|
-
| `
|
|
249
|
-
| `GET /api/
|
|
250
|
-
|
|
|
251
|
-
| `GET
|
|
252
|
-
| `
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
| `GET /api/metrics` | Prometheus text (needs a token or session, like every `/api` route) — scrape it with a bearer token | ❌ |
|
|
259
|
-
|
|
260
|
-
✅ takes `?workspace=<id>`; ❌ is panel-wide. Omitting `?workspace` means `default` workspace is used.
|
|
261
|
-
|
|
262
|
-
**Scraping it.** Point your scraper at `/api/metrics` with the token from `home-hosted set-token
|
|
263
|
-
--generate` as `Authorization: Bearer …`, because it lives under `/api` like every other route.
|
|
264
|
-
`hh_host_cpu_used_percent` is the machine's own CPU share (0–100) — the figure to alert on.
|
|
265
|
-
`hh_host_load1_per_cpu` beside it is a **count of runnable tasks per core**, not a percentage:
|
|
266
|
-
`1.0` means one core's worth of work waiting, so it is fine on a busy box and not comparable with the
|
|
267
|
-
percentage above. A host gauge appears only once the host has been sampled, so a series that is
|
|
268
|
-
*absent* means "no reading", never "zero": do not let a dashboard fill that in. `hh_server_restarts`
|
|
269
|
-
counts the retry attempts spent on a server's **current** crash sequence and drops back to `0` when
|
|
270
|
-
someone starts it, so it is a state, not a counter to `rate()` — `hh_server_crashes_24h` is the one
|
|
271
|
-
that only grows within its window. No series here is a Prometheus counter: every one is a snapshot a
|
|
272
|
-
stop, a delete or a manual start can lower, so no name ends in `_total`.
|
|
273
|
-
|
|
274
|
-
> **Upgrading from 0.9.x — a dashboard needs one edit.** The series formerly named
|
|
275
|
-
> `hh_server_restarts_total` is now `hh_server_restarts` (a gauge, unchanged in meaning and labels).
|
|
276
|
-
> It was never a valid counter: a start you asked for reset it to `0`, so `rate()` reported a phantom
|
|
277
|
-
> counter reset. Replace every query on `hh_server_restarts_total` with `hh_server_restarts`, and use
|
|
278
|
-
> the gauge directly (`hh_server_restarts > 2`) rather than `rate()`/`increase()`. The count series
|
|
279
|
-
> `hh_servers_total` is now `hh_servers` for the same reason. Old dashboards will show *no data*
|
|
280
|
-
> for those two series after the upgrade — the panel publishes neither old name.
|
|
281
|
-
|
|
282
|
-
`GET /openapi/spec.json` describes all of it, `/openapi/ui` is the browsable version, and every error
|
|
283
|
-
comes back as one envelope (`{ message, code, detail }`) with a stable `code` a tool can branch on. The
|
|
284
|
-
document declares its own `securitySchemes` (`bearerAuth`), every documented 2xx carries a schema, and
|
|
285
|
-
each operation is tagged — so `openapi-typescript`, `openapi-generator` or a docs renderer can generate
|
|
286
|
-
a working client without hand-written glue. `/openapi/ui` builds its route index from the spec itself, so
|
|
287
|
-
it stays readable on a box with no internet; the richer interactive browser it also offers is fetched
|
|
288
|
-
from a **version-pinned** CDN and is optional — the plain index is what you get when that CDN is
|
|
289
|
-
unreachable. Scalar's bundle does render offline when self-hosted, but it is 4.9 MB, so the index is the
|
|
290
|
-
cheaper trade for a panel that ships no other web assets.
|
|
190
|
+
| `GET /api/state` | the full snapshot: settings, every workspace and server, host vitals | ❌ |
|
|
191
|
+
| `GET /api/events` | SSE: `hello` (full state), then `state`, `server`, `log`, `ping` | optional |
|
|
192
|
+
| `GET`/`POST /api/workspaces`, `PATCH`/`DELETE /api/workspaces/:id` | the workspace registry | ❌ |
|
|
193
|
+
| `GET`/`POST /api/servers`, `GET`/`PUT`/`PATCH`/`DELETE /api/servers/:id` | entries — `PUT` is create-or-replace, so a re-run converges | ✅ |
|
|
194
|
+
| `POST /api/servers/:id/{start,stop,restart,free-port}`, `/api/servers/{start-all,stop-all}` | lifecycle | ✅ |
|
|
195
|
+
| `GET /api/servers/:id/logs`, `/api/servers/:id/stream`, `/api/logs/:id` | buffered lines, one server's SSE, files on disk | ✅ |
|
|
196
|
+
| `GET`/`PATCH /api/settings`, `GET`/`PATCH /api/settings/workspace` | panel-wide / per-workspace settings | ❌ / ✅ |
|
|
197
|
+
| `/api/backups`, `/api/proxy`, `/api/ddns`, `/api/notifications/…` | backups, reverse proxy, dynamic DNS, alerts | ❌ ❌ ✅ ✅ |
|
|
198
|
+
| `GET /api/metrics` | Prometheus text, with a bearer token | ❌ |
|
|
199
|
+
| `GET /healthz` | no credential needed — for your monitor | ❌ |
|
|
200
|
+
|
|
201
|
+
Every error is one envelope — `{ "message", "code", "detail"? }` — with a stable `code` to branch on.
|
|
202
|
+
On a **workspace-scoped** route an undeclared query key is refused (`400`), so a typo like `?worspace=`
|
|
203
|
+
never acts on the default workspace. Full reference, SSE frames, metrics and compatibility rules:
|
|
204
|
+
**[API.md](./docs/API.md)**.
|
|
291
205
|
|
|
292
206
|
</details>
|
|
293
207
|
|
|
294
208
|
<details>
|
|
295
|
-
<summary><b>🧑💻 Pointing an agent at it</b></summary>
|
|
209
|
+
<summary><b>🧑💻 Pointing an AI agent at it</b></summary>
|
|
296
210
|
|
|
297
|
-
Give
|
|
211
|
+
Give it four things and it can run your home server without guessing:
|
|
298
212
|
|
|
299
213
|
1. the token (`home-hosted set-token --generate`),
|
|
300
214
|
2. `http://127.0.0.1:3999/openapi/spec.json` — the API it may call,
|
|
301
215
|
3. `home-hosted status --json` — where things are,
|
|
302
|
-
4. [SERVERS.md](./docs/SERVERS.md) — how
|
|
303
|
-
|
|
304
|
-
For a UI rather than the API, [UI_CREATION.md](./docs/UI_CREATION.md) is the whole contract, and the panel
|
|
305
|
-
can be told what to be: *"Help me build a UI for home-hosted: nostalgic game theme, including …"*.
|
|
216
|
+
4. [SERVERS.md](./docs/SERVERS.md) — how a server is declared.
|
|
306
217
|
|
|
307
218
|
</details>
|
|
308
219
|
|
|
@@ -312,49 +223,46 @@ can be told what to be: *"Help me build a UI for home-hosted: nostalgic game the
|
|
|
312
223
|
|
|
313
224
|
| | |
|
|
314
225
|
| --- | --- |
|
|
315
|
-
| 🗂 **Workspaces** | One panel, many
|
|
316
|
-
| 🚦 **Lifecycle** | Start, stop, restart from the panel or the API; `autostart` entries come up with it. A process left behind by a renamed
|
|
317
|
-
| 📝 **Hand edits welcome** | Edit `servers.config.json` in an editor or
|
|
318
|
-
| ♻️ **Auto-restart** | Exponential backoff on crash, with
|
|
319
|
-
| 🩺 **Health that acts** | TCP or HTTP probes
|
|
320
|
-
| 🔗 **Ordered startup** | `dependsOn` waits for a dependency to be *healthy
|
|
321
|
-
|
|
|
322
|
-
|
|
|
323
|
-
|
|
|
324
|
-
|
|
|
325
|
-
| 🔔 **Notifications** | Telegram and webhooks (ntfy, Discord, Slack,
|
|
326
|
-
| 🌐 **Dynamic DNS** | Keep hostnames
|
|
327
|
-
| 🔀 **Reverse proxy** | One Caddy engine
|
|
328
|
-
| 💾 **Backups** |
|
|
329
|
-
|
|
|
330
|
-
| 🎨 **
|
|
331
|
-
|
|
|
332
|
-
|
|
|
333
|
-
| 🖥 **Cross-platform** | Linux, macOS and Windows: `/proc`, `ps` or Win32_Process, process groups or `taskkill /T`, no shell dependencies. |
|
|
226
|
+
| 🗂 **Workspaces** | One panel, many setups. Each owns its servers, secrets, logs and settings; listener, auth, backups, TLS and UI stay panel-wide |
|
|
227
|
+
| 🚦 **Lifecycle** | Start, stop, restart from the panel, the CLI or the API; `autostart` entries come up with it. A process left behind by a renamed entry is listed with a stop button |
|
|
228
|
+
| 📝 **Hand edits welcome** | Edit `servers.config.json` in an editor or `git checkout` — picked up in seconds. A file it cannot read is reported, and running servers are left alone |
|
|
229
|
+
| ♻️ **Auto-restart** | Exponential backoff on crash, with a retry budget that survives a panel restart |
|
|
230
|
+
| 🩺 **Health that acts** | TCP or HTTP probes: warn, then force a restart. Ports checked before starting; a program that restarts itself can be [followed](./docs/SERVERS.md#when-a-program-restarts-itself) |
|
|
231
|
+
| 🔗 **Ordered startup** | `dependsOn` waits for a dependency to be *healthy*, not just spawned; `down` stops dependents first |
|
|
232
|
+
| ♾️ **Persistent entries** | A server that keeps running — and logging — while the panel restarts or upgrades |
|
|
233
|
+
| 📜 **Logs** | Live stream, rotated files, search, download, clear |
|
|
234
|
+
| 📈 **Resources** | CPU and memory per process tree (summed containers for compose), with an optional memory ceiling |
|
|
235
|
+
| 🌡️ **Host vitals** | CPU, memory, swap, disk, temperature and load, with thresholds that alert once and again on recovery |
|
|
236
|
+
| 🔔 **Notifications** | Telegram and webhooks (ntfy, Discord, Slack, …) on crash, unhealthy, recovery, host thresholds and DNS changes |
|
|
237
|
+
| 🌐 **Dynamic DNS** | Keep hostnames on your public IP — Cloudflare, Namecheap, Porkbun, GoDaddy, Gandi, deSEC, DuckDNS, No-IP and more |
|
|
238
|
+
| 🔀 **Reverse proxy** | One Caddy engine with automatic HTTPS: `git.example.com` → a Gitea entry, `panel.example.com` → the panel |
|
|
239
|
+
| 💾 **Backups** | Config, secrets and data in one zip — plain or AES-256, scheduled or manual, restorable on a blank host |
|
|
240
|
+
| 🤖 **API first** | Bearer tokens, OpenAPI, SSE — scripts, agents, TUIs and desktop apps get everything the UI gets |
|
|
241
|
+
| 🎨 **Bring your own UI** | Upload a static build; `ui-update` follows its releases, `ui-revert` goes back |
|
|
242
|
+
| 🌍 **Translated** | English, Vietnamese, Chinese, Japanese, Spanish, Korean, Russian, French, German |
|
|
243
|
+
| 🖥 **Cross-platform** | Linux, macOS and Windows — no shell utilities assumed |
|
|
334
244
|
|
|
335
245
|
---
|
|
336
246
|
|
|
337
247
|
## 🗂 Workspaces
|
|
338
248
|
|
|
339
|
-
A workspace is the ownership boundary: its own servers, secrets, logs
|
|
340
|
-
|
|
249
|
+
A workspace is the ownership boundary: its own servers, secrets, logs and settings. The first boot
|
|
250
|
+
creates `default`. A server id is unique only inside its workspace.
|
|
341
251
|
|
|
342
252
|
| page | url | scope |
|
|
343
253
|
| --- | --- | --- |
|
|
344
|
-
| **Overview** | `/w/<workspace>`
|
|
345
|
-
| **
|
|
346
|
-
| **
|
|
347
|
-
| **
|
|
348
|
-
| **Global settings** | `/global/settings` | Listener, Authentication, Host vitals, Backups, TLS, Interface, Paths |
|
|
349
|
-
| **Reverse Proxy** | `/proxy` | panel-wide: one engine, every workspace's servers ([REVERSE_PROXY.md](./docs/REVERSE_PROXY.md)) |
|
|
254
|
+
| **Overview** · **Servers** · **Logs** · **Settings** | `/w/<workspace>` · `…/servers` · `…/logs` · `…/settings` | one workspace |
|
|
255
|
+
| **One server** | `/w/<workspace>/servers/<id>` | config, live logs, resources |
|
|
256
|
+
| **Global overview** · **Global settings** | `/global/overview` · `/global/settings` | every workspace; listener, auth, backups, TLS, UI |
|
|
257
|
+
| **Reverse proxy** | `/proxy` | panel-wide |
|
|
350
258
|
|
|
351
259
|
<details>
|
|
352
260
|
<summary><b>🗂 What lives where</b></summary>
|
|
353
261
|
|
|
354
262
|
| | |
|
|
355
263
|
| --- | --- |
|
|
356
|
-
|
|
|
357
|
-
| workspace — `.hh/<id>/` | `settings.json` (server defaults, logs, notifications, DDNS), `servers.config.json`, `.secrets.json` (
|
|
264
|
+
| panel-wide — `$HHOSTED_HOME/.hh/` | `settings.json` (listener, auth, TLS, host vitals, backups, proxy), `workspaces.json`, `.control-secrets.json` (password + token hashes, 0600), `.tls/`, `.ui/`, `.backups/`, `.logs/`, `.proxy/` (the engine and its state), `run.json` (the live panel, 0600) |
|
|
265
|
+
| per workspace — `.hh/<id>/` | `settings.json` (server defaults, logs, notifications, DDNS), `servers.config.json`, `.secrets.json` (0600), `.logs/<id>.log`, `.state/` |
|
|
358
266
|
|
|
359
267
|
</details>
|
|
360
268
|
|
|
@@ -362,24 +270,30 @@ The first boot creates a `default` workspace.
|
|
|
362
270
|
|
|
363
271
|
## 🧩 Servers
|
|
364
272
|
|
|
365
|
-
|
|
366
|
-
|
|
273
|
+
Add one with **➕ Add server** — presets for Node, Python, Jellyfin, Minecraft, Gitea, MongoDB, Docker
|
|
274
|
+
Compose and more fill the form — or write it into the workspace's `servers.config.json`:
|
|
367
275
|
|
|
368
276
|
```json
|
|
369
277
|
{
|
|
370
|
-
"id": "
|
|
278
|
+
"id": "blog",
|
|
371
279
|
"command": "node",
|
|
372
|
-
"args": ["server.js"],
|
|
280
|
+
"args": ["server.js", "--port", "{port}"],
|
|
281
|
+
"cwd": "./apps/blog",
|
|
373
282
|
"port": 8080,
|
|
283
|
+
"bind": "lan",
|
|
374
284
|
"autostart": true,
|
|
375
|
-
"dataEnvs": { "DATA_DIR": "{projectDir}/data/
|
|
285
|
+
"dataEnvs": { "DATA_DIR": "{projectDir}/data/blog" }
|
|
376
286
|
}
|
|
377
287
|
```
|
|
378
288
|
|
|
379
|
-
`
|
|
289
|
+
- `command` is a **program, not a shell line** — `"node server.js"` looks for a program of that name.
|
|
290
|
+
- `port` turns on the readiness wait, health checks and port-conflict detection.
|
|
291
|
+
- `bind` is `local` (`127.0.0.1`), `lan` (`0.0.0.0`) or one of this machine's IPv4 addresses; the
|
|
292
|
+
program reads it as `{host}`.
|
|
293
|
+
- `dataEnvs` sets an environment variable *and* marks that directory for backups.
|
|
380
294
|
|
|
381
|
-
**Every field,
|
|
382
|
-
|
|
295
|
+
**Every field, placeholder and port-conflict policy, plus Docker Compose and persistent entries:
|
|
296
|
+
[SERVERS.md](./docs/SERVERS.md).**
|
|
383
297
|
|
|
384
298
|
---
|
|
385
299
|
|
|
@@ -387,58 +301,55 @@ restarts itself), and how hand-edits are validated: [SERVERS.md](./docs/SERVERS.
|
|
|
387
301
|
|
|
388
302
|
| command | |
|
|
389
303
|
| --- | --- |
|
|
390
|
-
| `home-hosted up` | start the panel detached
|
|
391
|
-
| `home-hosted down` | stop it
|
|
392
|
-
| `home-hosted restart` | `down
|
|
393
|
-
| `home-hosted status` |
|
|
394
|
-
| `home-hosted start <id>` |
|
|
395
|
-
| `home-hosted
|
|
396
|
-
| `home-hosted
|
|
397
|
-
| `home-hosted
|
|
398
|
-
| `home-hosted
|
|
399
|
-
| `home-hosted
|
|
400
|
-
| `home-hosted
|
|
401
|
-
| `home-hosted
|
|
402
|
-
| `home-hosted
|
|
403
|
-
| `home-hosted
|
|
404
|
-
| `home-hosted ui-switch` | install a UI from a release asset, a zip file or a URL (interactive) |
|
|
405
|
-
| `home-hosted ui-update` | bring an installed UI up to date automatically (official UI) or pick a release (`--old`, `--check`) |
|
|
406
|
-
| `home-hosted ui-revert` | go back to the stock panel UI after uploading your own |
|
|
304
|
+
| `home-hosted up` | start the panel detached (already running? says where, exits 0) |
|
|
305
|
+
| `home-hosted down` | stop it and everything it started — persistent entries stay unless `--with-persistent` |
|
|
306
|
+
| `home-hosted restart [<id>]` | the panel (`down` then `up`), or just one server, leaving the panel up |
|
|
307
|
+
| `home-hosted status` | running? where? how many servers up? every path (`--json`) |
|
|
308
|
+
| `home-hosted start <id>` / `stop <id>` | one server, and what it `dependsOn` (`-w <workspace>`, `--free-port`) |
|
|
309
|
+
| `home-hosted free-port <id>` | ask whatever holds that server's port to stop; supervised holders are refused |
|
|
310
|
+
| `home-hosted logs [<id>]` | the panel's console, or one server's log (`--lines`, `--follow`, `--json`) |
|
|
311
|
+
| `home-hosted usage` | CPU and memory per server, loudest first |
|
|
312
|
+
| `home-hosted backup` | `list`, `create`, `restore` — works with the panel stopped |
|
|
313
|
+
| `home-hosted set-password` / `set-token` | credentials, without a browser |
|
|
314
|
+
| `home-hosted migrate` | bring configs up to this release's schema (`--dry-run`) |
|
|
315
|
+
| `home-hosted init` | scaffold a self-contained project |
|
|
316
|
+
| `home-hosted ui-switch` / `ui-update` / `ui-revert` | install, update or remove a custom UI |
|
|
317
|
+
| `home-hosted setup-temp --wsl` | read the CPU temperature through the Windows host on WSL2 |
|
|
407
318
|
|
|
408
319
|
<details>
|
|
409
|
-
<summary><b>⚙️
|
|
410
|
-
|
|
411
|
-
`home-hosted <command> --help` prints what that command takes.
|
|
320
|
+
<summary><b>⚙️ Every command and its flags</b></summary>
|
|
412
321
|
|
|
413
322
|
```text
|
|
414
|
-
up -p/--port --host --open --no-autostart --foreground --print-config
|
|
415
|
-
|
|
323
|
+
up -p/--port <port> --host <local|lan|ipv4> --open --no-autostart --foreground --print-config
|
|
416
324
|
down --with-persistent
|
|
325
|
+
restart (no id) down, then up: up's flags plus --with-persistent
|
|
326
|
+
restart <id> one server through the panel: [-w/--workspace <id>] — up's flags are refused here
|
|
417
327
|
status --json
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
328
|
+
start <id> [-w/--workspace <id>] [--free-port]
|
|
329
|
+
stop <id> [-w/--workspace <id>]
|
|
330
|
+
free-port <id> [-w/--workspace <id>]
|
|
331
|
+
logs [<id>] --lines <n|all> --follow --json [-w/--workspace <id>]
|
|
332
|
+
usage --json
|
|
333
|
+
backup [list|create|restore] [<name> | --from <path>] (--include <ids> | --all) [--exclude <ids>]
|
|
334
|
+
--password <text> --confirm --json
|
|
335
|
+
init --dir <dir> --name <name> --pm <pnpm|npm|yarn|bun> --no-install -y/--yes
|
|
336
|
+
set-password --clear (HHOSTED_PASSWORD for a script)
|
|
337
|
+
set-token --generate --clear (HHOSTED_TOKEN for a script)
|
|
338
|
+
migrate --dry-run -y/--yes (HHOSTED_MIGRATE=allow for a script)
|
|
339
|
+
ui-switch --repo <owner/name> --tag <tag> --asset <name> --file <path|url> --list --token <token> -y/--yes
|
|
340
|
+
ui-update --check --tag <tag> --asset <name> --old --repo <owner/name> --token <token> -y/--yes
|
|
428
341
|
ui-revert (no flags)
|
|
342
|
+
setup-temp --wsl [--download | --no-download] | --clear
|
|
429
343
|
|
|
430
|
-
every command --home <dir> --project <dir>
|
|
431
|
-
|
|
344
|
+
every command --home <dir> --project <dir> -h/--help -v/--version (or $HHOSTED_HOME, $HHOSTED_PROJECT)
|
|
345
|
+
environment HHOSTED_PASSWORD, HHOSTED_TOKEN, HHOSTED_MIGRATE=allow, HHOSTED_DDNS_SECRET,
|
|
346
|
+
GITHUB_TOKEN / GH_TOKEN (ui-switch, ui-update)
|
|
432
347
|
```
|
|
433
348
|
|
|
434
|
-
`
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
A misspelled command or option names the one you meant — `home-hosted restar` answers
|
|
440
|
-
`did you mean \`restart\`?`, and `up --prt 4000` answers `did you mean \`--port\`?`. Both stay quiet
|
|
441
|
-
when nothing is close, rather than guessing.
|
|
349
|
+
- `--json` prints one document on stdout or nothing; refusals go to stderr. Branch on the exit code.
|
|
350
|
+
- Piping into `head`/`grep -q` exits 0, so `set -o pipefail` is safe.
|
|
351
|
+
- `start web && curl …` works: `start` waits to confirm the process stayed up.
|
|
352
|
+
- A misspelled command or flag suggests the one you meant.
|
|
442
353
|
|
|
443
354
|
</details>
|
|
444
355
|
|
|
@@ -446,75 +357,24 @@ when nothing is close, rather than guessing.
|
|
|
446
357
|
<summary><b>🧭 Upgrading, and why the panel sometimes refuses to start</b></summary>
|
|
447
358
|
|
|
448
359
|
```bash
|
|
449
|
-
home-hosted migrate --dry-run #
|
|
450
|
-
home-hosted migrate #
|
|
360
|
+
home-hosted migrate --dry-run # what would change
|
|
361
|
+
home-hosted migrate # asks before each schema step, keeps a .bak beside each file
|
|
451
362
|
```
|
|
452
363
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
- **A newer home-hosted always reads an older config** — every existing key keeps its meaning.
|
|
459
|
-
- **Keys a newer release added are ignored, not fatal.** The panel names them in its log, leaves them
|
|
460
|
-
in the file, and never resets the settings around them.
|
|
461
|
-
|
|
462
|
-
What it will not do is run a config it cannot read. A wrong value, a duplicate id, an unreadable file
|
|
463
|
-
or a config whose schema is newer than the running release stops `up` with the exact problem, rather
|
|
464
|
-
than starting with defaults that quietly differ from your file. Fix the file, or install the release
|
|
465
|
-
that wrote it.
|
|
466
|
-
|
|
467
|
-
### Two things `migrate` cannot fix
|
|
468
|
-
|
|
469
|
-
`migrate` moves a config file. Two changes in this release are *outside* the config, so read these
|
|
470
|
-
before upgrading — a stale one fails quietly, which is the worst way to fail.
|
|
471
|
-
|
|
472
|
-
**A dashboard on `/api/metrics`.** Two series were renamed in the release that made every metric
|
|
473
|
-
honest about being a gauge: `hh_server_restarts_total` is now `hh_server_restarts`, and
|
|
474
|
-
`hh_servers_total` is now `hh_servers`. The old names are not published, so a query still on one
|
|
475
|
-
shows *no data* rather than a stale number. Compare the gauge directly (`hh_server_restarts > 2`);
|
|
476
|
-
do not wrap it in `rate()`/`increase()`, because a start you asked for resets it.
|
|
477
|
-
|
|
478
|
-
**A script that holds only an API token.** Three operations now require a signed-in session, because
|
|
479
|
-
each would otherwise let a stolen token end up holding the panel: clearing the password, switching
|
|
480
|
-
authentication off, and restoring an archive that carries `global:secrets`. Each answers 403
|
|
481
|
-
`SESSION_REQUIRED`. Scripts should either sign in first, pass `--exclude global:secrets` to a
|
|
482
|
-
restore, or run the command on the machine (`home-hosted set-password --clear`,
|
|
483
|
-
`home-hosted backup restore`, which both go through the local channel).
|
|
484
|
-
|
|
485
|
-
### Coming from 0.6.x
|
|
486
|
-
|
|
487
|
-
**Install the latest 0.7.x first, and run it once.** 0.7.0 moved all state from `$HHOSTED_HOME` itself
|
|
488
|
-
into `$HHOSTED_HOME/.hh`, splitting the old all-in-one `servers.config.json` into global settings, a
|
|
489
|
-
`default` workspace, and that workspace's servers — and it did the move automatically on its first
|
|
490
|
-
run. 0.8.0 dropped that relocation.
|
|
491
|
-
|
|
492
|
-
So a home that is still on the 0.6.x layout is not read: `up` stops and names the file it found,
|
|
493
|
-
rather than starting against an empty state directory beside a config it never opened. 0.7.x does
|
|
494
|
-
the move on its first run; 0.8.0 then starts against the result.
|
|
364
|
+
A newer release always reads an older config, and unknown keys are kept and reported, never reset.
|
|
365
|
+
What it will not do is run a config it cannot read — a wrong value, a duplicate id, a newer schema —
|
|
366
|
+
so `up` stops with the exact problem instead of starting on defaults. Release notes say what each
|
|
367
|
+
upgrade needs from you. **Coming from 0.6.x:** run the latest 0.7.x once first.
|
|
495
368
|
|
|
496
369
|
</details>
|
|
497
370
|
|
|
498
371
|
<details>
|
|
499
|
-
<summary><b>🤔 What <code>status</code> tells you
|
|
500
|
-
|
|
501
|
-
`home-hosted status` prints the panel's console path *and* the per-server log directory, naming the
|
|
502
|
-
`<id>.log` convention once logs exist.
|
|
372
|
+
<summary><b>🤔 What <code>status --json</code> tells you</b></summary>
|
|
503
373
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
| --- | --- |
|
|
509
|
-
| `alive` | the recorded pid is this panel |
|
|
510
|
-
| `gone` | it is not running; the record is stale and may be cleared |
|
|
511
|
-
| `recycled` | the OS has handed the recorded pid to **another** process. The record is stale, but a signal would hit a stranger, so only the token-authenticated shutdown touches it |
|
|
512
|
-
|
|
513
|
-
Piping a command into `head`, `grep -q` or anything that stops reading early is ordinary shell and it
|
|
514
|
-
works: the command exits **0**, not with a broken-pipe error, so `set -o pipefail` stays happy.
|
|
515
|
-
|
|
516
|
-
`--json` writes one document to stdout on success and nothing to stdout on a refusal — the reason, and
|
|
517
|
-
any list it explains, go to stderr, so a script can parse stdout without filtering prose out of it.
|
|
374
|
+
It always carries `running` and `liveness`: `live` (it is this panel), `unknown` (alive, start time
|
|
375
|
+
unavailable — counted as running), `gone`, or `recycled` (the pid now belongs to another process —
|
|
376
|
+
nothing is signalled). `answering: false` means the process exists but does not respond;
|
|
377
|
+
`exitedCleanly` says whether someone ran `down` or it died. More: [CLI.md](./docs/CLI.md).
|
|
518
378
|
|
|
519
379
|
</details>
|
|
520
380
|
|
|
@@ -522,269 +382,113 @@ any list it explains, go to stderr, so a script can parse stdout without filteri
|
|
|
522
382
|
|
|
523
383
|
## 🔐 Security
|
|
524
384
|
|
|
525
|
-
**Safe out of the box.** The panel
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
exposed until you decide it should be.
|
|
529
|
-
|
|
530
|
-
One setting only warns: turning on **trust a proxy from any peer** while the panel is also exposed
|
|
531
|
-
weakens the login lockout, and the panel says so at startup rather than refusing, because a proxy on
|
|
532
|
-
another machine is a legitimate setup.
|
|
385
|
+
**Safe out of the box.** The panel listens on `127.0.0.1` only, behind a password generated on first
|
|
386
|
+
start. It refuses to listen anywhere else — or to be served through its own reverse proxy — until you
|
|
387
|
+
set your own password.
|
|
533
388
|
|
|
534
389
|
<details>
|
|
535
390
|
<summary><b>🛡️ The three things you actually have to do</b></summary>
|
|
536
391
|
|
|
537
|
-
1. **Set your own password before
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
password does *not* revoke it. If one may have leaked, rotate it: `set-token --generate`.
|
|
541
|
-
3. **If you forget the password, clear it from the machine.** `home-hosted set-password --clear`
|
|
542
|
-
edits the secrets file directly, so it needs no login — that is the way back in. Signed in, the
|
|
543
|
-
same thing is *Global settings → Authentication → Clear password*.
|
|
392
|
+
1. **Set your own password before exposing it**, then bind to `lan` (UI, config, or `up --host lan`).
|
|
393
|
+
2. **Treat an API token as the account it runs as** — changing the password does *not* revoke it.
|
|
394
|
+
3. **Forgot the password?** `home-hosted set-password --clear` on the machine; no login needed.
|
|
544
395
|
|
|
545
396
|
</details>
|
|
546
397
|
|
|
547
398
|
<details>
|
|
548
|
-
<summary><b>🔍
|
|
549
|
-
|
|
550
|
-
**Sessions.** Kept in memory only, never on disk. The cookie is `HttpOnly` and `SameSite=Strict`, and
|
|
551
|
-
it is an **idle** timeout: every request slides both the session and the cookie, so a panel in regular
|
|
552
|
-
use stays signed in while one left alone signs out. Repeated login failures lock out per IP — see
|
|
553
|
-
*behind a proxy* below for when that is advisory.
|
|
399
|
+
<summary><b>🔍 How a request is trusted</b></summary>
|
|
554
400
|
|
|
555
|
-
|
|
556
|
-
`set-token --clear` revokes it. Three operations need a signed-in session rather than a token, because
|
|
557
|
-
each would otherwise let a stolen token end up holding the panel:
|
|
558
|
-
|
|
559
|
-
| Operation | Instead |
|
|
401
|
+
| Check | Rule |
|
|
560
402
|
| --- | --- |
|
|
561
|
-
|
|
|
562
|
-
|
|
|
563
|
-
|
|
|
564
|
-
|
|
565
|
-
All three answer `403 SESSION_REQUIRED`. Commands run on the machine use the local channel, so they
|
|
566
|
-
need no session.
|
|
403
|
+
| **Host** | an IP, `localhost`, a local name (`.local`, `.lan`, `homeserver`, …), a panel proxy route, or listed in `control.allowedHosts` — otherwise `421`. This blocks DNS-rebinding attacks from web pages you visit |
|
|
404
|
+
| **Origin** | a cookie-authenticated write must be same-origin; bearer-token requests are exempt (browsers never attach one by themselves) |
|
|
405
|
+
| **"This machine"** | a loopback peer with **no** forwarding header — so nothing relayed by a proxy, the panel's own included, gets local trust |
|
|
406
|
+
| **Lockout** | repeated failures lock out per client address; `trustProxy: "loopback"` (default) reads the real address from a proxy on this machine |
|
|
567
407
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
| --- | --- |
|
|
572
|
-
| panel password hash, API token hash | `.hh/.control-secrets.json` |
|
|
573
|
-
| each workspace's notification tokens and DDNS credentials | `.hh/<workspace>/.secrets.json` |
|
|
574
|
-
| TLS certificate and key | `.hh/.tls/` |
|
|
575
|
-
|
|
576
|
-
DDNS credentials are sealed with AES-256-GCM under `HHOSTED_DDNS_SECRET` (default `hh` — set your
|
|
577
|
-
own) because they are the one thing replayed to a third party.
|
|
578
|
-
|
|
579
|
-
**Behind a proxy.** Choose how far to trust it; `cookieSecure: auto` adds `Secure` on https, or upload
|
|
580
|
-
a PEM pair and let home-hosted terminate TLS itself.
|
|
581
|
-
|
|
582
|
-
| Setting | Trusts `x-forwarded-*` from | Use when |
|
|
583
|
-
| --- | --- | --- |
|
|
584
|
-
| `loopback` | this machine only | a proxy on the same host — real client address in logs and lockout, forged headers ignored |
|
|
585
|
-
| `on` | any peer | the proxy is the only way in. **The client address is then the caller's own header**, so the per-IP lockout counts per *forged* address and stops throttling brute force; the panel warns at startup if that panel is exposed |
|
|
586
|
-
| `off` | nobody | nothing in front, or the proxy sets no header |
|
|
587
|
-
|
|
588
|
-
**A plain-`http://` LAN address is not a secure context.** Browsers withhold some APIs from it, and the
|
|
589
|
-
panel works around the one it uses: **Copy** (the archive directory, the logs directory, the TLS
|
|
590
|
-
fingerprint, a server's JSON config) falls back to the legacy clipboard call, so it still works from
|
|
591
|
-
`http://192.168.1.201:3999`. Where even that is refused, the button says *Could not copy* instead of
|
|
592
|
-
doing nothing.
|
|
593
|
-
|
|
594
|
-
**Port conflicts.** A busy port is named — `port 4010 is already in use (pid 4242)` — and can be
|
|
595
|
-
resolved from a confirmation popover. The holder is looked up again at that moment, never taken from
|
|
596
|
-
the message, and anything the panel supervises is refused rather than killed. A server that
|
|
597
|
-
[restarts itself](./docs/SERVERS.md#when-a-program-restarts-itself) can be followed, or replaced with
|
|
598
|
-
a supervised copy.
|
|
408
|
+
Secrets never go in a config file: every secret file is `0600`, the state directory `0700`. DDNS
|
|
409
|
+
credentials are also sealed under `HHOSTED_DDNS_SECRET` — set your own if you commit or share `.hh/`.
|
|
410
|
+
Details: [SECURITY.md](./docs/SECURITY.md).
|
|
599
411
|
|
|
600
412
|
</details>
|
|
601
413
|
|
|
602
|
-
|
|
603
414
|
---
|
|
604
415
|
|
|
605
416
|
## 🔔 Notifications
|
|
606
417
|
|
|
607
418
|
A message when something happens while you are not looking: a server that gave up restarting, a
|
|
608
|
-
failing health check, a forced restart, a recovery, a host threshold
|
|
609
|
-
|
|
419
|
+
failing health check, a forced restart, a recovery, a host threshold, a DNS change. Alerts go to
|
|
420
|
+
**destinations** — Telegram chats and webhooks — with event toggles and a throttle set once and
|
|
421
|
+
inherited or overridden per destination. **Two minutes of setup: [NOTIFICATIONS.md](./docs/NOTIFICATIONS.md).**
|
|
610
422
|
|
|
611
|
-
|
|
612
|
-
event toggles and the throttle are set **once**, and each destination either inherits them or carries
|
|
613
|
-
its own. Rate-limited per destination, server *and* reason. Bot tokens and webhook credentials stay in
|
|
614
|
-
the secrets file, never in a config. **Two minutes of setup:
|
|
615
|
-
[NOTIFICATIONS.md](./docs/NOTIFICATIONS.md).**
|
|
423
|
+
## 🌐 Dynamic DNS
|
|
616
424
|
|
|
617
|
-
|
|
425
|
+
**Workspace settings → Dynamic DNS** keeps hostnames pointed at this machine's public IP: add an
|
|
426
|
+
account, paste credentials, add hostnames. A provider is called only when the address changed, and a
|
|
427
|
+
permanent refusal (bad credentials) stops retrying until you fix it. **[DDNS.md](./docs/DDNS.md).**
|
|
618
428
|
|
|
619
|
-
##
|
|
429
|
+
## 🔀 Reverse proxy
|
|
620
430
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
Provider tokens stay in the workspace's secrets file. **Providers and the config shape:
|
|
625
|
-
[DDNS.md](./docs/DDNS.md).**
|
|
431
|
+
One Caddy engine in front of everything, installed and supervised by the panel, with automatic HTTPS
|
|
432
|
+
(or your own certificates): route a hostname to any server, to an external address, or to the panel.
|
|
433
|
+
**[REVERSE_PROXY.md](./docs/REVERSE_PROXY.md).**
|
|
626
434
|
|
|
627
435
|
---
|
|
628
436
|
|
|
629
437
|
## 💾 Backups
|
|
630
438
|
|
|
631
439
|
**Global settings → Backups** takes one `.zip` of the panel and the workspaces you pick — settings,
|
|
632
|
-
servers, secrets, declared data —
|
|
633
|
-
|
|
634
|
-
Both directions are **two-level**: pick whole workspaces, or open one and drop any single piece (its
|
|
635
|
-
settings, servers, secrets, or one data directory). Each secret has its own tick.
|
|
440
|
+
servers, secrets, declared data — plain or AES-256, and puts it back.
|
|
636
441
|
|
|
637
442
|
```bash
|
|
638
|
-
home-hosted backup create --all --confirm
|
|
443
|
+
home-hosted backup create --all --confirm
|
|
639
444
|
home-hosted backup create --all --exclude global:secrets --confirm
|
|
640
|
-
home-hosted backup restore <name> --all --confirm
|
|
445
|
+
home-hosted backup restore <name> --all --confirm
|
|
641
446
|
home-hosted backup restore --from /media/usb/x.zip --all --confirm
|
|
642
447
|
```
|
|
643
448
|
|
|
644
|
-
Both work with the panel **stopped**, which is when you
|
|
645
|
-
|
|
646
|
-
<details>
|
|
647
|
-
<summary><b>⏱️ Automatic backups, and choosing what they contain</b></summary>
|
|
648
|
-
|
|
649
|
-
A schedule writes one archive every N hours, with its own retention (`Keep automatic`). The two counts
|
|
650
|
-
are independent: `Keep` bounds the ones you take by hand, and a scheduled pass never prunes yours to
|
|
651
|
-
make room. Automatic archives are named `auto-…` so you can tell them apart.
|
|
652
|
-
|
|
653
|
-
**What it contains** is yours to choose, in the same two-level dialog, saved into the schedule as
|
|
654
|
-
`scope`:
|
|
655
|
-
|
|
656
|
-
| Mode | Carries | CLI spelling |
|
|
657
|
-
| --- | --- | --- |
|
|
658
|
-
| **Everything** *(default)* | every workspace, plus `includePaths` | *no flag* |
|
|
659
|
-
| **Only these** | only what you tick | `--include <ids>` |
|
|
660
|
-
| **Everything except** | everything but what you tick, **including workspaces you add later** | `--all --exclude <ids>` |
|
|
661
|
-
|
|
662
|
-
Only **Everything** follows a workspace you add tomorrow — a stored list names today's ids. Ticking
|
|
663
|
-
everything in the dialog is therefore saved as *no scope*, not as the list it currently amounts to.
|
|
664
|
-
An empty selection is refused, because it cannot be told apart from "everything" in the file.
|
|
665
|
-
|
|
666
|
-
Generated directories (`node_modules`, `dist`, `.next`, framework caches) are skipped per entry;
|
|
667
|
-
`backupIgnoreGenerated: false` captures them anyway.
|
|
668
|
-
|
|
669
|
-
</details>
|
|
670
|
-
|
|
671
|
-
<details>
|
|
672
|
-
<summary><b>🔑 Restoring a secret, and what not to restore</b></summary>
|
|
673
|
-
|
|
674
|
-
An archive records the release and config schema that wrote it. A restore refuses a **newer** schema
|
|
675
|
-
outright rather than restoring the parts it recognizes, and **lifts an older one** through the same
|
|
676
|
-
migrations `home-hosted migrate` would run — the archive you take before an upgrade is the one you
|
|
677
|
-
reach for afterwards, so its configs are brought to this release's shape as they are written back.
|
|
678
|
-
|
|
679
|
-
Ticking a **single secret** merges by field — restoring the Telegram token leaves the DDNS
|
|
680
|
-
credentials alone. Ticking the whole **Secrets** entry replaces that file with the archive's copy.
|
|
681
|
-
|
|
682
|
-
Two things to know before restoring onto a machine already in use:
|
|
683
|
-
|
|
684
|
-
- **The password hash and API token hash are secrets too.** Restoring them reinstates the old
|
|
685
|
-
machine's password and long-lived token, so whoever holds that token keeps access. Leave them
|
|
686
|
-
unticked, or rotate afterwards.
|
|
687
|
-
- **`HHOSTED_DDNS_SECRET` is not in the archive.** DDNS credentials travel sealed under it, so a host
|
|
688
|
-
with a different value cannot open them. Supply the same secret, or re-enter the credentials.
|
|
689
|
-
|
|
690
|
-
</details>
|
|
449
|
+
Both work with the panel **stopped**, which is when you usually need them.
|
|
691
450
|
|
|
692
451
|
<details>
|
|
693
452
|
<summary><b>🚚 One archive is a whole setup</b></summary>
|
|
694
453
|
|
|
695
|
-
Start a **blank** home-hosted anywhere
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
Path matching is by **declaration** (`omniroute:DATA_DIR`), not by an absolute path from the source
|
|
701
|
-
machine. A declaration using `{projectDir}`, `{dataRoot}` or `{home}` follows the restoring panel; a
|
|
702
|
-
literal absolute path is restored to that same path.
|
|
703
|
-
|
|
704
|
-
**A restore never writes where no config declares, and never across workspaces.** A data path is only
|
|
705
|
-
placed under a workspace the archive says it belongs to — if that workspace's `servers.config.json` is
|
|
706
|
-
not part of the restore, its data is reported as skipped rather than guessed at.
|
|
707
|
-
|
|
708
|
-
**A declared path is the capture boundary.** A symlink *inside* a declared directory that resolves
|
|
709
|
-
outside it is left out of the archive rather than followed, so a `media -> /mnt/nas` link does not
|
|
710
|
-
silently pull a share you never declared into every backup. A link that stays inside is captured once,
|
|
711
|
-
under the first name the walk reaches it by, and a declared path that is *itself* a symlink is
|
|
712
|
-
captured through. File permission bits travel: a `0600` key comes back `0600`, a `0700` directory
|
|
713
|
-
`0700`, a `0755` script executable — a backup must not widen access to what it was taken to protect.
|
|
714
|
-
|
|
715
|
-
</details>
|
|
716
|
-
|
|
717
|
-
<details>
|
|
718
|
-
<summary><b>✅ What comes back, and what is still yours to do</b></summary>
|
|
719
|
-
|
|
720
|
-
| | Restored | Still yours to do |
|
|
721
|
-
| --- | --- | --- |
|
|
722
|
-
| Panel settings, listener, host vitals, backups policy | ✅ | Restart the panel if the listener or TLS policy changed (the plan says so) |
|
|
723
|
-
| Workspaces, their order and labels | ✅ | — |
|
|
724
|
-
| `servers.config.json`, server defaults, log retention | ✅ | `autostart` entries start by themselves; the rest are one *Start* away |
|
|
725
|
-
| Data directories each entry declares | ✅ | Nothing — but see the consistency note below |
|
|
726
|
-
| Telegram bots and chats, webhook targets | ✅ | Send a test from *Notifications* if the chat id came from another account |
|
|
727
|
-
| DDNS hostnames and their accounts | ✅ | Credentials only open under the same `HHOSTED_DDNS_SECRET`; otherwise re-enter them |
|
|
728
|
-
| Panel password and API token | ⬜ ticked per secret | Leave unticked, or rotate with `home-hosted set-token --generate` |
|
|
729
|
-
| Reverse-proxy routes | ✅ | Automatic HTTPS certificates are reissued on the new host. A pair **you uploaded** for a `tls: "manual"` route is not in the archive — re-upload it |
|
|
730
|
-
| Reverse-proxy engine binary | ❌ | Installed again from *Global settings → Reverse proxy* |
|
|
731
|
-
| Server logs, crash history, nanny state | ❌ | These describe the old box; the new one starts a fresh history |
|
|
732
|
-
| A server's `envFile` | ❌ not archived | It is the machine-local layer by design — copy it yourself, or declare its directory in `backupPaths` |
|
|
733
|
-
| Environment variables the panel runs with | ❌ | `HHOSTED_*`, `HHOSTED_DDNS_SECRET`, and anything a `${ENV}` placeholder needs |
|
|
454
|
+
Start a **blank** home-hosted anywhere, upload the archive, restore: workspaces come back, data lands
|
|
455
|
+
where *this* machine's config says (`{projectDir}`, `{home}` follow the new host), and `autostart`
|
|
456
|
+
entries come up. A restore never writes where no config declares. Older archives are migrated on the
|
|
457
|
+
way in; archives from a newer release are refused.
|
|
734
458
|
|
|
735
459
|
</details>
|
|
736
460
|
|
|
737
461
|
<details>
|
|
738
|
-
<summary><b
|
|
739
|
-
|
|
740
|
-
Data directories are copied file by file while your servers keep running — the panel does not stop or
|
|
741
|
-
freeze anything, because that would mean a backup could take your services down.
|
|
462
|
+
<summary><b>⏱️ Schedules, and what not to restore</b></summary>
|
|
742
463
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
464
|
+
- A schedule writes an `auto-…` archive every N hours with its own retention; it never prunes your
|
|
465
|
+
manual ones, nor zips the panel did not write.
|
|
466
|
+
- Pick per item: whole workspaces, or one secret, one data directory.
|
|
467
|
+
- **The password and token hashes are secrets too** — restoring them reinstates the old machine's
|
|
468
|
+
credentials. Leave `global:secrets` unticked, or rotate afterwards.
|
|
469
|
+
- **A live database copied file by file can be torn.** Stop it around the backup, or declare
|
|
470
|
+
`dump`/`load` hooks so the engine writes the backup itself.
|
|
746
471
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
- **Quiesce it** — stop that entry, take the backup, start it again; or
|
|
750
|
-
- **dump it properly** (`sqlite3 app.db ".backup out.db"`, `pg_dump`, `mysqldump`) into a directory you
|
|
751
|
-
declare in `backupPaths`, so the archive carries the dump rather than the live files.
|
|
752
|
-
|
|
753
|
-
**Restoring** has the mirror-image hazard, and the plan names it: a data path copied over while its
|
|
754
|
-
server is running is replaced under a live process, which keeps its old view and loses what it wrote
|
|
755
|
-
since. The restore reports those entries — `Data was replaced under a running server` — and the fix is
|
|
756
|
-
to stop them before applying, or stop and start each one.
|
|
472
|
+
Everything else — what comes back, what does not: [BACKUPS.md](./docs/BACKUPS.md).
|
|
757
473
|
|
|
758
474
|
</details>
|
|
759
475
|
|
|
760
|
-
|
|
761
476
|
---
|
|
762
477
|
|
|
763
478
|
## 🎨 Bring your own UI (BYOU)
|
|
764
479
|
|
|
765
|
-
The panel
|
|
766
|
-
|
|
767
|
-
stock
|
|
768
|
-
|
|
769
|
-
Two ship in this repo: `uis/stock`, and `uis/noc-console` for TUI and shortcuts wizards; a release
|
|
770
|
-
attaches both as `home-hosted-ui-<name>.zip`. Yours can be anything that compiles to static files —
|
|
771
|
-
the server never cares what built it.
|
|
772
|
-
|
|
773
|
-
<sub>Install a UI from the CLI: `home-hosted ui-switch --asset noc-console` selects a UI directly, and
|
|
774
|
-
with no flags it lists the official assets to pick from. An official UI is switched to the version
|
|
775
|
-
that matches your panel when you update `home-hosted`. For unofficial UIs, `home-hosted ui-update`
|
|
776
|
-
offers their newer releases — or `--old` for older ones (the author sets up `ui.json` and GitHub
|
|
777
|
-
releases).</sub>
|
|
480
|
+
The panel serves whatever static site is in `$HHOSTED_HOME/.hh/.ui`. **Global settings → Interface**
|
|
481
|
+
takes a zip, `home-hosted ui-switch --asset noc-console` installs the NOC console from a release, and
|
|
482
|
+
`home-hosted ui-revert` brings back the stock UI if yours breaks.
|
|
778
483
|
|
|
779
484
|
<details>
|
|
780
|
-
<summary><b>🤖
|
|
781
|
-
|
|
782
|
-
The whole contract fits in one file, so a coding agent can do this. Point it at this repo and be
|
|
783
|
-
specific:
|
|
485
|
+
<summary><b>🤖 Have an agent build the UI you actually want</b></summary>
|
|
784
486
|
|
|
785
|
-
> Help me build a UI for `home-hosted`: nostalgic game theme,
|
|
487
|
+
> Help me build a UI for `home-hosted`: a nostalgic game theme — servers as a party menu, health as HP
|
|
488
|
+
> bars, logs in a text box. Follow `docs/UI_CREATION.md` and `docs/API.md`.
|
|
786
489
|
|
|
787
|
-
[UI_CREATION.md](./docs/UI_CREATION.md)
|
|
490
|
+
[UI_CREATION.md](./docs/UI_CREATION.md) is the contract: install, `ui.json`, the rules of the road and
|
|
491
|
+
a checklist.
|
|
788
492
|
|
|
789
493
|
</details>
|
|
790
494
|
|
|
@@ -793,110 +497,63 @@ specific:
|
|
|
793
497
|
## ❓ FAQ
|
|
794
498
|
|
|
795
499
|
<details>
|
|
796
|
-
<summary><b>
|
|
797
|
-
|
|
798
|
-
`home-hosted logs` prints the panel's own console output — what it is doing, and anything it could
|
|
799
|
-
not finish:
|
|
500
|
+
<summary><b>Something is wrong — where do I look?</b></summary>
|
|
800
501
|
|
|
801
502
|
```bash
|
|
802
|
-
home-hosted
|
|
803
|
-
home-hosted logs --follow #
|
|
804
|
-
home-hosted logs
|
|
805
|
-
home-hosted
|
|
503
|
+
home-hosted status # the overview
|
|
504
|
+
home-hosted logs --follow # the panel's own console — works even when the panel is wedged
|
|
505
|
+
home-hosted logs web # one server's log (-w <workspace> for another workspace)
|
|
506
|
+
home-hosted usage # what is eating the machine
|
|
806
507
|
```
|
|
807
508
|
|
|
808
|
-
It reads the same file `status` names, and needs no session or API token — a panel answering badly is
|
|
809
|
-
exactly when you cannot get one. `up` prints the tail when the panel fails to start.
|
|
810
|
-
|
|
811
509
|
</details>
|
|
812
510
|
|
|
813
511
|
<details>
|
|
814
|
-
<summary><b>
|
|
512
|
+
<summary><b>What happens to my servers when the panel stops?</b></summary>
|
|
815
513
|
|
|
816
|
-
|
|
817
|
-
|
|
514
|
+
`down`, `SIGTERM` and `SIGINT` stop every server the panel started. `persistent` entries keep running
|
|
515
|
+
under their own small supervisor and are re-attached by the next panel; `down --with-persistent`
|
|
516
|
+
stops them too.
|
|
818
517
|
|
|
819
518
|
</details>
|
|
820
519
|
|
|
821
520
|
<details>
|
|
822
|
-
<summary><b>
|
|
823
|
-
|
|
824
|
-
`home-hosted down` stops them — that is the point of the command. `SIGTERM`/`SIGINT` are handled
|
|
825
|
-
the same way: every supervised process tree is stopped before the panel exits.
|
|
521
|
+
<summary><b>Is it a systemd replacement?</b></summary>
|
|
826
522
|
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
([SERVERS.md](./docs/SERVERS.md#persistent-entries)). Add `--with-persistent` to stop those too —
|
|
830
|
-
with the panel up or after it has already gone, since each nanny's state file is enough.
|
|
523
|
+
No — keep systemd for the panel itself and for system services; use home-hosted for what you run
|
|
524
|
+
yourself.
|
|
831
525
|
|
|
832
526
|
</details>
|
|
833
527
|
|
|
834
528
|
<details>
|
|
835
|
-
<summary><b>
|
|
529
|
+
<summary><b>Which ports does it use?</b></summary>
|
|
836
530
|
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
([SERVERS.md](./docs/SERVERS.md#a-busy-port)). The control port itself is checked before the listener is
|
|
840
|
-
opened.
|
|
531
|
+
The panel: `3999` (`--port` or `control.port`). Your servers: the ports you give them. The reverse
|
|
532
|
+
proxy, only when enabled: `80`/`443`, or `4480`/`4443` unprivileged with your router forwarding.
|
|
841
533
|
|
|
842
534
|
</details>
|
|
843
535
|
|
|
844
536
|
<details>
|
|
845
|
-
<summary><b>
|
|
537
|
+
<summary><b>I reach the panel through Cloudflare Tunnel / nginx on a public name and get <code>421</code></b></summary>
|
|
846
538
|
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
```text
|
|
851
|
-
settings.json panel-wide: listener, auth, TLS policy, host vitals, backups
|
|
852
|
-
workspaces.json the registry: ids and labels, in selector order
|
|
853
|
-
.control-secrets.json password hash + API token hash (mode 0600)
|
|
854
|
-
.tls/ an uploaded PEM pair
|
|
855
|
-
.ui/ an installed custom UI
|
|
856
|
-
.backups/ zip archives
|
|
857
|
-
.logs/ the panel's own console log
|
|
858
|
-
.proxy/ the reverse proxy's engine, its config and state
|
|
859
|
-
run.json the running panel (pid, url, token, mode 0600)
|
|
860
|
-
|
|
861
|
-
<workspace>/settings.json server defaults, log retention, notifications, DDNS
|
|
862
|
-
<workspace>/servers.config.json your servers, plus meta: which release and schema wrote it
|
|
863
|
-
<workspace>/.secrets.json Telegram token + DDNS credentials (mode 0600)
|
|
864
|
-
<workspace>/.logs/ per-server logs: <id>.log, rotated to <id>.log.1 … (newest first)
|
|
865
|
-
<workspace>/.state/ nanny state, the last detached child (<id>.run.json) and ddns.json
|
|
866
|
-
```
|
|
867
|
-
|
|
868
|
-
`home-hosted status` prints the paths.
|
|
539
|
+
Add that name to `control.allowedHosts` in `.hh/settings.json` (or **Global settings → Listener**,
|
|
540
|
+
reached by IP). IPs and local names never need it.
|
|
869
541
|
|
|
870
542
|
</details>
|
|
871
543
|
|
|
872
544
|
<details>
|
|
873
|
-
<summary><b>
|
|
874
|
-
|
|
875
|
-
The control panel, `3999` by default. Supervised servers use the ports you give them. The reverse
|
|
876
|
-
proxy is the one panel-wide listener, and only when you switch it on: `80`/`443` for automatic HTTPS,
|
|
877
|
-
or `4480`/`4443` unprivileged with your router forwarding to them
|
|
878
|
-
([REVERSE_PROXY.md](./docs/REVERSE_PROXY.md#ports)).
|
|
545
|
+
<summary><b>Where is my state?</b></summary>
|
|
879
546
|
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
adopts the process that replaced it; an unrelated listener is never signalled
|
|
883
|
-
([SERVERS.md](./docs/SERVERS.md#a-busy-port)).
|
|
547
|
+
`~/.home-hosted/.hh` (or `$HHOSTED_HOME/.hh`) — see [What lives where](#-workspaces). `home-hosted status`
|
|
548
|
+
prints every path.
|
|
884
549
|
|
|
885
550
|
</details>
|
|
886
551
|
|
|
887
552
|
<details>
|
|
888
553
|
<summary><b>Windows support, really?</b></summary>
|
|
889
554
|
|
|
890
|
-
Yes
|
|
891
|
-
|
|
892
|
-
expose them to an unprivileged process. Adopting a self-restarted process works on Windows too, off
|
|
893
|
-
its argv instead of the environment marker; a launcher whose real process is a `.cmd` shim is the one
|
|
894
|
-
case it cannot see through, and `kill` is the answer there.
|
|
895
|
-
|
|
896
|
-
A config edited in Notepad or PowerShell is read as it is: the byte-order mark Notepad's "UTF-8 with
|
|
897
|
-
BOM" adds, and the UTF-16 that `>` and `Out-File` write, are both understood. A `command` naming a
|
|
898
|
-
project dependency resolves to the `.cmd`/`.exe` shim under `node_modules/.bin` rather than the
|
|
899
|
-
`#!/bin/sh` script beside it.
|
|
555
|
+
Yes: process trees from Win32_Process, `taskkill` for stopping, `.cmd` shims resolved in
|
|
556
|
+
`node_modules/.bin`, and configs saved by Notepad or PowerShell (BOM, UTF-16) read as-is.
|
|
900
557
|
|
|
901
558
|
</details>
|
|
902
559
|
|
|
@@ -904,46 +561,34 @@ project dependency resolves to the `.cmd`/`.exe` shim under `node_modules/.bin`
|
|
|
904
561
|
|
|
905
562
|
## 🗂 Working on it
|
|
906
563
|
|
|
907
|
-
```
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
uis/ UIs: `stock` (shipped in the package) and alternatives — any framework, static output
|
|
912
|
-
bin/ the published entry point
|
|
913
|
-
docs/branding/ logo, icons and the social preview; the SVGs are the source, `pnpm run brand` renders them
|
|
914
|
-
docs/ topic docs, UI examples and the README's media
|
|
915
|
-
scripts/ builds, typechecks, media capture, release helpers
|
|
916
|
-
test/ the vitest suite
|
|
564
|
+
```bash
|
|
565
|
+
pnpm install
|
|
566
|
+
pnpm dev # panel :6000 + stock UI dev server :6001, state in .dev-state/ (password: dev)
|
|
567
|
+
pnpm run check # lint, types, doc links and the full test suite
|
|
917
568
|
```
|
|
918
569
|
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
<summary><b>📚 Which doc do I need?</b></summary>
|
|
570
|
+
```text
|
|
571
|
+
src/ the panel: cli/, api/ (routes), services/ (stateful), providers/ (OS/vendor leaves),
|
|
572
|
+
config/, middleware/, shared/ (schemas + client code the UIs import too)
|
|
573
|
+
uis/ stock (ships in the package) and noc-console — Vite + Vue, static output
|
|
574
|
+
docs/ user docs, mockups and media test/ vitest
|
|
575
|
+
```
|
|
926
576
|
|
|
927
577
|
| if you want to… | read |
|
|
928
578
|
| --- | --- |
|
|
929
579
|
| declare a server: every field, placeholders, port conflicts | [SERVERS.md](./docs/SERVERS.md) |
|
|
930
|
-
|
|
|
931
|
-
|
|
|
932
|
-
|
|
|
933
|
-
|
|
|
934
|
-
|
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
- [dsh-home-hosted](https://github.com/NamesMT/dsh-home-hosted) — home-hosted servers management with boot autostart from inside [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
|
|
943
|
-
|
|
944
|
-
<sub><i>+ PR to add yours</i></sub>
|
|
945
|
-
|
|
946
|
-
---
|
|
580
|
+
| drive it from code: endpoints, SSE, errors, metrics | [API.md](./docs/API.md) |
|
|
581
|
+
| every CLI command and what `status` means | [CLI.md](./docs/CLI.md) |
|
|
582
|
+
| backups and restores in depth | [BACKUPS.md](./docs/BACKUPS.md) · [RESTORE_DEMO.md](./docs/RESTORE_DEMO.md) |
|
|
583
|
+
| hostnames and HTTPS | [REVERSE_PROXY.md](./docs/REVERSE_PROXY.md) · [DDNS.md](./docs/DDNS.md) |
|
|
584
|
+
| alerts | [NOTIFICATIONS.md](./docs/NOTIFICATIONS.md) |
|
|
585
|
+
| the security model | [SECURITY.md](./docs/SECURITY.md) |
|
|
586
|
+
| build a UI | [UI_CREATION.md](./docs/UI_CREATION.md) |
|
|
587
|
+
| change the internals | [AGENTS.md](https://github.com/NamesMT/home-hosted/blob/main/AGENTS.md) |
|
|
588
|
+
|
|
589
|
+
**Built on home-hosted:** [dsh-home-hosted](https://github.com/NamesMT/dsh-home-hosted) — server
|
|
590
|
+
management with boot autostart inside [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness).
|
|
591
|
+
<sub>PRs to add yours are welcome.</sub>
|
|
947
592
|
|
|
948
593
|
<div align="center">
|
|
949
594
|
|