Commit Graph

91 Commits

Author SHA1 Message Date
admin 1596e86e69 docs: update CONTEXT.md and README.md for v0.4.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 11:20:30 +01:00
admin d32d9fb44b v0.4.0: monitoring & backup — scheduler, CPU/temp metrics, healthchecks, restic backups
Phase 2 (Monitoring & Health):
- Central job scheduler replacing ad-hoc goroutines (internal/scheduler)
- CPU usage collector via /proc/stat background sampling (internal/system/cpu_linux.go)
- Temperature reading from /sys/class/thermal + /host/sys (Docker mount)
- Load average from /proc/loadavg
- Healthchecks.io-compatible HTTP pinger (internal/monitor/pinger.go)
- System health checks: disk, memory, CPU, temp, Docker, protected containers (internal/monitor/healthcheck.go)

Phase 3 (Backups):
- Database auto-discovery via docker ps + docker inspect (internal/backup/dbdump.go)
- Database dumping via docker exec (pg_dump / mariadb-dump) with atomic writes
- Restic backup integration with auto-password generation (internal/backup/restic.go)
- Backup orchestrator: DB dumps + restic snapshots + weekly prune (internal/backup/backup.go)
- Manual backup trigger via dashboard button and POST /api/backup/run

Dashboard UI:
- CPU usage bar with load average display
- Temperature with colored indicator dot
- Backup status card with last run time, DB count, repo stats
- "Mentés most" button for manual backup trigger

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 11:17:10 +01:00
admin 8a988c5998 TASK.md — Phase 2: Monitoring & Health + Phase 3: Backups 2026-02-15 11:01:30 +01:00
admin 57cacd9233 v0.3.0: structural refactor — go:embed templates, server split, domain rename
- Migrate all 7 HTML templates + CSS from Go string constants to individual
  go:embed files in internal/web/templates/ (templates.go: 2150→35 lines)
- Split server.go into auth.go, handlers.go, funcmap.go (server.go: 540→120 lines)
- Rename controller subdomain from dashboard.* to felhom.* in Traefik labels
- Update documentation (CLAUDE.md, README.md, CONTEXT.md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 10:38:06 +01:00
admin b30c01ac9e updated TASK for refactoring 2026-02-15 10:23:02 +01:00
admin 63d81088bd update CONTEXT.md for session 8 — orphan detection, filebrowser infra
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 10:05:19 +01:00
admin 59ed4bd1c2 feat: orphan stack detection/deletion, filebrowser infra, setup scripts
- Add orphan detection: stacks not in catalog marked as "Elavult"
- Add DELETE /api/stacks/{name} endpoint with HDD data handling
- Add GET /api/stacks/{name}/hdd-data endpoint
- Add delete confirmation modal with HDD data checkbox (Hungarian UI)
- Add filebrowser to protected stacks list
- Add scripts/hdd-setup.sh and scripts/docker-setup.sh for node setup
- Hide "Frissítés" and "Részletek" buttons for orphaned stacks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 10:03:10 +01:00
admin a5c6899e2c updated TASK.md 2026-02-15 09:39:50 +01:00
admin c4fa121932 update CONTEXT.md for session 7 — YAML parse fix, error logging
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 20:51:45 +01:00
admin 3caceb3b47 remove temporary debug log from LoadMetadata, keep error log
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 20:50:05 +01:00
admin 68c67dafe6 add error logging to LoadMetadata, fix deploy sed command
- Log YAML parse errors in LoadMetadata instead of silently swallowing
- Add debug log for successful metadata loads (tagline, useCases, optConfig counts)
- Fix CLAUDE.md deploy command: use sudo, target only image: line in sed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 20:46:58 +01:00
admin 54ccf40066 updated TASK.md for debugging and build commands fix 2026-02-14 20:45:34 +01:00
admin e7a5f118bf update CONTEXT.md for session 6 — logo CSS fix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 20:32:25 +01:00
admin ee2a0307a7 fix: constrain app-info-logo SVG to 80x80 bounds
Add min/max width/height and overflow:hidden to .app-info-logo CSS
to prevent SVG images from ignoring container dimensions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 20:29:56 +01:00
admin 55d7b7d370 updated TASK.md - logo resize, app info missing 2026-02-14 20:27:49 +01:00
admin 658b995e53 Update documentation for app info pages feature
- CONTEXT.md: session 5 with app detail/info pages + optional config
- README.md: add optional-config API endpoint, update version to 0.2.11
- CLAUDE.md: add app info page patterns to key patterns section

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 20:15:56 +01:00
admin 6080170367 Add app detail/info pages with optional config support
- New route: GET /apps/{slug} renders info page with use cases, setup guide, prerequisites
- New API: POST /api/stacks/{name}/optional-config for updating optional env vars
- New structs: AppInfo, OptionalConfigGroup, OptionalConfigField in metadata.go
- UpdateOptionalConfig saves to app.yaml and restarts deployed stacks with new env vars
- Info page template with hero section, screenshots, info cards, optional config form
- Navigation: stack cards now link to /apps/{slug}, deploy page has "Részletek" link

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 20:12:18 +01:00
admin 528f64cab7 updated CLAUDE.md and TASK.md 2026-02-14 20:00:24 +01:00
admin a8096faf59 added fix for deployment race condition 2026-02-14 19:17:01 +01:00
admin 0be798af5d updated startup monitoring 2026-02-14 18:57:20 +01:00
admin c3b80cffdc bugfix 2026-02-14 18:25:12 +01:00
admin e0e8e88276 GUI updates, live log visibility 2026-02-14 17:55:14 +01:00
admin 9d7a36a143 added more detailed debug logging 2026-02-14 17:33:33 +01:00
admin 85aa518208 updated 2026-02-14 17:13:09 +01:00
admin ee8650a41c implemented git sync for app templates 2026-02-14 13:40:00 +01:00
admin 44a7d0de2c updated memory calculation and logo 2026-02-14 12:41:08 +01:00
admin 6a7737ee1c added mem_request 2026-02-14 12:07:10 +01:00
admin 67ba0fe759 Added memory limits and system info for memory 2026-02-14 11:44:06 +01:00
admin e0e15867e9 added .eu 2026-02-14 11:19:10 +01:00
admin 4a19fda795 added some info 2026-02-14 11:15:53 +01:00
admin 1644af616e updated CLAUDE.md 2026-02-14 08:37:13 +01:00
admin 5d9087dc2b added memory and context 2026-02-14 08:00:06 +01:00
admin 4282b8d8cb fixed 2026-02-13 21:33:21 +01:00
admin fd29e602e8 updated 2026-02-13 21:15:00 +01:00
admin bcc7877c41 updates 2026-02-13 20:49:17 +01:00
admin 2ee027fa7e updated readme 2026-02-13 20:03:30 +01:00
admin 599cf56273 added gnupg package to be installed 2026-02-13 19:22:14 +01:00
admin fe10a43d2c updated dockerfile 2026-02-13 19:19:04 +01:00
kisfenyo 223e14ae11 made script executable 2026-02-13 19:12:32 +01:00
admin e9dde0a340 restructured files, and updated for build outside 2026-02-13 19:10:35 +01:00
admin f72bb57eda added controller 2026-02-13 18:54:08 +01:00