home-hosted 0.13.0 → 0.20.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 +117 -322
- package/bin/home-hosted.mjs +41 -0
- package/dist/chunks/account-DiLrSyww.js +359 -0
- package/dist/chunks/account-DiLrSyww.js.map +1 -0
- package/dist/chunks/add-DEIYVkNK.js +183 -0
- package/dist/chunks/add-DEIYVkNK.js.map +1 -0
- package/dist/chunks/{archive-DP-XQR8X.js → archive-DFi3qK1c.js} +25 -73
- package/dist/chunks/archive-DFi3qK1c.js.map +1 -0
- package/dist/chunks/{atomic-C1PfJpE7.js → atomic-SZUwDtGD.js} +3 -6
- package/dist/chunks/atomic-SZUwDtGD.js.map +1 -0
- package/dist/chunks/{backup-CZcVca2a.js → backup-DnyxIzw0.js} +110 -190
- package/dist/chunks/backup-DnyxIzw0.js.map +1 -0
- package/dist/chunks/backups-BrrN6cwW.js +2203 -0
- package/dist/chunks/backups-BrrN6cwW.js.map +1 -0
- package/dist/chunks/bind-DIxrnUst.js +43 -0
- package/dist/chunks/bind-DIxrnUst.js.map +1 -0
- package/dist/chunks/config-text-DxMOQQnk.js +34 -0
- package/dist/chunks/config-text-DxMOQQnk.js.map +1 -0
- package/dist/chunks/{contracts-CMBD1TF9.js → contracts-CxZ7u1L3.js} +1239 -1454
- package/dist/chunks/contracts-CxZ7u1L3.js.map +1 -0
- package/dist/chunks/daemon-BAAYUYQC.js +211 -0
- package/dist/chunks/daemon-BAAYUYQC.js.map +1 -0
- package/dist/chunks/daemon-log-Ccu-69vB.js +179 -0
- package/dist/chunks/daemon-log-Ccu-69vB.js.map +1 -0
- package/dist/chunks/deploy-CggSOEkq.js +144 -0
- package/dist/chunks/deploy-CggSOEkq.js.map +1 -0
- package/dist/chunks/{docker-Cy9Lyvda.js → docker--Un0uLfF.js} +32 -68
- package/dist/chunks/docker--Un0uLfF.js.map +1 -0
- package/dist/chunks/{down-pKbGCW9d.js → down-CpIN7LEQ.js} +34 -94
- package/dist/chunks/down-CpIN7LEQ.js.map +1 -0
- package/dist/chunks/exposure-CDJNvOCK.js +229 -0
- package/dist/chunks/exposure-CDJNvOCK.js.map +1 -0
- package/dist/chunks/import-Bd4VZH0f.js +205 -0
- package/dist/chunks/import-Bd4VZH0f.js.map +1 -0
- package/dist/chunks/import-plan--fDS_l5r.js +147 -0
- package/dist/chunks/import-plan--fDS_l5r.js.map +1 -0
- package/dist/chunks/import-write-BTfbeV26.js +42 -0
- package/dist/chunks/import-write-BTfbeV26.js.map +1 -0
- package/dist/chunks/{init-BZ7hK9Vf.js → init-Bv3oH65x.js} +14 -50
- package/dist/chunks/init-Bv3oH65x.js.map +1 -0
- package/dist/chunks/job-CYOdN6Ub.js +341 -0
- package/dist/chunks/job-CYOdN6Ub.js.map +1 -0
- package/dist/chunks/jobs-BX4ahcfh.js +489 -0
- package/dist/chunks/jobs-BX4ahcfh.js.map +1 -0
- package/dist/chunks/last-stop-DD3lHwo_.js +42 -0
- package/dist/chunks/last-stop-DD3lHwo_.js.map +1 -0
- package/dist/chunks/layout-D0ysDNav.js +18 -0
- package/dist/chunks/layout-D0ysDNav.js.map +1 -0
- package/dist/chunks/lazy-kfcBNeqj.js +48 -0
- package/dist/chunks/lazy-kfcBNeqj.js.map +1 -0
- package/dist/chunks/log-buffer-B7jmn7ts.js +110 -0
- package/dist/chunks/log-buffer-B7jmn7ts.js.map +1 -0
- package/dist/chunks/log-files-CZL2UhuE.js +488 -0
- package/dist/chunks/log-files-CZL2UhuE.js.map +1 -0
- package/dist/chunks/{logger-B5U4GD3j.js → logger-BnrKTBHQ.js} +2 -6
- package/dist/chunks/logger-BnrKTBHQ.js.map +1 -0
- package/dist/chunks/{logs---TI_bxM.js → logs-DxKI6OW2.js} +23 -73
- package/dist/chunks/logs-DxKI6OW2.js.map +1 -0
- package/dist/chunks/ls-BseUHy_m.js +128 -0
- package/dist/chunks/ls-BseUHy_m.js.map +1 -0
- package/dist/chunks/migrate-D4w_dXDm.js +268 -0
- package/dist/chunks/migrate-D4w_dXDm.js.map +1 -0
- package/dist/chunks/{nanny-B-Eu0sFW.js → nanny-BWh7nuvv.js} +21 -14
- package/dist/chunks/nanny-BWh7nuvv.js.map +1 -0
- package/dist/chunks/{nanny-ChMtq1Zl.js → nanny-BjF2-1pv.js} +3 -3
- package/dist/chunks/{nanny-ChMtq1Zl.js.map → nanny-BjF2-1pv.js.map} +1 -1
- package/dist/chunks/nanny-DGTXVq5d.js +806 -0
- package/dist/chunks/nanny-DGTXVq5d.js.map +1 -0
- package/dist/chunks/{nanny-sweep-DErnlPY1.js → nanny-sweep-hjmZ_p7S.js} +14 -24
- package/dist/chunks/nanny-sweep-hjmZ_p7S.js.map +1 -0
- package/dist/chunks/{nearest-6KgQEDUe.js → nearest-DOx4jySJ.js} +2 -10
- package/dist/chunks/nearest-DOx4jySJ.js.map +1 -0
- package/dist/chunks/{parse-DhmG26fI.js → parse-DVMPLUDe.js} +47 -72
- package/dist/chunks/parse-DVMPLUDe.js.map +1 -0
- package/dist/chunks/password-policy-Clq6PGE-.js +9 -0
- package/dist/chunks/password-policy-Clq6PGE-.js.map +1 -0
- package/dist/chunks/{paths-CGlGDrOU.js → paths-C34-TJLh.js} +32 -56
- package/dist/chunks/paths-C34-TJLh.js.map +1 -0
- package/dist/chunks/{port-B8WBTRMk.js → port-CnsrxKNR.js} +27 -71
- package/dist/chunks/port-CnsrxKNR.js.map +1 -0
- package/dist/chunks/process-CboOFPU_.js +192 -0
- package/dist/chunks/process-CboOFPU_.js.map +1 -0
- package/dist/chunks/{restart-Des4DrAN.js → restart-C0J8dZ2L.js} +11 -29
- package/dist/chunks/restart-C0J8dZ2L.js.map +1 -0
- package/dist/chunks/run-deploy-DoNDvwT4.js +91 -0
- package/dist/chunks/run-deploy-DoNDvwT4.js.map +1 -0
- package/dist/chunks/{schema-B240VXcV.js → schema-CZ6f-PHD.js} +7 -20
- package/dist/chunks/schema-CZ6f-PHD.js.map +1 -0
- package/dist/chunks/secret-MY397r90.js +219 -0
- package/dist/chunks/secret-MY397r90.js.map +1 -0
- package/dist/chunks/secrets-CG5N4lwY.js +1061 -0
- package/dist/chunks/secrets-CG5N4lwY.js.map +1 -0
- package/dist/chunks/server-Dm_dXfTW.js +255 -0
- package/dist/chunks/server-Dm_dXfTW.js.map +1 -0
- package/dist/chunks/server-attention-UQwYXqKe.js +10 -0
- package/dist/chunks/server-attention-UQwYXqKe.js.map +1 -0
- package/dist/chunks/server-create-D7nvhgBd.js +96 -0
- package/dist/chunks/server-create-D7nvhgBd.js.map +1 -0
- package/dist/chunks/server-ids-BEQD2rFz.js +23 -0
- package/dist/chunks/server-ids-BEQD2rFz.js.map +1 -0
- package/dist/chunks/server-vars-DMYmHutL.js +27 -0
- package/dist/chunks/server-vars-DMYmHutL.js.map +1 -0
- package/dist/chunks/service-C8l-ewNA.js +585 -0
- package/dist/chunks/service-C8l-ewNA.js.map +1 -0
- package/dist/chunks/{settings-xu-XTfWg.js → settings-CtYDs5PX.js} +62 -78
- package/dist/chunks/settings-CtYDs5PX.js.map +1 -0
- package/dist/chunks/{setup-temp-CAN4_bA-.js → setup-temp-TAtDmMMU.js} +43 -37
- package/dist/chunks/setup-temp-TAtDmMMU.js.map +1 -0
- package/dist/chunks/shape-CDGeYl_J.js +9 -0
- package/dist/chunks/shape-CDGeYl_J.js.map +1 -0
- package/dist/chunks/{src-BtWMFmzZ.js → src-BnzkVy_M.js} +12548 -10576
- package/dist/chunks/src-BnzkVy_M.js.map +1 -0
- package/dist/chunks/{status-DT1EsA-B.js → status-efbbfYZQ.js} +53 -26
- package/dist/chunks/status-efbbfYZQ.js.map +1 -0
- package/dist/chunks/store-Bs_Lljjm.js +2082 -0
- package/dist/chunks/store-Bs_Lljjm.js.map +1 -0
- package/dist/chunks/template-xan58bJh.js +28 -0
- package/dist/chunks/template-xan58bJh.js.map +1 -0
- package/dist/chunks/token-DDeWfZA4.js +142 -0
- package/dist/chunks/token-DDeWfZA4.js.map +1 -0
- package/dist/chunks/{ui-D562aqw5.js → ui-BcIAtyxE.js} +68 -79
- package/dist/chunks/ui-BcIAtyxE.js.map +1 -0
- package/dist/chunks/{ui-dir-CsU3uLNV.js → ui-dir-ClCzVRc3.js} +3 -7
- package/dist/chunks/ui-dir-ClCzVRc3.js.map +1 -0
- package/dist/chunks/ui-format-CDvvqOoi.js +53 -0
- package/dist/chunks/ui-format-CDvvqOoi.js.map +1 -0
- package/dist/chunks/{ui-release-DKzVvlLd.js → ui-release-XbJ85pYI.js} +36 -38
- package/dist/chunks/ui-release-XbJ85pYI.js.map +1 -0
- package/dist/chunks/{ui-revert-EkBBwRTt.js → ui-revert-Dgawq7ze.js} +4 -4
- package/dist/chunks/ui-revert-Dgawq7ze.js.map +1 -0
- package/dist/chunks/{ui-switch-BnZTdMDd.js → ui-switch-CfQMbZ0g.js} +31 -38
- package/dist/chunks/ui-switch-CfQMbZ0g.js.map +1 -0
- package/dist/chunks/{ui-update-_xryLYxw.js → ui-update-B3PPivUm.js} +30 -48
- package/dist/chunks/ui-update-B3PPivUm.js.map +1 -0
- package/dist/chunks/ui-update-CAiH2tFb.js +109 -0
- package/dist/chunks/ui-update-CAiH2tFb.js.map +1 -0
- package/dist/chunks/{up-Pdz-l6IH.js → up-BQSnYxYd.js} +47 -53
- package/dist/chunks/up-BQSnYxYd.js.map +1 -0
- package/dist/chunks/{usage-DFrCVXpT.js → usage-KG8TeOio.js} +7 -20
- package/dist/chunks/usage-KG8TeOio.js.map +1 -0
- package/dist/chunks/{workspaces-DYcfvKV_.js → workspaces-D9akpzU8.js} +80 -68
- package/dist/chunks/workspaces-D9akpzU8.js.map +1 -0
- package/dist/chunks/{wsl-temperature-BiCI4iK6.js → wsl-temperature-D-_d4Yk1.js} +47 -42
- package/dist/chunks/wsl-temperature-D-_d4Yk1.js.map +1 -0
- package/dist/cli.js +306 -238
- package/dist/cli.js.map +1 -1
- package/dist/client.js +76 -29
- package/dist/client.js.map +1 -1
- package/dist/types/api/acme.d.ts +3 -7
- package/dist/types/api/auth/$.routes.d.ts +107 -16
- package/dist/types/api/backups.d.ts +5 -5
- package/dist/types/api/control.d.ts +747 -38
- package/dist/types/api/ddns.d.ts +13 -18
- package/dist/types/api/events.d.ts +9 -3
- package/dist/types/api/health.d.ts +2 -4
- package/dist/types/api/jobs.d.ts +438 -0
- package/dist/types/api/logs.d.ts +20 -0
- package/dist/types/api/metrics.d.ts +2 -5
- package/dist/types/api/notifications.d.ts +3 -6
- package/dist/types/api/proxy.d.ts +63 -23
- package/dist/types/api/server-ops.d.ts +17 -0
- package/dist/types/api/servers/$.routes.d.ts +418 -186
- package/dist/types/api/session-required.d.ts +16 -0
- package/dist/types/api/settings.d.ts +7 -7
- package/dist/types/api/state.d.ts +100 -10
- package/dist/types/api/static.d.ts +2 -2
- package/dist/types/api/tls.d.ts +2 -5
- package/dist/types/api/workspaces/$.routes.d.ts +186 -12
- package/dist/types/api/wsl-temperature.d.ts +4 -10
- package/dist/types/app.d.ts +4511 -2778
- package/dist/types/cli/account.d.ts +23 -0
- package/dist/types/cli/add.d.ts +96 -0
- package/dist/types/cli/args.d.ts +24 -35
- package/dist/types/cli/backup-offline.d.ts +2 -8
- package/dist/types/cli/backup.d.ts +12 -21
- package/dist/types/cli/down.d.ts +15 -41
- package/dist/types/cli/import-plan.d.ts +55 -0
- package/dist/types/cli/import-write.d.ts +5 -0
- package/dist/types/cli/import.d.ts +86 -0
- package/dist/types/cli/io.d.ts +26 -35
- package/dist/types/cli/job.d.ts +99 -0
- package/dist/types/cli/logs.d.ts +1 -10
- package/dist/types/cli/ls.d.ts +57 -0
- package/dist/types/cli/migrate.d.ts +31 -8
- package/dist/types/cli/nearest.d.ts +1 -9
- package/dist/types/cli/run-deploy.d.ts +36 -0
- package/dist/types/cli/secret.d.ts +90 -0
- package/dist/types/cli/server.d.ts +6 -15
- package/dist/types/cli/service.d.ts +135 -0
- package/dist/types/cli/setup-temp.d.ts +17 -13
- package/dist/types/cli/status.d.ts +7 -1
- package/dist/types/cli/token.d.ts +6 -0
- package/dist/types/cli/ui-switch.d.ts +3 -14
- package/dist/types/cli/ui-update.d.ts +3 -16
- package/dist/types/cli/up.d.ts +9 -22
- package/dist/types/cli/usage.d.ts +2 -6
- package/dist/types/cli.d.ts +1 -10
- package/dist/types/client.d.ts +4099 -1142
- package/dist/types/config/accounts.d.ts +16 -0
- package/dist/types/config/jobs.d.ts +68 -0
- package/dist/types/config/layout.d.ts +2 -8
- package/dist/types/config/migrations.d.ts +9 -41
- package/dist/types/config/parse.d.ts +8 -13
- package/dist/types/config/patch.d.ts +1 -6
- package/dist/types/config/schema.d.ts +16 -18
- package/dist/types/config/secret-parts.d.ts +6 -27
- package/dist/types/config/secrets.d.ts +167 -88
- package/dist/types/config/seed.d.ts +1 -6
- package/dist/types/config/server-ids.d.ts +2 -11
- package/dist/types/config/settings.d.ts +13 -49
- package/dist/types/config/store.d.ts +17 -54
- package/dist/types/config/workspaces.d.ts +24 -56
- package/dist/types/helpers/action-result.d.ts +18 -32
- package/dist/types/helpers/atomic.d.ts +1 -4
- package/dist/types/helpers/backoff.d.ts +0 -1
- package/dist/types/helpers/bind.d.ts +3 -11
- package/dist/types/helpers/config-text.d.ts +4 -19
- package/dist/types/helpers/cookies.d.ts +2 -7
- package/dist/types/helpers/copy-tree.d.ts +4 -12
- package/dist/types/helpers/daemon-log.d.ts +8 -33
- package/dist/types/helpers/daemon.d.ts +20 -70
- package/dist/types/helpers/deferred.d.ts +2 -4
- package/dist/types/helpers/env-file.d.ts +2 -7
- package/dist/types/helpers/error.d.ts +3 -14
- package/dist/types/helpers/event-stream.d.ts +18 -10
- package/dist/types/helpers/factory.d.ts +2 -3
- package/dist/types/helpers/last-stop.d.ts +5 -12
- package/dist/types/helpers/logger.d.ts +1 -5
- package/dist/types/helpers/open.d.ts +0 -1
- package/dist/types/helpers/openapi.d.ts +19 -5
- package/dist/types/helpers/paths.d.ts +18 -53
- package/dist/types/helpers/restore-lock.d.ts +2 -17
- package/dist/types/helpers/runtime.d.ts +3 -13
- package/dist/types/helpers/secret-compare.d.ts +2 -10
- package/dist/types/helpers/server-create.d.ts +15 -0
- package/dist/types/helpers/shell.d.ts +2 -16
- package/dist/types/helpers/sse.d.ts +8 -6
- package/dist/types/helpers/ui-dir.d.ts +1 -5
- package/dist/types/helpers/utf8-chunks.d.ts +2 -8
- package/dist/types/helpers/validate.d.ts +2 -4
- package/dist/types/helpers/validator.d.ts +8 -4
- package/dist/types/helpers/version.d.ts +1 -6
- package/dist/types/helpers/workspace.d.ts +24 -16
- package/dist/types/index.d.ts +2 -3
- package/dist/types/middleware/auth.d.ts +8 -27
- package/dist/types/middleware/body-limit.d.ts +10 -0
- package/dist/types/middleware/host.d.ts +4 -23
- package/dist/types/middleware/loopback.d.ts +1 -8
- package/dist/types/middleware/token-scope.d.ts +34 -0
- package/dist/types/node-compat.d.ts +43 -0
- package/dist/types/openapi-reference.d.ts +4 -19
- package/dist/types/openapi.d.ts +5 -8
- package/dist/types/providers/archive.d.ts +8 -25
- package/dist/types/providers/backup-hook.d.ts +4 -19
- package/dist/types/providers/ddns/dyndns2.d.ts +0 -3
- package/dist/types/providers/ddns/index.d.ts +2 -3
- package/dist/types/providers/ddns/ip.d.ts +2 -12
- package/dist/types/providers/ddns/namecheap-api.d.ts +3 -2
- package/dist/types/providers/ddns/types.d.ts +6 -32
- package/dist/types/providers/ddns/zone.d.ts +1 -4
- package/dist/types/providers/docker.d.ts +18 -45
- package/dist/types/providers/entry-state.d.ts +4 -9
- package/dist/types/providers/health-check.d.ts +1 -5
- package/dist/types/providers/host.d.ts +33 -108
- package/dist/types/providers/identity.d.ts +9 -34
- package/dist/types/providers/log-tail.d.ts +14 -24
- package/dist/types/providers/nanny-sweep.d.ts +8 -25
- package/dist/types/providers/nanny.d.ts +16 -58
- package/dist/types/providers/port.d.ts +28 -83
- package/dist/types/providers/proc.d.ts +22 -80
- package/dist/types/providers/process.d.ts +12 -36
- package/dist/types/providers/proxy/admin.d.ts +11 -0
- package/dist/types/providers/proxy/types.d.ts +4 -16
- package/dist/types/providers/telegram.d.ts +1 -17
- package/dist/types/providers/ui-release.d.ts +15 -25
- package/dist/types/providers/webhook.d.ts +8 -29
- package/dist/types/providers/wsl-temperature.d.ts +13 -22
- package/dist/types/services/acme-challenge.d.ts +2 -16
- package/dist/types/services/auth.d.ts +65 -80
- package/dist/types/services/backups/archive-safety.d.ts +30 -0
- package/dist/types/services/backups/paths.d.ts +31 -0
- package/dist/types/services/backups.d.ts +61 -271
- package/dist/types/services/config-watch.d.ts +3 -15
- package/dist/types/services/control-server.d.ts +6 -10
- package/dist/types/services/ddns.d.ts +12 -13
- package/dist/types/services/dependencies.d.ts +3 -14
- package/dist/types/services/deploy.d.ts +34 -0
- package/dist/types/services/events.d.ts +15 -9
- package/dist/types/services/exposure.d.ts +13 -63
- package/dist/types/services/history.d.ts +5 -14
- package/dist/types/services/host-monitor.d.ts +6 -11
- package/dist/types/services/init.d.ts +5 -35
- package/dist/types/services/job-ledger.d.ts +27 -0
- package/dist/types/services/jobs.d.ts +113 -0
- package/dist/types/services/log-buffer.d.ts +7 -8
- package/dist/types/services/log-files.d.ts +12 -42
- package/dist/types/services/log-relay.d.ts +3 -13
- package/dist/types/services/nanny.d.ts +3 -10
- package/dist/types/services/notifications.d.ts +31 -61
- package/dist/types/services/panel.d.ts +32 -78
- package/dist/types/services/proxy-certificates/certificates.d.ts +31 -69
- package/dist/types/services/proxy-config.d.ts +15 -36
- package/dist/types/services/proxy-dns01.d.ts +14 -0
- package/dist/types/services/proxy.d.ts +73 -254
- package/dist/types/services/scheduler.d.ts +46 -0
- package/dist/types/services/state.d.ts +17 -8
- package/dist/types/services/supervisor/compose.d.ts +2 -6
- package/dist/types/services/supervisor/entry.d.ts +29 -32
- package/dist/types/services/supervisor/health.d.ts +8 -31
- package/dist/types/services/supervisor/job-run.d.ts +36 -0
- package/dist/types/services/supervisor/output.d.ts +13 -77
- package/dist/types/services/supervisor/persistent.d.ts +5 -11
- package/dist/types/services/supervisor/port-preflight.d.ts +4 -10
- package/dist/types/services/supervisor/records.d.ts +27 -60
- package/dist/types/services/supervisor/restart-required.d.ts +13 -0
- package/dist/types/services/supervisor/spawn.d.ts +3 -5
- package/dist/types/services/supervisor/view.d.ts +3 -1
- package/dist/types/services/supervisor.d.ts +31 -43
- package/dist/types/services/tls.d.ts +6 -17
- package/dist/types/services/ui-update.d.ts +19 -17
- package/dist/types/services/ui.d.ts +10 -19
- package/dist/types/shared/action-outcome.d.ts +2 -7
- package/dist/types/shared/api-client.d.ts +133 -177
- package/dist/types/shared/api-scopes.d.ts +17 -0
- package/dist/types/shared/backup-scope.d.ts +16 -90
- package/dist/types/shared/clone.d.ts +2 -11
- package/dist/types/shared/contracts/accounts.d.ts +99 -0
- package/dist/types/shared/contracts/backups.d.ts +219 -0
- package/dist/types/shared/contracts/ddns.d.ts +208 -0
- package/dist/types/shared/contracts/frames.d.ts +1395 -0
- package/dist/types/shared/contracts/index.d.ts +3 -0
- package/dist/types/shared/contracts/logs.d.ts +107 -0
- package/dist/types/shared/contracts/proxy.d.ts +303 -0
- package/dist/types/shared/contracts.d.ts +852 -1982
- package/dist/types/shared/cpu-scale.d.ts +3 -19
- package/dist/types/shared/crash-cause.d.ts +8 -0
- package/dist/types/shared/cron.d.ts +70 -0
- package/dist/types/shared/ddns-form.d.ts +9 -43
- package/dist/types/shared/endpoint.d.ts +1 -7
- package/dist/types/shared/error-codes.d.ts +438 -0
- package/dist/types/shared/error-message.d.ts +1 -7
- package/dist/types/shared/fields.d.ts +7 -17
- package/dist/types/shared/form-repair.d.ts +1 -5
- package/dist/types/shared/generated.d.ts +3 -19
- package/dist/types/shared/host-readings.d.ts +25 -128
- package/dist/types/shared/lazy.d.ts +1 -1
- package/dist/types/shared/live-frames.d.ts +2 -8
- package/dist/types/shared/live-series.d.ts +2 -8
- package/dist/types/shared/live-store.d.ts +4 -8
- package/dist/types/shared/log-download.d.ts +6 -0
- package/dist/types/shared/meta.d.ts +6 -0
- package/dist/types/shared/password-policy.d.ts +10 -0
- package/dist/types/shared/patch-diff.d.ts +13 -72
- package/dist/types/shared/port-reading.d.ts +18 -0
- package/dist/types/shared/probe-latency.d.ts +3 -21
- package/dist/types/shared/proxy-form.d.ts +33 -74
- package/dist/types/shared/proxy-validate.d.ts +11 -0
- package/dist/types/shared/query-params.d.ts +8 -0
- package/dist/types/shared/server-attention.d.ts +2 -27
- package/dist/types/shared/server-form.d.ts +15 -54
- package/dist/types/shared/server-key.d.ts +1 -12
- package/dist/types/shared/server-readings.d.ts +7 -32
- package/dist/types/shared/server-url.d.ts +9 -31
- package/dist/types/shared/shape.d.ts +1 -16
- package/dist/types/shared/stream-access.d.ts +2 -8
- package/dist/types/shared/ui-format.d.ts +25 -65
- package/docs/API.md +315 -107
- package/docs/BACKUPS.md +61 -56
- package/docs/CLI.md +255 -49
- package/docs/DDNS.md +35 -49
- package/docs/JOBS.md +129 -0
- package/docs/NOTIFICATIONS.md +58 -90
- package/docs/REVERSE_PROXY.md +116 -188
- package/docs/SECURITY.md +126 -44
- package/docs/SERVERS.md +282 -409
- package/docs/UI_CREATION.md +90 -47
- package/docs/demo/blank-host-restore.sh +31 -7
- package/package.json +15 -6
- package/scripts/prepare.mjs +47 -0
- package/uis/stock/dist/assets/CopyButton-8mliL0xi.js +1 -0
- package/uis/stock/dist/assets/GlobalSettingsView-BINXY77E.js +1 -0
- package/uis/stock/dist/assets/LogViewer-kiSnTwdY.js +1 -0
- package/uis/stock/dist/assets/LogsView-DDXf_ONs.js +1 -0
- package/uis/stock/dist/assets/Modal-lrUuViF2.js +39 -0
- package/uis/stock/dist/assets/ProxyView-uXMaJdSQ.js +1 -0
- package/uis/stock/dist/assets/ServerDetailView-CW0Vb_c0.js +4 -0
- package/uis/stock/dist/assets/SettingsShell-B135xWjJ.js +1 -0
- package/uis/stock/dist/assets/SettingsView-BLtWxVkl.js +2 -0
- package/uis/stock/dist/assets/de-BIoTrHBQ.js +1 -0
- package/uis/stock/dist/assets/es-x4-ih8lH.js +1 -0
- package/uis/stock/dist/assets/fr-DatqBBkO.js +1 -0
- package/uis/stock/dist/assets/index-CnojaKcA.css +2 -0
- package/uis/stock/dist/assets/index-D-CiZReu.js +16 -0
- package/uis/stock/dist/assets/ja-CW1703Gw.js +1 -0
- package/uis/stock/dist/assets/ko-wFbT4XtK.js +1 -0
- package/uis/stock/dist/assets/ru-C1p5C4VN.js +1 -0
- package/uis/stock/dist/assets/useUnsavedGuard-BcsXsfCC.js +9 -0
- package/uis/stock/dist/assets/vi-CDqr0uie.js +1 -0
- package/uis/stock/dist/assets/zh-CN-BJ7iit-X.js +1 -0
- package/uis/stock/dist/index.html +4 -3
- package/uis/stock/dist/ui.json +3 -3
- package/dist/chunks/archive-DP-XQR8X.js.map +0 -1
- package/dist/chunks/atomic-C1PfJpE7.js.map +0 -1
- package/dist/chunks/backup-CZcVca2a.js.map +0 -1
- package/dist/chunks/backups-CFRaWe_m.js +0 -4691
- package/dist/chunks/backups-CFRaWe_m.js.map +0 -1
- package/dist/chunks/config-text-DifCHhnz.js +0 -50
- package/dist/chunks/config-text-DifCHhnz.js.map +0 -1
- package/dist/chunks/contracts-CMBD1TF9.js.map +0 -1
- package/dist/chunks/daemon-log-BVj8cDEo.js +0 -241
- package/dist/chunks/daemon-log-BVj8cDEo.js.map +0 -1
- package/dist/chunks/daemon-qKVECISl.js +0 -247
- package/dist/chunks/daemon-qKVECISl.js.map +0 -1
- package/dist/chunks/docker-Cy9Lyvda.js.map +0 -1
- package/dist/chunks/down-pKbGCW9d.js.map +0 -1
- package/dist/chunks/init-BZ7hK9Vf.js.map +0 -1
- package/dist/chunks/last-stop-C-BXz_XI.js +0 -53
- package/dist/chunks/last-stop-C-BXz_XI.js.map +0 -1
- package/dist/chunks/layout-DwTtmund.js +0 -24
- package/dist/chunks/layout-DwTtmund.js.map +0 -1
- package/dist/chunks/lazy-Ce5zEAq1.js +0 -66
- package/dist/chunks/lazy-Ce5zEAq1.js.map +0 -1
- package/dist/chunks/log-buffer-Dy9HHDMD.js +0 -414
- package/dist/chunks/log-buffer-Dy9HHDMD.js.map +0 -1
- package/dist/chunks/logger-B5U4GD3j.js.map +0 -1
- package/dist/chunks/logs---TI_bxM.js.map +0 -1
- package/dist/chunks/migrate-Cfoq-Vgh.js +0 -155
- package/dist/chunks/migrate-Cfoq-Vgh.js.map +0 -1
- package/dist/chunks/nanny-B-Eu0sFW.js.map +0 -1
- package/dist/chunks/nanny-BtWfy0QH.js +0 -1167
- package/dist/chunks/nanny-BtWfy0QH.js.map +0 -1
- package/dist/chunks/nanny-sweep-DErnlPY1.js.map +0 -1
- package/dist/chunks/nearest-6KgQEDUe.js.map +0 -1
- package/dist/chunks/parse-DhmG26fI.js.map +0 -1
- package/dist/chunks/paths-CGlGDrOU.js.map +0 -1
- package/dist/chunks/port-B8WBTRMk.js.map +0 -1
- package/dist/chunks/restart-Des4DrAN.js.map +0 -1
- package/dist/chunks/schema-B240VXcV.js.map +0 -1
- package/dist/chunks/secrets-BieELnZh.js +0 -562
- package/dist/chunks/secrets-BieELnZh.js.map +0 -1
- package/dist/chunks/server-Bge2r2qQ.js +0 -169
- package/dist/chunks/server-Bge2r2qQ.js.map +0 -1
- package/dist/chunks/server-ids-DRuNLVCV.js +0 -32
- package/dist/chunks/server-ids-DRuNLVCV.js.map +0 -1
- package/dist/chunks/set-password-D5vZqqSX.js +0 -43
- package/dist/chunks/set-password-D5vZqqSX.js.map +0 -1
- package/dist/chunks/set-token-obPiEJYk.js +0 -78
- package/dist/chunks/set-token-obPiEJYk.js.map +0 -1
- package/dist/chunks/settings-xu-XTfWg.js.map +0 -1
- package/dist/chunks/setup-temp-CAN4_bA-.js.map +0 -1
- package/dist/chunks/shape-DnTKzjQ2.js +0 -24
- package/dist/chunks/shape-DnTKzjQ2.js.map +0 -1
- package/dist/chunks/src-BtWMFmzZ.js.map +0 -1
- package/dist/chunks/status-DT1EsA-B.js.map +0 -1
- package/dist/chunks/ui-D562aqw5.js.map +0 -1
- package/dist/chunks/ui-dir-CsU3uLNV.js.map +0 -1
- package/dist/chunks/ui-release-DKzVvlLd.js.map +0 -1
- package/dist/chunks/ui-revert-EkBBwRTt.js.map +0 -1
- package/dist/chunks/ui-switch-BnZTdMDd.js.map +0 -1
- package/dist/chunks/ui-update-_xryLYxw.js.map +0 -1
- package/dist/chunks/up-Pdz-l6IH.js.map +0 -1
- package/dist/chunks/usage-DFrCVXpT.js.map +0 -1
- package/dist/chunks/workspaces-DYcfvKV_.js.map +0 -1
- package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +0 -1
- package/dist/types/cli/set-password.d.ts +0 -14
- package/dist/types/cli/set-token.d.ts +0 -21
- package/uis/stock/dist/assets/CopyButton-BUBKRJyY.js +0 -1
- package/uis/stock/dist/assets/GlobalSettingsView-yYMcRWvt.js +0 -1
- package/uis/stock/dist/assets/LogViewer-DIliXy62.js +0 -1
- package/uis/stock/dist/assets/LogsView-B7Z-7RNg.js +0 -1
- package/uis/stock/dist/assets/Modal-DmKa5Qpp.js +0 -39
- package/uis/stock/dist/assets/ProxyView-DvZiNkwb.js +0 -1
- package/uis/stock/dist/assets/ServerDetailView-6idGT_EX.js +0 -2
- package/uis/stock/dist/assets/SettingsShell-CeGtleYI.js +0 -1
- package/uis/stock/dist/assets/SettingsView-BrhJIrmk.js +0 -2
- package/uis/stock/dist/assets/de-BRITeb0H.js +0 -1
- package/uis/stock/dist/assets/es-B2zIEssV.js +0 -1
- package/uis/stock/dist/assets/fr-s0ZOBEqh.js +0 -1
- package/uis/stock/dist/assets/index-C1MehbKy.css +0 -2
- package/uis/stock/dist/assets/index-CnBN54wF.js +0 -15
- package/uis/stock/dist/assets/ja-CU7MR85V.js +0 -1
- package/uis/stock/dist/assets/ko-tL5Me6d-.js +0 -1
- package/uis/stock/dist/assets/ru-92yrvkNJ.js +0 -1
- package/uis/stock/dist/assets/vi-CzvY16k2.js +0 -1
- package/uis/stock/dist/assets/zh-CN-DDwFW_uW.js +0 -1
package/docs/REVERSE_PROXY.md
CHANGED
|
@@ -4,19 +4,18 @@ Expose the whole stack through one engine with automatic HTTPS: `git.example.com
|
|
|
4
4
|
your Gitea entry, `media.example.com` → Jellyfin, `panel.example.com` → this panel.
|
|
5
5
|
|
|
6
6
|
The engine is **Caddy**, downloaded and supervised by the panel. You never edit its
|
|
7
|
-
configuration — the panel generates it from the route table and applies it
|
|
8
|
-
|
|
9
|
-
running one in place.
|
|
7
|
+
configuration — the panel generates it from the route table and applies it atomically: a
|
|
8
|
+
configuration that does not load leaves the running one in place.
|
|
10
9
|
|
|
11
10
|
Setup is **Others → Reverse Proxy** in the sidebar.
|
|
12
11
|
|
|
13
12
|
## Quick start
|
|
14
13
|
|
|
15
|
-
1. **Install the engine** — one button, the current Caddy release
|
|
14
|
+
1. **Install the engine** — one button, the current Caddy release, into
|
|
16
15
|
`$HHOSTED_HOME/.hh/.proxy/bin/`. The version the binary reports is shown afterwards.
|
|
17
16
|
2. **Set the ports** — `80` and `443` by default, plus the ACME account e-mail.
|
|
18
17
|
3. **Add a route** — a hostname and a target.
|
|
19
|
-
4. Point the hostname's DNS at this machine (Dynamic DNS can do that) and switch the
|
|
18
|
+
4. Point the hostname's DNS at this machine ([Dynamic DNS](./DDNS.md) can do that) and switch the
|
|
20
19
|
proxy on.
|
|
21
20
|
|
|
22
21
|
```json
|
|
@@ -41,164 +40,106 @@ That block lives in `$HHOSTED_HOME/.hh/settings.json` — the panel writes it fo
|
|
|
41
40
|
|
|
42
41
|
## Ports
|
|
43
42
|
|
|
44
|
-
`80` and `443` are what automatic HTTPS wants: a certificate is issued over an ACME
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Binding below 1024 needs a privilege. On Linux:
|
|
43
|
+
`80` and `443` are what automatic HTTPS wants: a certificate is issued over an ACME challenge on
|
|
44
|
+
one of them. Binding below 1024 needs a privilege. On Linux:
|
|
48
45
|
|
|
49
46
|
```sh
|
|
50
47
|
sudo setcap 'cap_net_bind_service=+ep' "$HHOSTED_HOME/.hh/.proxy/bin/hh-caddy"
|
|
51
48
|
```
|
|
52
49
|
|
|
53
|
-
Otherwise use **4480/4443** — one click in the page, or `httpPort`/`httpsPort` — and
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
A port a *stranger* holds is refused before anything is started, and no listener the panel did not
|
|
57
|
-
start is ever killed. The ports the engine actually bound are not a conflict: once it is running, a
|
|
58
|
-
settings edit re-applies to the engine already listening on them. A configured port it did **not**
|
|
59
|
-
bind — a `tls: "off"`-only route table binds no HTTPS listener — is not claimed on its behalf.
|
|
50
|
+
Otherwise use **4480/4443** — one click in the page, or `httpPort`/`httpsPort` — and forward
|
|
51
|
+
`80 → 4480` and `443 → 4443` on your router.
|
|
60
52
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
says so when it refuses a port it cannot attribute. A stranger holding a capped process's ports is
|
|
66
|
-
reported without a pid.
|
|
53
|
+
A port a stranger holds is refused before anything is started, and no listener the panel did not
|
|
54
|
+
start is ever killed. A process carrying a file capability (the `setcap` above) hides its sockets
|
|
55
|
+
from `lsof` and the OS, so the panel recognises its own engine from the configuration it applied and
|
|
56
|
+
the engine's nanny state; a stranger holding a capped process's ports is reported without a pid.
|
|
67
57
|
|
|
68
58
|
## Routes
|
|
69
59
|
|
|
70
60
|
| Field | Notes |
|
|
71
61
|
| --- | --- |
|
|
72
62
|
| `id` | Stable name, `[a-z0-9_-]`. |
|
|
73
|
-
| `host` | The public hostname. A local-only name (`gitea.lan`, `box`, an IP) gets the engine's own CA instead of a public certificate. |
|
|
63
|
+
| `host` | The public hostname, matched without regard to case. A local-only name (`gitea.lan`, `box`, an IP) gets the engine's own CA instead of a public certificate. |
|
|
74
64
|
| `enabled` | A disabled route stays configured but is not served. |
|
|
75
65
|
| `target` | `server` (a supervised entry), `panel` (this control panel), `external` (any `host:port`). |
|
|
76
|
-
| `workspace` + `server` | For `target: "server"` — an id is only unique inside its workspace. The upstream address is resolved live; a stopped entry leaves the hostname dark and the page says so
|
|
77
|
-
| `url` | For `target: "external"`, e.g. `http://10.0.0.5:8080`.
|
|
78
|
-
| `path` | Optional prefix, so one hostname can serve several apps.
|
|
79
|
-
| `tls` | `auto` (default), `off`, `manual
|
|
80
|
-
| `
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
A
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
the
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
`localhost`, `[::1]`, `0.0.0.0`) is a panel route by another name, and is held to the same rule.
|
|
95
|
-
A restore is held to it too. If a running engine's panel routes stop meeting it (say a restore
|
|
96
|
-
removed the password), the engine keeps serving every other route and drops those, with the
|
|
97
|
-
reason shown as the proxy's error, until the rule is met again.
|
|
66
|
+
| `workspace` + `server` | For `target: "server"` — an id is only unique inside its workspace. The upstream address is resolved live; a stopped entry leaves the hostname dark and the page says so. |
|
|
67
|
+
| `url` | For `target: "external"`, e.g. `http://10.0.0.5:8080`. Without a port the scheme's default is used. A host and port only: an upstream with a path, query or credentials is refused. An `https://` upstream's certificate is verified against the system trust store. |
|
|
68
|
+
| `path` | Optional prefix, so one hostname can serve several apps. `app`, `/app`, `/app/` and `/App` are the same prefix, so two routes spelling it differently on one host are refused as a clash. The longest matching prefix wins; a route with no path takes what is left. |
|
|
69
|
+
| `tls` | `auto` (default), `off`, `manual` — see [HTTPS](#https). |
|
|
70
|
+
| `upstreamSkipVerify` | Optional, off by default. On, an `https://` upstream's certificate is not verified — for a homelab upstream with a self-signed certificate, at the cost of accepting an impostor too. |
|
|
71
|
+
| `dnsAccount` | Optional `workspace/account` for a DNS-01 challenge (see [DNS-01](#dns-01)). |
|
|
72
|
+
|
|
73
|
+
A route that cannot be served — its server was removed, its upstream is unusable, or a `manual`
|
|
74
|
+
route has no valid pair — is left out of the engine and the page says why on that row; every other
|
|
75
|
+
route keeps serving. A save that adds or changes such a route while the proxy is on is refused
|
|
76
|
+
instead.
|
|
77
|
+
|
|
78
|
+
**A route pointing at the panel is exposure.** It is held to the same rule as binding the listener
|
|
79
|
+
beyond loopback — authentication on and your own secret of at least 12 characters, not the first-run
|
|
80
|
+
one ([SECURITY.md](./SECURITY.md)) — or the save is refused, whatever its `tls`. An `external` route
|
|
81
|
+
whose upstream is the panel's own listener (`127.0.0.1`, `localhost`, `[::1]` or `0.0.0.0` on the
|
|
82
|
+
panel's port) counts too, and so does a restore. If a running engine's panel routes stop meeting the
|
|
83
|
+
rule, the engine drops those and keeps serving the rest, with the reason shown as the proxy's error.
|
|
98
84
|
|
|
99
85
|
## HTTPS
|
|
100
86
|
|
|
101
87
|
| `tls` | What it means |
|
|
102
88
|
| --- | --- |
|
|
103
|
-
| `auto` |
|
|
89
|
+
| `auto` | A public name gets a Let's Encrypt certificate (HTTP-01 or TLS-ALPN-01, renewed in the background). A local-only name gets the engine's own locally-trusted CA, and the public CA is never asked. |
|
|
104
90
|
| `off` | Plain HTTP on the http port, no certificate. |
|
|
105
|
-
| `manual` | One of the uploaded pairs, whichever covers the hostname
|
|
106
|
-
|
|
107
|
-
`email` is required as soon as a route uses a public hostname
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
A name the CA will not issue for
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
itself has no certificate until the CA answers. It is not offered while a name is still
|
|
142
|
-
*pending*, because there the engine is already mid-ACME. It is refused when removing that
|
|
143
|
-
route would leave **nothing served** — it is the only working route, or every other one is
|
|
144
|
-
disabled or has no upstream — because a configuration with no listeners takes the site
|
|
145
|
-
dark. Add another working route first.
|
|
146
|
-
|
|
147
|
-
A **removed** route has its stored certificate dropped on the next apply, so adding it
|
|
148
|
-
back asks the CA instead of serving the old pair. A **disabled** route keeps its
|
|
149
|
-
certificate: it is still configured, and switching it back on should not cost a new
|
|
150
|
-
issuance.
|
|
151
|
-
|
|
152
|
-
A hostname **no route claims** gets a page saying so, on both ports — not a redirect into
|
|
153
|
-
a handshake that cannot finish. A visitor with no hostname at all (a bare IP on the HTTPS
|
|
154
|
-
port) is answered by the engine's own CA under `hh-fallback.invalid`, so the page appears
|
|
155
|
-
after the browser's warning. A hostname that is neither routed nor covered by a
|
|
156
|
-
certificate still fails its handshake: there is nothing to present a certificate for.
|
|
157
|
-
|
|
158
|
-
**A name with no certificate yet is still reachable.** The engine's own CA is the last
|
|
159
|
-
issuer in the policy, so the handshake completes with an untrusted certificate — the
|
|
160
|
-
browser offers to continue instead of failing with `ERR_SSL_PROTOCOL_ERROR` — and over
|
|
161
|
-
plain HTTP the same name answers with a page saying so, naming the ports to forward,
|
|
162
|
-
rather than redirecting into a handshake that cannot finish. The panel re-applies the
|
|
163
|
-
configuration when the certificate arrives, and the route table shows where each name
|
|
164
|
-
stands: *issued* · *pending* · *failed* (with the engine's own reason) · *local* (the
|
|
165
|
-
engine CA) · *uploaded*.
|
|
91
|
+
| `manual` | One of the [uploaded pairs](#uploaded-certificates), whichever covers the hostname. With no pair covering it, the route is not served (and refused at save). |
|
|
92
|
+
|
|
93
|
+
`email` is required as soon as a route uses a public hostname; it registers the ACME account.
|
|
94
|
+
`staging` uses the ACME staging endpoint while you test: the certificates are untrusted, but no rate
|
|
95
|
+
limit is burnt. ZeroSSL is not offered (it needs an EAB key the panel does not collect).
|
|
96
|
+
|
|
97
|
+
With the proxy on 4480/4443, **80 has to reach 4480 and 443 has to reach 4443**, or the CA never
|
|
98
|
+
sees the challenge and the name never gets its certificate.
|
|
99
|
+
|
|
100
|
+
The route table shows where each name stands: *issued* · *pending* · *failed* (with the engine's
|
|
101
|
+
reason) · *local* (the engine CA) · *uploaded*.
|
|
102
|
+
|
|
103
|
+
- **A name with no certificate yet is still reachable**: the handshake completes with an untrusted
|
|
104
|
+
certificate from the engine's own CA, and plain HTTP answers with a page naming the ports to forward.
|
|
105
|
+
The panel re-applies the configuration when the certificate arrives.
|
|
106
|
+
- **A name the CA will not issue for** reads **Fell back to Local CA** and is served with an untrusted
|
|
107
|
+
certificate while the engine keeps trying on its own — next attempt about **8 hours** later, with
|
|
108
|
+
no restart.
|
|
109
|
+
- **A local-only name** (`.lan`, an IP, `localhost`) is signed by the engine's own CA and reads
|
|
110
|
+
**local — signed by the engine's own CA** once that exists (**waiting for the CA** until then).
|
|
111
|
+
- **Force retry certificate** (on a fell-back row) asks the CA again at once without restarting the
|
|
112
|
+
engine: the panel briefly reloads without that hostname, drops its stored certificate and puts the
|
|
113
|
+
routes back. It is refused when removing that hostname would leave nothing served — add another
|
|
114
|
+
working route first.
|
|
115
|
+
- A **removed** route's certificate is dropped on the next apply; a **disabled** route keeps its own.
|
|
116
|
+
- A hostname **no route claims** gets a page saying so on both ports. A visitor with no hostname (a
|
|
117
|
+
bare IP on the HTTPS port) gets that page after a certificate warning.
|
|
118
|
+
|
|
119
|
+
### The engine's root certificate
|
|
120
|
+
|
|
121
|
+
For its own CA the engine — not the panel — adds a root to this machine's **trust store**
|
|
122
|
+
(`/etc/ssl/certs` on Linux, the login keychain on macOS, `certutil` on Windows); that is why a browser
|
|
123
|
+
here trusts a `.lan` name. On Linux the first start needs `sudo` once, and the engine logs
|
|
124
|
+
`installing root certificate (you might be prompted for password)`. It is one root per engine data
|
|
125
|
+
directory, so **a second home-hosted home on one machine installs a second one**, and deleting a
|
|
126
|
+
home's `.hh` does not remove it.
|
|
166
127
|
|
|
167
128
|
## Uploaded certificates
|
|
168
129
|
|
|
169
|
-
*Manual certificate* takes as many PEM pairs as you have names: add one per hostname,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
Certificates are managed by the engine, inside `.hh/.proxy/engine/`: the generated
|
|
184
|
-
configuration pins its storage root, and the panel passes the engine no `$HOME` of its
|
|
185
|
-
own to write into.
|
|
186
|
-
|
|
187
|
-
One thing outside it is touched, by the engine and not by the panel: for its own CA it
|
|
188
|
-
adds the root to this machine's **trust store** (`/etc/ssl/certs` on Linux, the login
|
|
189
|
-
keychain on macOS, `certutil` on Windows) — a `.lan` name is only trusted by a browser
|
|
190
|
-
because of that. On Linux the directory is root-owned, so the install needs `sudo` once;
|
|
191
|
-
the engine logs `installing root certificate (you might be prompted for password)` and
|
|
192
|
-
then `certificate installed properly in linux trusts`. It is one root per engine data
|
|
193
|
-
directory, so **a second home-hosted home on one machine installs a second one**, and a
|
|
194
|
-
root is not removed when that home's `.hh` is deleted. The engine has a knob for it —
|
|
195
|
-
`apps.pki.certificate_authorities.local.install_trust: false` — which the panel does not
|
|
196
|
-
set, because a browser would then warn on every local name.
|
|
197
|
-
|
|
198
|
-
**DNS-01** is the way round a router that will not forward 80 and 443. A route is one
|
|
199
|
-
hostname, so there is no wildcard to issue; what DNS-01 buys is a certificate with
|
|
200
|
-
**no inbound port at all** — behind CGNAT, or on a host only reachable over VPN.
|
|
201
|
-
Turn it on in the page and point each route at a DNS account:
|
|
130
|
+
*Manual certificate* takes as many PEM pairs as you have names: add one per hostname, label it, and
|
|
131
|
+
the engine serves each to the name it covers. A pair cannot be removed while a route still serves it.
|
|
132
|
+
|
|
133
|
+
The panel shows each pair's subject, issuer, expiry and the hostnames it covers (SANs, wildcards
|
|
134
|
+
included), and marks a pair no route uses. A pair that is expired, not yet valid, or whose key does
|
|
135
|
+
not match its certificate is never served, and a route asking for it is refused with the reason. A
|
|
136
|
+
pair edited on disk is re-read on the next look; **Apply** reloads the engine with it.
|
|
137
|
+
|
|
138
|
+
## DNS-01
|
|
139
|
+
|
|
140
|
+
DNS-01 is the way round a router that will not forward 80 and 443: a certificate with **no inbound
|
|
141
|
+
port at all** — behind CGNAT, or on a host only reachable over VPN. (A route is one hostname, so it
|
|
142
|
+
issues no wildcards.) Turn it on in the page and point routes at a DNS account:
|
|
202
143
|
|
|
203
144
|
```json
|
|
204
145
|
{
|
|
@@ -211,75 +152,62 @@ Turn it on in the page and point each route at a DNS account:
|
|
|
211
152
|
}
|
|
212
153
|
```
|
|
213
154
|
|
|
214
|
-
The account is
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
account whose provider cannot write
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
The engine holds no DNS credentials. It asks the panel over the ACMEProxy protocol on
|
|
236
|
-
loopback, with credentials the panel generated for it, and the panel writes the
|
|
237
|
-
`_acme-challenge` record through that account. `resolvers` overrides the nameservers
|
|
238
|
-
the engine checks the record against, which is what split-horizon DNS needs.
|
|
239
|
-
|
|
240
|
-
Setting it up needs no inbound port, but the record has to be **published** before the
|
|
241
|
-
CA looks: the panel writes it, the CA reads it, and the panel removes it again. A
|
|
242
|
-
provider that can only write a whole record set — Namecheap's XML API is the one —
|
|
243
|
-
is read-modify-write, so the panel rewrites records it did not create, and refuses
|
|
244
|
-
rather than adding a 151st record to a zone already at the limit.
|
|
155
|
+
The account is one from **Workspace Settings → Dynamic DNS** ([DDNS.md](./DDNS.md)), with the same
|
|
156
|
+
credentials. It does not need the hostname in its own list: the account names the zone, the route
|
|
157
|
+
names the subject. Routes may name different accounts, so names in two zones at two registrars each
|
|
158
|
+
get the right one.
|
|
159
|
+
|
|
160
|
+
Leave a route on **Automatic** and it uses the only account that can answer a challenge, for a name
|
|
161
|
+
inside that account's zones (those of its Dynamic DNS hostnames, and of any route naming it
|
|
162
|
+
explicitly). A name outside them, or any name when more than one account could answer, keeps the port
|
|
163
|
+
challenges — pick the account on the route instead. Local-only names are never challenged.
|
|
164
|
+
|
|
165
|
+
Only a provider that can write a `TXT` record can answer: today **Cloudflare** and **Namecheap
|
|
166
|
+
(API)** — a separate provider from Namecheap's Dynamic DNS password, which cannot write TXT records.
|
|
167
|
+
An unknown account, one whose provider cannot write TXT, or one with no credentials stored is refused
|
|
168
|
+
when you save. Namecheap's API rewrites the whole zone per write, so the panel refuses rather than
|
|
169
|
+
add a record to a zone already at its limit.
|
|
170
|
+
|
|
171
|
+
The engine holds no DNS credentials: it asks the panel over loopback, with credentials the panel
|
|
172
|
+
generated, and the panel writes and later removes the `_acme-challenge` record. So DNS-01 needs the
|
|
173
|
+
panel bound to `local` or `lan` (a panel bound to one address is dialled there). `resolvers`
|
|
174
|
+
overrides the nameservers the engine checks the record against — what split-horizon DNS needs.
|
|
245
175
|
|
|
246
176
|
## The engine
|
|
247
177
|
|
|
248
178
|
| | |
|
|
249
179
|
| --- | --- |
|
|
250
|
-
| Comes from | Caddy's own build service (`caddyserver.com/api/download`), at **its current release** — the panel pins no version, so **Update engine** is how a security fix reaches you. |
|
|
251
|
-
|
|
|
252
|
-
|
|
|
253
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
258
|
-
| Stops with | **Stop** in the page, switching the proxy off, or `POST /api/proxy/stop`. It never stops itself, and `down` leaves it serving — the socket facing the internet is not something a panel restart should drop. It is never restarted automatically either: a configuration the engine refuses needs a person, not a retry loop. |
|
|
259
|
-
|
|
260
|
-
Because it runs under a nanny, a panel restart does not drop the socket that faces the
|
|
261
|
-
internet: the engine keeps serving, and the panel reattaches to it on the next boot.
|
|
180
|
+
| Comes from | Caddy's own build service (`caddyserver.com/api/download`), at **its current release** — the panel pins no version, so **Update engine** is how a security fix reaches you. A release that changes Caddy's JSON schema may need a panel update first. |
|
|
181
|
+
| Carries | The `acmeproxy` DNS provider, which DNS-01 needs. An engine installed by an older release is refused with *update the engine*. |
|
|
182
|
+
| Installed at | `.hh/.proxy/bin/hh-caddy` + `engine.json` (version, URL, size, date, sha256). A download redirected off https or off `caddyserver.com` is refused. |
|
|
183
|
+
| Replaceable | Drop any `hh-caddy` build at that path **and delete `engine.json`**, and the panel runs it as *a path configured by hand*. A downloaded engine is checked against its recorded sha256 before every start. Installing or updating is refused while the engine runs — **Stop** it first. |
|
|
184
|
+
| Runs as | A child of the panel's nanny, like a `persistent: true` entry: a panel restart or `down` leaves it serving, and the panel reattaches on the next boot. |
|
|
185
|
+
| Admin API | Opened to the panel only: a unix socket in a `0700` directory (loopback TCP on Windows). |
|
|
186
|
+
| Reloads | Atomic. The previous applied revision is kept, so **Revert** goes back one change; it passes the same exposure and port checks as an apply. |
|
|
187
|
+
| Stops with | **Stop** in the page, switching the proxy off (in the page, `settings.json`, or a restore), or `POST /api/proxy/stop`. It never stops or restarts itself — a configuration the engine refuses needs a person, not a retry loop. |
|
|
262
188
|
|
|
263
189
|
## API
|
|
264
190
|
|
|
265
191
|
| Route | What it does |
|
|
266
192
|
| --- | --- |
|
|
267
193
|
| `GET /api/proxy` | Policy, engine, live state and every route with its resolved upstream. |
|
|
268
|
-
| `PATCH /api/proxy` | Change the settings or replace the route list, then apply. |
|
|
194
|
+
| `PATCH /api/proxy` | Change the settings or replace the route list, then apply. A `200` means saved; `applyError` in the answer says the engine did not apply it. |
|
|
269
195
|
| `POST /api/proxy/engine` | Install or update the engine (`{ "version": "" }` = the current release). |
|
|
270
196
|
| `PUT` \| `DELETE /api/proxy/certificates/:id` | Store or remove one uploaded pair (`{ label, certificate, privateKey }`). |
|
|
271
197
|
| `POST /api/proxy/start` \| `stop` \| `apply` \| `revert` | Engine lifecycle and configuration. |
|
|
272
198
|
| `POST /api/proxy/routes/:id/retry-certificate` | Ask the CA again for one route, without restarting the engine. |
|
|
273
|
-
| `POST /_acme/present` \| `cleanup` | The engine's DNS-01 channel: loopback only,
|
|
199
|
+
| `POST /_acme/present` \| `cleanup` | The engine's DNS-01 channel: loopback only, behind credentials the panel generated. |
|
|
274
200
|
|
|
201
|
+
These need the `proxy` scope for writes; see [API.md](./API.md) for the conventions.
|
|
275
202
|
|
|
276
203
|
## Files
|
|
277
204
|
|
|
278
205
|
| Path | What |
|
|
279
206
|
| --- | --- |
|
|
280
207
|
| `.hh/.proxy/bin/` | The engine binary and the record of what was installed. |
|
|
281
|
-
| `.hh/.proxy/engine/current.json` | The generated configuration; `previous.json` is the revision before it. Both
|
|
208
|
+
| `.hh/.proxy/engine/current.json` | The generated configuration; `previous.json` is the revision before it. Both `0600`: with DNS-01 on they carry the challenge credentials. |
|
|
209
|
+
| `.hh/.proxy/engine/` | Also the engine's certificate storage, pinned away from `$HOME`. |
|
|
282
210
|
| `.hh/.proxy/state/` | The nanny's spec and state, and `admin.json` (how to reach a running engine). |
|
|
283
|
-
| `.hh/.proxy/state/challenge.json` | The credentials the engine presents to `/_acme`, `0600`;
|
|
211
|
+
| `.hh/.proxy/state/challenge.json` | The credentials the engine presents to `/_acme`, `0600`; only with DNS-01 on. |
|
|
284
212
|
| `.hh/.proxy/tls/<id>.crt.pem` \| `<id>.key.pem` | One uploaded pair per entry (the key is `0600`). |
|
|
285
|
-
| `.hh/.logs/proxy.log` | The engine's own JSON output
|
|
213
|
+
| `.hh/.logs/proxy.log` | The engine's own JSON output. |
|