From 943ce06f6a6ce4808055e2d978f8edf4eeb57ad2 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 7 Jun 2016 18:06:56 +1000 Subject: [PATCH] make template smart enough to enable brotli if needed --- templates/web.template.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index d4c058c..d355a49 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -118,6 +118,7 @@ run: - "cp $home/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf" - "rm /etc/nginx/sites-enabled/default" - "mkdir -p /var/nginx/cache" + - '[ ! -z "$COMPRESS_BROTLI"] && sed -i "s/# brotli/brotli/" /etc/nginx/conf.d/discourse.conf' - replace: filename: /etc/nginx/nginx.conf -- 2.25.1