From 7b3d1c513f833a0758ba1f647436514dd365bfd0 Mon Sep 17 00:00:00 2001 From: jbrw Date: Tue, 20 Oct 2020 20:18:45 -0400 Subject: [PATCH] FEATURE: Replace the default ImageMagick policy.xml (#483) * Replace the default ImageMagick policy.xml Replace the default ImageMagick policy.xml with a file containing some resource limitiations. The intention is to stop exceptionally oversized images (and/or malformed images) from consuming all resources on a system. The values provided should provide ample resources for any reasonable image to be processed without hinderance. --- templates/web.template.yml | 82 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index 6dd9f69..12fc636 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -300,3 +300,85 @@ run: chmod: 644 contents: | cd $home + + - file: + path: /usr/local/etc/ImageMagick-7/policy.xml + contents: | + + + + + + ]> + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.25.1