@fabioplunser/epd 0.5.15 → 0.5.16
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 +71 -3
- package/bin/epd.js +0 -0
- package/dist/cli.js +1641 -330
- package/docs/.vitepress/config.mts +2 -0
- package/docs/agents.md +16 -1
- package/docs/guide/dashboard-validation.md +181 -0
- package/docs/guide/private-repositories.md +44 -0
- package/docs/guide/server-baseline.md +104 -0
- package/docs/guide/storage-validation.md +40 -0
- package/docs/reference/cli.md +95 -0
- package/docs/reference/config.md +14 -0
- package/package.json +17 -6
package/README.md
CHANGED
|
@@ -30,6 +30,36 @@ across every server's replicas, so one machine can serve while another is down.
|
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
|
+
## Monorepo
|
|
34
|
+
|
|
35
|
+
The CLI lives in `src/` and `bin/`. `apps/web` is the single dashboard for deployments, servers, CrowdSec, metrics, logs and notifications. The former CrowdSecUI application is merged into this dashboard.
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
bun install --frozen-lockfile
|
|
39
|
+
bun run web:dev
|
|
40
|
+
bun run web:check
|
|
41
|
+
bun run web:test
|
|
42
|
+
bun run web:build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
To self-host on a Linux server with Docker Compose and WireGuard support:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cp .env.example .env
|
|
49
|
+
# Set the values in .env before starting.
|
|
50
|
+
bun run dashboard:up
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Set `ORIGIN` to the HTTPS dashboard URL, `MONITOR_WG_ENDPOINT` to its public `hostname:51820`, and a strong `EPD_ADMIN_PASSWORD`. Generate separate persistent `EPD_SESSION_SECRET` and `UI_ENCRYPTION_KEY` values with `openssl rand -base64 32`. Allow incoming UDP 51820 and put port 3000 behind your HTTPS reverse proxy.
|
|
54
|
+
|
|
55
|
+
Open Servers, add a server, test its SSH connection, verify the fingerprint, then install and connect. The dashboard uses the EPD CLI for deployment preparation and installs CrowdSec, Alloy and Trivy. Agents stream telemetry directly over a private WireGuard tunnel. The CLI does not need to stay running.
|
|
56
|
+
|
|
57
|
+
Alloy collects the system journal, Docker output and standard files under `/var/log`. Add other application file paths during onboarding. Applications must write to a configured source to appear in Logs. VictoriaLogs stores searchable logs with a server label. VictoriaMetrics stores Prometheus-compatible metrics. SQLite stores dashboard metadata, with separate operations databases per organization. Raw logs do not use Turso or an ORM.
|
|
58
|
+
|
|
59
|
+
`LOG_RETENTION_DAYS` accepts integers from 1 to 30 and defaults to 30. The stack refuses values outside that range. VictoriaLogs removes expired daily storage partitions, so physical deletion follows its partition cleanup schedule. Retention is not a backup.
|
|
60
|
+
|
|
61
|
+
The dashboard includes server and source filters, refresh and JSON download. Activity keeps install and maintenance results for 30 days across restarts. Interrupted operations retain their output and are marked as failed for review. Topology shows configured server locations and project assignments. Trivy scans run weekly, and critical findings can trigger notifications. AI analysis is not enabled.
|
|
62
|
+
|
|
33
63
|
## Install
|
|
34
64
|
|
|
35
65
|
### Option 1: Zero-Dependency Standalone Installer (Recommended)
|
|
@@ -74,9 +104,47 @@ git clone https://github.com/FabioPlunser/epd.git && cd epd && bun install
|
|
|
74
104
|
bun run build # compiles dist/cli.js and dist/epd
|
|
75
105
|
```
|
|
76
106
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
`
|
|
107
|
+
Source builds need Bun. Deployments need an SSH client. Container mode also needs
|
|
108
|
+
a running Docker, Podman or nerdctl engine on your machine. Process mode needs
|
|
109
|
+
`rsync` and works without a container engine.
|
|
110
|
+
|
|
111
|
+
Local image builds, image transfers, dashboard Compose commands, console test
|
|
112
|
+
scripts, and the dashboard SSH test runner select a running Docker, Podman or nerdctl
|
|
113
|
+
engine, in that order. OrbStack, Colima and Rancher Desktop can work through
|
|
114
|
+
their Docker-compatible CLI. Set `container_engine: podman` in `epd.yml`,
|
|
115
|
+
or use a custom Docker-compatible executable name or path. The environment
|
|
116
|
+
variable `EPD_CONTAINER_ENGINE` overrides YAML. When no engine works, a terminal
|
|
117
|
+
session asks for an executable. Scripts fail with setup instructions.
|
|
118
|
+
An explicit choice never silently falls back.
|
|
119
|
+
|
|
120
|
+
On macOS, start the Podman VM with `podman machine start`. Then run
|
|
121
|
+
`bun run dashboard:up` as usual. Podman Compose needs an installed Compose
|
|
122
|
+
provider such as `podman-compose`. Podman builds use the configured platform
|
|
123
|
+
and Docker image format so images can be loaded on Docker servers.
|
|
124
|
+
|
|
125
|
+
Run `epd init` or `edp init` in a terminal for the full configuration wizard.
|
|
126
|
+
It asks about the app, servers, container engine, SSH, TLS, build commands,
|
|
127
|
+
health checks, environment, resources and deployment settings. Optional advanced
|
|
128
|
+
sections accept JSON objects for services, routes, accessories and other options.
|
|
129
|
+
Use `--yes` with explicit flags for unattended setup. The CLI validates answers
|
|
130
|
+
before replacing an existing configuration. Replacing a file requires `--force`.
|
|
131
|
+
|
|
132
|
+
Run `epd agent` or `edp agent` to choose an installed Codex or Claude CLI for
|
|
133
|
+
assisted configuration. Use `--cli <executable>` for another AI CLI that accepts
|
|
134
|
+
a positional prompt. EPD passes its bundled setup guide and keeps the agent's
|
|
135
|
+
normal permissions. Install and sign in to the AI CLI separately.
|
|
136
|
+
|
|
137
|
+
`epd agent --guide` prints the guide, including in standalone installations.
|
|
138
|
+
`epd agent --write-guide EPD_AGENT.md` exports it for another agent to read and
|
|
139
|
+
refuses to overwrite an existing file. No AI account is needed to read the guide.
|
|
140
|
+
|
|
141
|
+
Remote servers still use Docker, including provisioning, container management,
|
|
142
|
+
and monitoring. Keep `mode: docker` in `epd.yml` when building locally with
|
|
143
|
+
Podman. The older `test/e2e/*.sh` suites share a Docker socket and still require
|
|
144
|
+
Docker. Privileged integration suites also need the kernel capabilities their
|
|
145
|
+
fixtures use, such as WireGuard and nested containers.
|
|
146
|
+
|
|
147
|
+
Target servers need SSH access. `epd setup` installs the required server software.
|
|
80
148
|
|
|
81
149
|
---
|
|
82
150
|
|
package/bin/epd.js
CHANGED
|
File without changes
|