Skip to content

Instantly share code, notes, and snippets.

@jmchilton
Created February 9, 2013 05:19
Show Gist options
  • Save jmchilton/4743960 to your computer and use it in GitHub Desktop.
Save jmchilton/4743960 to your computer and use it in GitHub Desktop.
diff --git a/cloudbio/galaxy/__init__.py b/cloudbio/galaxy/__init__.py
index 33e3e74..823e04c 100644
--- a/cloudbio/galaxy/__init__.py
+++ b/cloudbio/galaxy/__init__.py
@@ -367,6 +367,7 @@ def _install_nginx(env):
run("wget %s" % url)
run("tar xvzf %s" % os.path.split(url)[1])
with cd("nginx-%s" % version):
+ run("patch -p1 < ../nginx_tcp_proxy_module/tcp.patch")
run("./configure --prefix=%s --with-ipv6 %s "
"--user=galaxy --group=galaxy --with-debug "
"--with-http_ssl_module --with-http_gzip_static_module" %
@@ -404,6 +405,7 @@ def _get_nginx_modules(env):
modules = {
"upload": True,
"chunk": True,
+ "tcp_proxy": True,
"ldap": False
}
@@ -438,6 +440,12 @@ def _get_nginx_module_chunk(env):
return chunk_fname.rsplit(".", 2)[0]
+def _get_nginx_module_tcp_proxy(env):
+ run("rm -rf nginx_tcp_proxy_module")
+ run("git clone https://github.com/yaoweibin/nginx_tcp_proxy_module")
+ return "nginx_tcp_proxy_module"
+
+
def _get_nginx_module_ldap(env):
run("rm -rf nginx-auth-ldap") # Delete it if its there or git won't clone
run("git clone https://github.com/kvspb/nginx-auth-ldap")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment