1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-12-09 09:56:01 +02:00
Commit Graph

41 Commits

Author SHA1 Message Date
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
9416168575 Security processing options 2023-02-23 21:11:44 +03:00
Sasha Melentyev
4685e4e222
chore: Changing fmt.Errorf to errors.New when there is no formatting required (#1044)
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
2022-12-15 21:03:08 +06:00
DarthSim
79e473798d Add CloudWatch metrics 2022-12-04 21:01:37 +06:00
DarthSim
bf472d3df9 Use runtime.GOMAXPROCS to calc default concurrency 2022-12-01 01:42:47 +06:00
DarthSim
1ededbb11f Add IMGPROXY_MAX_ANIMATION_FRAME_RESOLUTION config 2022-11-29 18:25:38 +06:00
DarthSim
3f9a0641f1 Remove WebP, AVIF, and ICO from preferred formats 2022-11-27 20:01:07 +06:00
DarthSim
27bf8505e1 Change the default AVIF quality and speed 2022-11-27 20:01:01 +06:00
DarthSim
f08cc76806 Fixed TraceIdRatioBased sampler; IMGPROXY_OPEN_TELEMETRY_TRACE_ID_GENERATOR config 2022-11-15 21:37:55 +06:00
DarthSim
caef5eeff1 Add IMGPROXY_OPEN_TELEMETRY_GRPC_INSECURE config 2022-11-07 21:08:01 +06:00
DarthSim
4e669c8717 Add IMGPROXY_CLIENT_KEEP_ALIVE_TIMEOUT config 2022-10-21 16:40:24 +06:00
DarthSim
4ab415fd9b Fix feDropShadow SVG filter when IMGPROXY_SVG_FIX_UNSUPPORTED is true 2022-10-15 20:22:54 +06:00
Sergey Alexandrovich
36f67a6f96
OpenTelemetry support (#995) 2022-10-06 15:08:23 +06:00
DarthSim
ff3d3cedc4 Rename configurators.Hex to configurators.HexSlice and configurators.HexFile to configurators.HexSliceFile 2022-08-26 17:21:37 +03:00
DarthSim
c4801761db Additional metrics for Datadog 2022-07-26 14:22:17 +06:00
DarthSim
9081fd5766 IMGPROXY_REQUESTS_QUEUE_SIZE config 2022-07-20 19:46:21 +06:00
DarthSim
1524a0e973 Increase IMGPROXY_TTL to 1 year 2022-07-19 18:14:10 +06:00
DarthSim
bb3a9c77f7 Set default IMGPROXY_MAX_CLIENTS value to 2048; Allow unlimited connections 2022-07-19 18:04:22 +06:00
DarthSim
f368ed13e9 IMGPROXY_PREFERRED_FORMATS config 2022-07-18 17:58:59 +06:00
DarthSim
84dc50f2af Add New relic labels supoprt 2022-06-24 17:03:13 +06:00
DarthSim
e1e2277a32 Sanitize SVG 2022-06-10 18:23:55 +06:00
Valentine Kiselev
23d0807e46
Add attachment option for Content-Disposition header (#887)
* Add attachment option for Content-Disposition header

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* Add documentation to attachment option

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* Add default attachment option value

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* fix: Add default value to docs

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* fix: Rename option attachment to return_attachment, add ENV-configuration

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
2022-06-06 14:53:09 +06:00
DarthSim
4d4a1d724f IMGPROXY_KEEP_COPYRIGHT config & keep_copyright option 2022-04-25 16:53:08 +06:00
DarthSim
e1a69c5d95 IMGPROXY_ENFORCE_THUMBNAIL config & enforce_thumbnail option 2022-04-14 22:33:09 +06:00
DarthSim
3d93bc6836 Add IMGPROXY_GCS_ENDPOINT config 2022-04-07 23:31:50 +06:00
DarthSim
afe283790f Polish swift:// support 2022-04-06 17:35:51 +06:00
Joe Cai
7a2296aee8
Support OpenStack Swift Object Storage (#837)
* Add OpenStack Swift support

* Fix linting errors

* Update CHANGELOG

* Update swift documentation

* Fix linting error

* Swift transport: pass req.Context down, fix parseObjectURL() implementation

* Make swift transport test a test suite

* Use swift://{container}/{object_path} as the source image URL format

* Cleanup

* Swift transport: only close object when returning 304
2022-04-06 17:00:19 +06:00
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
df818706c2 IMGPROXY_HEALTH_CHECK_PATH config 2022-02-21 18:06:20 +06:00
Sergey Alexandrovich
ec02fc53a5
IMGPROXY_MAX_REDIRECTS config (#797)
* IMGPROXY_MAX_REDIRECTS config

* Apply suggestions from code review

Co-authored-by: Travis-Turner <32389151+Travis-Turner@users.noreply.github.com>

Co-authored-by: Travis-Turner <32389151+Travis-Turner@users.noreply.github.com>
2022-02-16 15:42:09 +06:00
Aleksandr
36c73e3ea8
AvifSpeed value checker (#760)
As I understand valid values for `AvifSpeed` is 0-8, including 0 and 8. But the checker does not allow 0.
So here is fix
2022-02-08 15:06:15 +06:00
DarthSim
16c0d91d47 Add ETag buster 2021-12-07 15:34:35 +06:00
DarthSim
270ebbbd90 Fix default Sentry release 2021-11-23 15:11:39 +06:00
DarthSim
0f7b8790ce Proper cli command detection 2021-11-15 15:54:00 +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
7709b74a5e Bump version 2021-09-30 20:23:30 +06:00
DarthSim
d016e26e2e Merge branch 'master' into version/3 2021-09-07 19:04:33 +06:00
DarthSim
77642c869c Move flags defenition out of config.Configure 2021-05-17 19:40:01 +06:00
DarthSim
8d4de23f6c Merge branch 'version/3' into version/3-refactoring 2021-05-17 18:43:56 +06:00
DarthSim
2ea1466d96 Global refactoring 2021-05-07 17:10:21 +06:00