From: jbrw Date: Wed, 21 Oct 2020 00:18:45 +0000 (-0400) Subject: FEATURE: Replace the default ImageMagick policy.xml (#483) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7b3d1c513f833a0758ba1f647436514dd365bfd0;p=discourse_docker.git 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. --- 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: | + + + + + + ]> + + + + + + + + + + + + + + + + + + + + + + + + + +