|
| 1 | +<p align="center"> |
| 2 | + <a href="https://imgproxy.net"> |
| 3 | + <picture> |
| 4 | + <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.svg?sanitize=true"> |
| 5 | + <source media="(prefers-color-scheme: light)" srcset="assets/logo-light.svg?sanitize=true"> |
| 6 | + <img alt="imgproxy logo" src="assets/logo-light.svg?sanitize=true"> |
| 7 | + </picture> |
| 8 | + </a> |
| 9 | +</p> |
| 10 | + |
| 11 | +<h4 align="center"> |
| 12 | + <a href="https://imgproxy.net">Website</a> | |
| 13 | + <a href="https://imgproxy.net/blog/">Blog</a> | |
| 14 | + <a href="https://docs.imgproxy.net">Documentation</a> | |
| 15 | + <a href="https://imgproxy.net/#pro">imgproxy Pro</a> | |
| 16 | + <a href="https://hub.docker.com/r/darthsim/imgproxy/">Docker</a> | |
| 17 | + <a href="https://twitter.com/imgproxy_net">Twitter</a> | |
| 18 | + <a href="https://discord.gg/5GgpXgtC9u">Discord</a> |
| 19 | +</h4> |
| 20 | + |
| 21 | +<p align="center"> |
| 22 | +<a href="https://github.com/imgproxy/imgproxy-aws-sam/actions"><img alt="GH Lint" src="https://img.shields.io/github/actions/workflow/status/imgproxy/imgproxy-aws-sam/lint-and-upload.yml?branch=master&label=Lint&style=for-the-badge" /></a> |
| 23 | +</p> |
| 24 | + |
| 25 | +--- |
| 26 | + |
| 27 | +[imgproxy](https://imgproxy.net) is a fast and secure standalone server for resizing and converting remote images. The main principles of imgproxy are simplicity, speed, and security. |
| 28 | + |
| 29 | +This repository contains an [AWS Serverless Application Model (SAM)](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) template compatible with [AWS CloudFormation](https://aws.amazon.com/cloudformation/) that allows you to deploy imgproxy to AWS Lambda. |
| 30 | + |
| 31 | +## Using the template |
| 32 | + |
| 33 | +We uploaded the template to our S3 bucket so you can use by a click of a button. The links below will take you to the AWS CloudFormation console with the template pre-filled. You just need to provide the required parameters and click **Create stack**. |
| 34 | + |
| 35 | +[](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=imgproxy&templateURL=https://imgproxy-cf.s3.amazonaws.com/sam/latest/template.yml) |
| 36 | + |
| 37 | +> [!NOTE] |
| 38 | +> The link in the README points to the template from the `master` branch. If you want to use a specific version, you can find the links in the [releases](https://github.com/imgproxy/imgproxy-aws-sam/releases) section. |
| 39 | +
|
| 40 | +> [!WARNING] |
| 41 | +> Official Docker images of imgproxy prior to version `3.22.0` do not contain [AWS Lambda adapter](https://github.com/awslabs/aws-lambda-web-adapter). |
| 42 | +> |
| 43 | +> If you want to use the template with an older version of imgproxy, you need to build a custom Docker image with the adapter. Take note that this template assumes that the AWS Lambda adapter is configed to work in the `rsponse_stream` mode. |
| 44 | +
|
| 45 | +## License |
| 46 | + |
| 47 | +imgproxy-aws-sam is licensed under the MIT license. |
| 48 | + |
| 49 | +See [LICENSE](https://github.com/imgproxy/imgproxy-aws-sam/blob/master/LICENSE) for the full license text. |
| 50 | + |
| 51 | +## Security Contact |
| 52 | + |
| 53 | +To report a security vulnerability, please contact us at security@imgproxy.net. We will coordinate the fix and disclosure. |
0 commit comments