landfall 0.5.3 → 0.5.5

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 CHANGED
@@ -415,7 +415,7 @@ lf server add vps # register an existing s
415
415
  lf server add box --host 198.51.100.4 -u ubuntu -i ~/.ssh/box --default
416
416
  lf server add web --host 198.51.100.5 -u admin # asks the password once, installs ~/.ssh/landfall_web
417
417
  lf server config vps # landfall entry, Traefik settings, ssh login, keys, Host block
418
- lf server list --all
418
+ lf server list --all --check # which servers landfall can log in to right now
419
419
  lf server use vps
420
420
  lf config --tunnel-only --keep 3 # defaults for every server; also lists where landfall puts things
421
421
  lf server rm vps # forget locally
@@ -442,13 +442,18 @@ other and show up in `lf history`. The pages read the same data the `--json` com
442
442
 
443
443
  | page | commands |
444
444
  |---|---|
445
+ | Overview | `lf server list --check`, recent deploys, `lf config` (defaults, and where landfall puts things) |
445
446
  | Sites | `lf ls`, `sites info`, `deploy`, `rollback`, `logs`, `restart`/`stop`/`start`, `env`, `domains`, `auth`, `tunnel`, `sites rm` |
446
447
  | Updates | `lf updates`, `lf update` |
447
448
  | Firewall | `lf firewall` and its subcommands |
448
449
  | History | `lf history`, `lf undo` |
449
450
  | Settings | `lf server config`, `server domain`, `traefik setup` (Settings…, Dashboard…), `traefik dashboard` |
450
451
 
451
- Servers are on the left (★ marks the default). **Deploy folder…** browses local folders, or takes a dropped
452
+ Servers are on the left (★ marks the default). The dot next to each says whether landfall's key login works
453
+ (green), sshd refuses it (yellow) or ssh does not answer (red); hover for the reason. It checks on load, every
454
+ minute while the page is open, and on **Check** at the foot of the list (like `lf server list --check`).
455
+ Reachable servers come first; unreachable ones move to a closed **Unreachable** group. Git hosts and aliases
456
+ for this machine (`localhost`, `127.0.0.1`, e.g. a Colima VM) from `~/.ssh/config` are not listed. **Deploy folder…** browses local folders, or takes a dropped
452
457
  folder or `.zip` (up to 512 MiB; archives with symlinks or hard links are refused). Destructive actions ask first.
453
458
 
454
459
  - **Login:** through the printed `/login?t=…` link. The token is kept in `~/.config/landfall/ui-token`; delete
@@ -502,7 +507,7 @@ lf undo -s box -y # revert the last run
502
507
  | `lf setup <name> --check` | Reports what is set up and what setup would change. Changes nothing. |
503
508
  | `lf setup <name> --key-only` | Only installs landfall's ssh key. |
504
509
  | `lf server add <name> [--host ip] [-u user] [-p port] [-i key] [--password-stdin] [--domain d] [--default]` | Registers a server without installing anything on it. Writes `Host <name>` to `~/.ssh/config`. |
505
- | `lf server list [--all] [--json]` | Lists registered servers. `--all` adds every ssh alias. Alias: `servers`. |
510
+ | `lf server list [--all] [--check] [--json]` | Lists registered servers. `--all` adds every ssh alias except git hosts (github.com, `gitlab.*`, `User git` …). `--check` tries a key login to each: `ok`, `login` (sshd refuses the key) or `down`. Alias: `servers`. |
506
511
  | `lf server info [name] [--json]` | Shows OS and release support, kernel, uptime, CPU, RAM, disk, addresses and containers. Alias: `info`. |
507
512
  | `lf server config [name] [--json]` | Shows everything landfall and ssh use for a server. Does not connect. |
508
513
  | `lf server domain [name] [domain...] [--add d] [--primary d] [--rm d] [--clear] [--tunnel-only] [--json]` | Manages main domains (the first is primary) and checks their DNS; `--tunnel-only` makes new sites deploy with no domain. |
@@ -597,7 +602,7 @@ On the server:
597
602
 
598
603
  `lf setup` also installs Docker with the compose plugin, ufw, fail2ban and unattended-upgrades, and creates the
599
604
  `deploy` user (group docker). Before changing a file, landfall keeps a backup next to it as
600
- `.<file>.landfall-<run>` (the newest 10). `lf config` and the web UI's *Defaults* dialog list all of these places.
605
+ `.<file>.landfall-<run>` (the newest 10). `lf config` and the web UI's *Overview* list all of these places.
601
606
 
602
607
  `cd -P /opt/landfall/sites/blog/current && docker compose ps` works as usual.
603
608