DarthSim
d17e0383ef
Update docs
2023-05-12 16:34:27 +03:00
Denis Surkov
9fe249d158
Fix typo in presets docs ( #1155 )
...
* Fix typo in presets docs
* fix typo x2
* fix typo x3
2023-05-12 19:25:51 +06:00
DarthSim
0250790910
Bump version
2023-05-10 19:54:19 +03:00
DarthSim
f288254505
Update deps
2023-05-10 19:53:21 +03:00
DarthSim
5f6cb64864
Add jemalloc and TCMalloc to Docker image
2023-05-10 19:22:34 +03:00
DarthSim
c781c699a6
Create fontconfig cache dir in Docker image
2023-05-10 18:30:15 +03:00
DarthSim
bdfd89737a
Update changelog
2023-05-10 18:10:25 +03:00
DarthSim
cd35b260d9
Update changelog
2023-05-10 17:50:49 +03:00
DarthSim
85f790fb4b
Optimize watermark application
2023-05-10 17:46:41 +03:00
Adomas Kizogian
e8952edbf7
allow acquiring s3 access credentials through role assumption ( #1152 )
...
* allow acquiring s3 access credentials through role assumption
* improve cross-account access docs
* Update docs/serving_files_from_s3.md
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
---------
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
2023-05-09 20:50:02 +06:00
DarthSim
fd4b5d30d1
Fix typo
2023-05-03 18:53:27 +03:00
DarthSim
ec963e84d0
Update changelog
2023-05-03 18:31:38 +03:00
DarthSim
640cb2c461
Add http_res_body_size to k6 script
2023-05-03 18:31:38 +03:00
Ewan Higgs
4944dfab30
Support Last-Modified response header and support If-Modified-Since request header. ( #1147 )
...
* Always return Last-Modified and support If-Modified-Since.
* IMGPROXY_USE_LAST_MODIFIED config setting.
IMGPROXY_USE_LAST_MODIFIED (default false) when enabled will return the
Last-Modified time of the upstream image and also allow the support of
the If-Modified-Since request header (returning a 304 if the image
hasn't been modified).
If-Modified-Since allows If-None-Match to take precedence.
* Fixes based on DarthSim's feedback.
1. Don't worry about nil maps.
2. Fix a test now that we use the config.LastModifiedEnabled (and move
it's location it he test file to a more sane place).
3. Update GCS transport code based on the refactoring of DarthSim.
In this iteration, we pull the Updated time from the GCS object attributes
and format them as a string. We then parse it in the notmodified module.
Seems a bit silly to do it this way. If we agree on the approach here,
then AWS and Azure can follow.
* Support azure, fs, s3, and swift.
* Grab the headers for If-Modified-Since and Last-Modified before parsing them.
* Add tests for last-modified for fs.
* Support Last-Modified being passed when streaming an upstream file.
* Tests for Last-Modified for GCS and Azure
* Support s3 and swift tests. Sadly fakes3 doesn't support Last-Modified
* Test against forked gofakes3
2023-05-03 21:21:46 +06:00
DarthSim
87faa5a07d
Use fork of github.com/johannesboyne/gofakes3
2023-05-02 18:49:55 +03:00
DarthSim
6d087712aa
Remove ctxreader. It didn't solve the problem it meant to solve but it adds unneeded complexity
2023-05-01 20:50:42 +03:00
DarthSim
a4c876fc6d
Add more metrics to OTel
2023-05-01 20:25:48 +03:00
DarthSim
f8ee5826c5
Optimize bufpool
2023-05-01 20:25:25 +03:00
DarthSim
6cff6d4a64
Exclude Go 1.18 from CI
2023-04-28 19:54:09 +03:00
DarthSim
2c1f232995
Require go 1.19
2023-04-28 19:51:42 +03:00
DarthSim
929dcd6630
Update GA in docs
2023-04-28 19:40:54 +03:00
DarthSim
6ae4dcd941
Simpler init of OTel gauges
2023-04-27 20:08:24 +03:00
DarthSim
2bdf868345
Update OTel semconv
2023-04-27 19:37:00 +03:00
DarthSim
e2987c21cc
Update deps
2023-04-27 19:14:00 +03:00
DarthSim
c0f9a2410f
Bump version
2023-04-26 18:30:01 +03:00
DarthSim
723666ea1a
Strip watermark meta and remove its palette depth
2023-04-26 18:24:20 +03:00
DarthSim
954378c0a6
Update changelog
2023-04-26 18:20:19 +03:00
DarthSim
a79495509a
Update changelog
2023-04-25 23:09:55 +03:00
DarthSim
0863734ff8
Don't extend if requested width or height is zero
2023-04-24 21:45:10 +03:00
DarthSim
1da86887d4
Fix max_bytes option
2023-04-19 17:20:32 +03:00
DarthSim
4fae754071
Fix crashes in cases where the max_bytes
processing option was used and image saving failed
2023-04-19 17:04:36 +03:00
DarthSim
41b9ebe927
Bump version
2023-04-18 19:42:47 +03:00
DarthSim
9b65b7257d
Apply dprScale after min width/height
2023-04-18 18:52:20 +03:00
DarthSim
c98752651a
Don't set Content-DPR header
2023-04-18 18:40:23 +03:00
DarthSim
85fb470704
Update changelog and docs
2023-04-18 18:29:42 +03:00
DarthSim
7d1f7c903a
Use RoundToEven when calculating offsets and watermark size
2023-04-16 21:09:48 +03:00
DarthSim
168f6f6043
Retry source image request if http connection was lost
2023-04-16 20:59:48 +03:00
DarthSim
2c28252966
Fix the way the dpr
processing option affects offsets and paddings
2023-04-16 20:56:17 +03:00
DarthSim
ee0cb9feda
Allow encoding filename
with Base64
2023-04-14 22:40:01 +03:00
DarthSim
f6f0cbcb4f
Fix detection of dead HTTP/2 connections
2023-04-13 23:10:57 +03:00
DarthSim
b92de43cf3
Add support for client hints prefixed with Sec-CH-; Remove Viewport-Width header support
2023-04-11 21:08:39 +03:00
DarthSim
a2efeb55be
Bump version
2023-04-10 20:29:15 +03:00
DarthSim
25459ef88c
Disable extension checking if the raw
processing option is used
2023-04-10 20:13:26 +03:00
DarthSim
49e5eb063c
Refactor ETag checking in transports
2023-04-10 20:01:44 +03:00
DarthSim
ced923c087
Update changelog
2023-03-31 17:57:15 +03:00
DarthSim
809346d47b
Fix handling context cancellation during requests to S3
2023-03-31 17:53:21 +03:00
DarthSim
1a9768a2c6
Prohibit connecting to loopback, link-local multicast, and link-local unicast IP addresses by default
2023-03-22 20:25:51 +03:00
DarthSim
24f4d43a0f
use "clean" HTTP transport; Use context for downloading timeout control
2023-03-21 20:58:16 +03:00
DarthSim
dde81b49f7
Set context for S3 requests
2023-03-20 18:56:24 +03:00
DarthSim
d2cca005d3
Close s3 request body on error if any
2023-03-20 18:39:45 +03:00