FEATURE: brotli support is not conditional
authorSam Saffron <sam.saffron@gmail.com>
Thu, 11 Apr 2019 02:43:55 +0000 (12:43 +1000)
committerSam Saffron <sam.saffron@gmail.com>
Thu, 11 Apr 2019 02:43:55 +0000 (12:43 +1000)
Due to changes in the core (backported to stable) all brotli support
is unconditional.

No need to carry any special logic here.

image/base/Dockerfile
templates/web.template.yml

index a668fc4dc60bbe73812f7774aecbe9a5895fbe79..6e820846856557cf59b82ef777260d599f194dd2 100644 (file)
@@ -4,7 +4,6 @@ FROM ubuntu:16.04
 
 ENV PG_MAJOR 10
 ENV RUBY_ALLOCATOR /usr/lib/libjemalloc.so.1
-ENV COMPRESS_BROTLI 1
 
 #LABEL maintainer="Sam Saffron \"https://twitter.com/samsaffron\""
 
index ceb701cb96367b336c533adfef3b47ae88749bfe..be590b1d9ac21a87e14025cbb2e0b80d808ccd7b 100644 (file)
@@ -49,13 +49,6 @@ run:
         # find DISCOURSE_ env vars, strip the leader, lowercase the key
         /usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = '\''#{v}'\''" if k =~ /^DISCOURSE_(.*)/}' > $conf
 
-  - file:
-     path: /etc/runit/1.d/enable-brotli
-     chmod: "+x"
-     contents: |
-        #!/bin/bash
-        [ ! -z "$COMPRESS_BROTLI" ] && sed -i "s/. brotli/  brotli/" /etc/nginx/conf.d/discourse.conf || sed -i "s/. brotli/# brotli/" /etc/nginx/conf.d/discourse.conf
-
   - file:
      path: /etc/service/unicorn/run
      chmod: "+x"