summaryrefslogtreecommitdiffstats
path: root/cmd/ship/host_v2.go
Commit message (Collapse)AuthorAgeFilesLines
* feat: auto-generate SSH key and guide auth setup in host initClawd38 hours1-2/+82
| | | | | | - ensureSSHKey() generates ed25519 key if none exists - If SSH auth fails, returns JSON with pubkey and setup instructions - Provides ssh-copy-id command for easy key deployment
* fix: Caddy install permission issue with gpg dearmorClawd41 hours1-3/+4
|
* fix: resolve build errors with v1 codeClawd41 hours1-10/+7
| | | | | | | - Rename validateName to validateNameV2 to avoid conflict - Fix host status to print JSON directly (remove unused resp) Builds successfully now
* feat(v2): implement ship host init with JSON outputClawd41 hours1-0/+367
- host_v2.go: full host initialization with JSON responses - Installs Caddy, Docker on Ubuntu/Debian - Creates /etc/ship/{env,ports,ttl} directories - Installs TTL cleanup timer (hourly systemd timer) - Cleanup script removes expired deploys completely - Preserves git deploy setup functionality (optional) - Added ErrInvalidArgs error code Critical 'host init' functionality preserved for v2