dcanob
f37d027f4f
add config fallback ttl to avoid default ttl when fallback response ( #818 )
...
* add config fallback ttl to avoid default ttl when fallback response
* Update docs/configuration.md
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
* move FallbackTTL to loadFallbackImage
* rewrite ifelse
* Update imagedata/image_data.go
don't use config.FallbackTTL on header to get TTL on the response
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
* Update processing_handler.go
don't use config.FallbackTTL on header to get TTL on the response
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
* rename FallbackTTL to FallbackImageTTL
* Update processing_handler.go
* Fix linter errors
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
2022-03-31 13:36:13 +06:00
DarthSim
b5863c808b
Move metrics.StartRequest to middleware && Fix Datadog
2022-01-14 00:40:14 +06:00
DarthSim
e43c24c544
Start requiest timer in router
2022-01-14 00:18:48 +06:00
DarthSim
d8bedfd930
Polish cookies passthrough
2021-11-11 15:30:32 +06:00
Walter Doerwald
abbfb61ce6
Add option to pass through incoming cookies in the image request.
2021-11-09 12:14:05 +01:00
DarthSim
d8dae48c4f
Report downloading errors only when IMGPROXY_REPORT_DOWNLOADING_ERRORS is true
2021-11-01 20:03:19 +06:00
DarthSim
b98919ead4
Better downloading error reporting cause
2021-11-01 18:29:26 +06:00
DarthSim
ac8c34a49a
Respond with 500 for "temporary" downloading errors
2021-11-01 18:13:33 +06:00
DarthSim
80331cd94e
Add cache control headers to 304 response
2021-10-13 17:59:46 +06:00
DarthSim
38ca14230d
Add origin width & height to debug headers
2021-10-12 16:56:04 +06:00
DarthSim
da10f3eac3
Fix Client Hints behavior
2021-10-12 16:56:03 +06:00
DarthSim
7709b74a5e
Bump version
2021-09-30 20:23:30 +06:00
DarthSim
57c314b1f5
Etag passthough
2021-09-29 16:23:54 +06:00
DarthSim
4434f40701
Merge branch 'version/3' into version/3-refactoring
2021-06-28 16:11:33 +06:00
DarthSim
ece4310d70
Merge branch 'master' into version/3
2021-06-28 15:54:02 +06:00
DarthSim
56858a3692
More clear downloading timeout errors; Add image URL to fallback image usage warning
2021-06-28 14:37:25 +06:00
DarthSim
2ea1466d96
Global refactoring
2021-05-07 17:10:21 +06:00
DarthSim
1df1a9eaa8
Fix debug header
2021-04-05 19:47:29 +06:00
Svyatoslav Kryukov
88975f3810
Datadog tracing
2021-03-23 17:08:02 +06:00
Svyatoslav Kryukov
5ba463749c
Refactor tracing
2021-03-23 17:08:02 +06:00
Svyatoslav Kryukov
c07222b501
Skip processing option ( #590 )
...
* Skip processing option
* Simplify SkipProcessingFormats iteration
2021-03-22 20:16:03 +06:00
Svyatoslav Kryukov
b93aa2f144
Fallback image http code config ( #589 )
2021-03-19 15:28:23 +06:00
DarthSim
27dbed077f
DRY image downloading
2021-03-17 19:29:58 +06:00
DarthSim
baf00f64f2
Drop deprecated stuff (MaxSrcDimension, GZipCompression, IMGPROXY_MAX_GIF_FRAMES, resizeCrop)
2021-03-15 16:47:35 +06:00
snowcall
56d3f6d897
Optionally return rel="canonical" header ( #542 )
...
* set rel="canonical" header
* check scheme before setting canonical headers, add documentation
2021-03-09 17:08:22 +06:00
Huy Le Viet
a62b22af69
Add IMGPROXY_ENABLE_DEBUG_HEADERS config for debugging infomation ( #509 )
2020-11-20 10:52:16 +06:00
DarthSim
5c4860c609
Update NewRelic
2020-11-18 21:59:44 +06:00
DarthSim
3b83fb04b2
Drop cancelled requests in queue
2020-10-08 17:56:39 +06:00
DarthSim
08dc814e98
Ability to skip processing of some formats
2020-08-13 19:52:35 +06:00
DarthSim
6c348adb0b
Minor changes in fallback images feature; Add docs for fallback images
2020-04-08 21:15:07 +06:00
Ewan Higgs
21b990d895
Implement fallback images in a similar fashion to watermarks. ( #374 )
...
* 220. Implement fallback images in a similar fashion to watermarks.
* 220. Fix error formatting.
* 220. Fixes based on @darthsim's feedback.
2020-04-08 20:32:45 +06:00
DarthSim
8e3cf54d85
Get rid of os.Exit
2020-02-27 21:44:59 +06:00
DarthSim
372faba5c1
IMGPROXY_CACHE_CONTROL_PASSTHROUGH config
2020-02-04 15:23:41 +06:00
DarthSim
16784fb1e2
New logging; JSON and structured log formats
2019-09-16 15:53:45 +06:00
DarthSim
2a92243e47
Add Content-Disposition filename customization
2019-08-13 17:42:47 +06:00
DarthSim
a9244a7063
Extract processing handler and imageType functions from server.go
2019-06-03 23:02:46 +06:00