Skip to content

Instantly share code, notes, and snippets.

@dialtone
Created January 10, 2014 15:27
Show Gist options
  • Save dialtone/8356346 to your computer and use it in GitHub Desktop.
Save dialtone/8356346 to your computer and use it in GitHub Desktop.
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index f3f4bce..b1bbcb5 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -22,6 +22,7 @@ class Nginx < Formula
depends_on 'pcre'
depends_on 'passenger' => :optional
+ depends_on 'geoip'
# SPDY needs openssl >= 1.0.1 for NPN; see:
# https://tools.ietf.org/agenda/82/slides/tls-3.pdf
# http://www.openssl.org/news/changelog.html
@@ -62,6 +63,9 @@ class Nginx < Formula
"--sbin-path=#{bin}/nginx",
"--with-cc-opt=#{cc_opt}",
"--with-ld-opt=#{ld_opt}",
+ "--with-http_geoip_module",
+ "--with-http_realip_module",
+ "--with-http_stub_status_module",
"--conf-path=#{etc}/nginx/nginx.conf",
"--pid-path=#{var}/run/nginx.pid",
"--lock-path=#{var}/run/nginx.lock",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment