From efb9d899b2a6a9f5edec942f5375773671b155a0 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Thu, 26 May 2016 17:44:12 +0200 Subject: [PATCH] Signal Sciences support (#254) * test out setting up signal sciences * tweak the signalsciences config a little * try out the updated signal sciences heroku integration * use the old ngnix start script, as signalsciences is now nginx based * make sure sigsci conf is included in our custom nginx config * remove the custom port stuff, no longer needed --- .buildpacks | 2 +- config/nginx.conf.erb | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.buildpacks b/.buildpacks index 36201cad..a2147aa5 100644 --- a/.buildpacks +++ b/.buildpacks @@ -1,3 +1,3 @@ https://github.com/heroku/heroku-buildpack-ruby.git https://github.com/drogus/last-commit-sha-buildpack.git -https://github.com/ryandotsmith/nginx-buildpack.git +https://dl.signalsciences.net/heroku/sigsci-buildpack-nginx.tgz diff --git a/config/nginx.conf.erb b/config/nginx.conf.erb index 8866fd5a..941a76af 100644 --- a/config/nginx.conf.erb +++ b/config/nginx.conf.erb @@ -9,9 +9,13 @@ events { } http { - gzip on; - gzip_comp_level 2; - gzip_min_length 512; + gzip on; + gzip_comp_level 2; + gzip_min_length 512; + + <% unless ENV['SIGSCI_ENABLED'].nil? || ENV['SIGSCI_ENABLED'].empty? %> + include "../sigsci-module-nginx/sigsci.conf"; + <% end %> server_tokens off;