Commit Graph

15 Commits

Author SHA1 Message Date
eleksir
c3553de856 Add version and software name in first message during startup, fix typo in log message during config loading. 2026-04-04 12:33:40 +03:00
eleksir
8beba095d0 Add ability to select compression algo by downloading location with file extension.
- Also update README.md with more useful examples.
2026-04-04 11:49:33 +03:00
eleksir
afffc99a8a Eliminate duplicate code, make use of readHeaderTimeout const 2026-04-04 11:05:57 +03:00
eleksir
722620945d Move code to different places, add comments here and there, no actual changes 2026-03-28 01:38:17 +03:00
eleksir
15ac3be410 Implemented tar+parallel gzip compression + unit tests for it. 2026-03-28 00:19:09 +03:00
eleksir
3620623321 Implemented tar+xz compression + unit tests for it. 2026-03-27 23:50:27 +03:00
eleksir
b494479128 Implemented tar+lz4 compression + unit tests for it. 2026-03-27 23:37:13 +03:00
eleksir
a73354b59d Implemented tar+zstd compression + unit tests for it. 2026-03-27 23:03:44 +03:00
eleksir
5226688836 Implemented tar+bz2 compression + unit tests for it. 2026-03-27 21:28:27 +03:00
eleksir
05c9eb6669 Do not configure tls options if we running in plain http mode, without encryption 2026-03-27 20:20:32 +03:00
eleksir
565e40c9be Add config option to change prefix for Content-Disposition filename. Defaults to backup. 2026-03-27 09:50:51 +03:00
eleksir
607922be19 Make tar creation more crossplatform by adding files always with forward slash path separators 2026-03-27 09:14:04 +03:00
eleksir
fe3ab9c10e Initialize logger early, fix error message when symlink addition failed. 2026-03-27 08:21:42 +03:00
eleksir
16ae887196 Add AGENTS.md, simplify code, 2 fixes in log package, 3 bugs fixed.
- Add AGENTS.md for vibecoding ai data.
- Remove github.com/pkg/errors dependency
- writeWithContext — remove goroutine overhead, just check context before fn
- copyWithContext — remove unnecessary panic recovery
- Remove panic recovery tests (TestWriteWithContextPanic, TestCopyWithContextPanic, panicReader)
- Error, Warn, Info, Debug, Fatal — accept ...any instead of string (enables log.Error(err))
- Close — don't panic if Log is nil, don't close stderr
- Add unit tests (internal/log/main_test.go)
- getClientIP — trim spaces from X-Forwarded-For, use net.SplitHostPort for IPv6
- isExcluded — normalize paths to forward slashes for cross-platform regex matching
- writeWithContext godoc — fix stale comment about panic recovery
- internal/log/main_test.go — log package tests (19 tests)
2026-03-27 01:24:32 +03:00
eleksir
0bea45b770 Initial commit 2026-03-25 22:13:27 +03:00