Commit Graph

12 Commits

Author SHA1 Message Date
darroyo 5374ab81cc auth: default admin/admin credentials on first install + bump 1.0.4
SeedAdmin now uses 'admin'/'admin' as defaults when environment
variables are not set, so the service works out-of-the-box after
first install.
2026-07-07 20:00:42 -04:00
darroyo 596981b63b Bump version to 1.0.3
webui: use fs.Sub to fix embed FS root so static assets are found

Previously http.FileServer searched for assets/foo.css in the embed FS
rooted at dist/, but only paths starting with dist/ resolve. fs.Sub
strips the dist/ prefix so FileServer finds the actual files.
2026-07-07 19:46:03 -04:00
darroyo 79b6c958fd Bump version to 1.0.2
- Add scripts/bump-version.sh for semver patch increments
- Update AGENTS.md Dev Commands section and add Version Bumping docs
- Makefile default VERSION bumped to 1.0.2
2026-07-07 19:18:52 -04:00
darroyo 3b5d20c05d webui: fix ServeSPA to use StripPrefix so FileServer finds assets 2026-07-07 19:12:40 -04:00
darroyo 38a89328a9 api: use webui.ServeSPA in NotFound handler instead of buggy inline logic 2026-07-07 15:58:18 -04:00
darroyo 68592bd119 Fix version in DEBIAN/control and Makefile default to 1.0.1 2026-07-07 15:52:33 -04:00
darroyo 7c5a091f7c Bump version to 1.0.1 2026-07-07 15:49:07 -04:00
darroyo 4cc93c7747 fix: self-healing permissions on /var/lib/syncserver
- systemd: add ExecStartPre to chown -R the data dir before every start
- postinst: add chown -R after creating dirs to fix ownership on upgrades

This prevents the service from failing if dirs were created by root or
drifted ownership after a manual run.
2026-07-07 15:41:10 -04:00
darroyo 9038e3a000 fix(make): copy web/dist into internal/webui/dist before build-all 2026-07-07 15:24:55 -04:00
darroyo 221aea8b4c refactor: adopt baby-nas Makefile style with inline packaging targets
- Simplify build targets: frontend, build, build-go, build-all, run, package
- Remove scripts/ for packaging (inline in Makefile)
- Add etc/syncserver/config.yaml and lib/systemd/system/ at project root
- build-all produces both amd64 and arm64 binaries
- package target builds .deb inline without external scripts
- VERSION from git tags, commit hash injected via ldflags
2026-07-07 15:18:01 -04:00
darroyo 8e08c73f60 feat: complete SyncServer implementation
Full-stack Go monolith with embedded React frontend for orchestrating
rsync-over-SSH file synchronization with Wake-on-LAN support.

Features:
- JWT auth (HS256) with bcrypt password hashing
- CRUD for machines (with WoL config) and sync_pairs
- Ed25519 SSH key generation and known_hosts management
- WoL magic packet sender + TCP-connect waiter with backoff
- Sync engine: rsync subprocess, per-pair job queue, progress parsing
- Homebrew cron parser for scheduled syncs
- SSE stream for live job status (queued/waking_up/running/success/failed)
- React+TS+Vite+Tailwind SPA embedded via embed.FS
- Debian packaging with systemd unit, postinst/prerm/postrm

Tech stack:
- Go 1.22+ (CGO_ENABLED=0, pure SQLite via modernc.org/sqlite)
- chi router for HTTP API
- TypeScript + React 18 + Tailwind CSS frontend
- Cross-compiled to Linux amd64 for Proxmox LXC deployment

Tests: wol (MAC parsing, magic packet), syncengine/queue, scheduler/cron
2026-07-07 15:03:22 -04:00
darroyo 1a66ac58cd Initial commit 2026-07-07 17:18:46 +00:00