DarthSim
c20f893569
Fix version in package name
2026-05-13 18:48:55 +03:00
DarthSim
e237f45dcd
Utilize integration testing in processing package
2026-03-23 23:39:27 +06:00
DarthSim
76e1de9cfe
Move tests to _test packages
2026-03-23 22:35:07 +06:00
DarthSim
55e73d9436
Merge branch 'master' into version/4
2026-03-13 22:51:37 +03:00
Viktor Sokolov
3c07aecd17
Lint fixes due to new golangci-lint version
2026-03-06 16:26:59 +01:00
Viktor Sokolov
f439bf6d71
Fix linting errors
2026-03-06 15:24:00 +01:00
Viktor Sokolov
e7e63d1863
ETag and LastModified busters
2026-02-27 13:51:07 +01:00
Viktor Sokolov
07eacb7750
LastModifiedBuster
2026-02-27 13:51:07 +01:00
Victor Sokolov
1570a2885c
IMG-87: url in errors, errctx ( #1598 )
2026-01-14 15:32:48 +01:00
Victor Sokolov
33b5c0e0e7
IMG-69: development error page improved ( #1589 )
...
* IMG-69: fancy development error page
---------
Co-authored-by: DarthSim <darthsim@gmail.com >
2025-12-19 14:34:22 +01:00
Victor Sokolov
aadead21d9
IMG-83: typed env vars ( #1591 )
...
* IMG-83: typed env vars
* Removed CLI flag, fixed FormatQuality&Presets logic
* URLReplacements, updated bind logic
2025-12-15 09:06:41 +01:00
Victor Sokolov
dc330b487c
IMGPROXY_PORT -> PORT ( #1590 )
2025-12-11 14:35:04 +01:00
Victor Sokolov
69c7d2f117
IMG-76: new linter config & fixes ( #1587 )
...
* IMG-76: new linter config & fixes
* Upgrade golangci-lint to 2.7.2
2025-12-10 13:46:22 +01:00
Sergei Aleksandrovich
e33254005d
Refactored errors ( #1578 )
...
* Refactored errors
* Make monitoring and errorreport accept `errctx.Error` instead of `error`
* Add server.Error; Remove category from errctx; Make HTTP handlers respond with *server.Error
* Remove stackSkip from errctx.Wrap; Add errctx.WrapWithStackSkip
2025-11-20 01:26:21 +06:00
DarthSim
e162c9496e
Add client features detector
2025-10-29 20:51:00 +06:00
DarthSim
10edac91ae
errorreport.Reporter instance
2025-10-02 01:26:32 +06:00
Victor Sokolov
05a413b8a2
monitoring instance ( #1546 )
2025-10-01 20:05:06 +02:00
Victor Sokolov
7abda277ab
IMG-26: transport.Common, cookies, errorreport ( #1544 )
...
* transport.Common relies on config
* cookies instance
* errorreport package turned into instance
2025-10-01 19:10:14 +02:00
Victor Sokolov
f55d1da1f4
env package introduced ( #1538 )
2025-09-30 13:24:23 +02:00
DarthSim
5a6490844c
Fix check in responsewriter.SetIsFallbackImage
2025-09-25 17:59:56 +03:00
DarthSim
0426e97e3f
Universal options
2025-09-24 00:41:12 +06:00
DarthSim
89821daa9f
Migrate from logrus to log/slog
2025-09-21 20:13:27 +06:00
DarthSim
1f6d007948
Rebuild headerwriter to server.ResponseWriter
2025-09-11 17:37:52 +06:00
DarthSim
2fcb39085e
Move handler errors and path/signature splitting to handlers package
2025-09-11 14:10:21 +06:00
Victor Sokolov
01327c1cce
integration.Suite ( #1518 )
2025-09-09 16:25:45 +02:00
Victor Sokolov
2d9ad5c250
IMG-49: Introduced instance ( #1512 )
...
* Introduced instance
* Makefile changes
2025-09-09 15:11:37 +02:00
DarthSim
e11afc18a8
Merge branch 'master' into version/4
2025-09-08 22:09:34 +03:00
DarthSim
ac03563506
NewDefaultConfig returns value, not pointer; Nested configs are defined as value
2025-09-06 01:56:53 +03:00
DarthSim
4789810b18
Allow using LoadConfigFromEnv with nil config
2025-09-06 01:21:41 +03:00
DarthSim
a39890b00a
LoadFromEnv -> LoadConfigFromEnv
2025-09-06 01:11:26 +03:00
Viktor Sokolov
8bc70491fb
processing_handler.go -> handlers/processing
2025-09-05 00:46:25 +06:00
DarthSim
196b4dfc46
Mark non-exact routes via path
2025-08-26 21:05:04 +06:00
Victor Sokolov
6c9d26e8f5
IMG-54: NewDefaultConfig(), routes ordering exact/non-exact ( #1504 )
...
* NewDefaultConfig() + LoadFromEnv()
* Route order
* Changed route switch
* categoryConfig
* Use Default() in tests
2025-08-25 19:52:29 +02:00
Victor Sokolov
ec566ce1c0
IMG-53: refactor stream.go ( #1503 )
...
* stream_test.go
* StreamHandler
* stream.go replaced with handlers/stream
* Small fixes
* Separate SetMaxAge/SetForceExpires
* Fallback image TTL
* Added existing TTL check to SetIsFallbackImage
* guard clause SetIsFallbackImage
* Removed old stream.go
2025-08-25 10:25:26 +02:00
DarthSim
9ffc9716d4
Wrap errors in panic handler
2025-08-20 20:24:49 +03:00
Victor Sokolov
697c2ddcd6
IMG-52: rename metrics to monitoring ( #1498 )
...
* Removed bufpool
* metrics -> monitoring
* metricsMeta -> monitoringMeta
* monitoring.Meta -> Filter
2025-08-20 17:17:18 +02:00
Victor Sokolov
15bd00b221
IMG-51: router -> server ns, handlers ns, added error to handler ret val ( #1494 )
...
* Introduced server, handlers, error ret in handlerfn
* Server struct with tests
* replace checkErr with return
2025-08-20 14:31:11 +02:00