linkorb/imgproxy

ImgproxyService 使用 imgproxy

v1.0.0 2019-05-09 14:04 UTC

This package is auto-updated.

Last update: 2024-08-25 13:07:03 UTC


README

ImgproxyService 使用 imgproxy,是一个快速且安全的独立服务器,用于调整和转换远程图像。imgproxy 的主要原则是简单、快速和安全。

imgproxy 文档 了解更多详情。

安装

  composer require linkorb/imgproxy

设置

composer install # install php dependencies
cp .env.dist .env # Create config file from template/.dist file
edit .env # Edit configuration, database settings etc
./vendor/bin/envoi validate  # Run command validate based on meta file .env.yaml

生成凭证

如果您需要快速生成随机密钥/盐值对,可以使用以下代码片段,例如:

$ echo $(xxd -g 2 -l 64 -p /dev/random | tr -d '\n')

配置预设

更多详情请查看 persets

示例

在 /examples 文件夹中找到示例。