aboutsummaryrefslogtreecommitdiff
path: root/nginx_unicorn/nginxman.sh
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2013-11-30 17:28:25 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2013-11-30 17:28:25 +0100
commit267403fe5d1e1142d54c6d699f8deeac2a3334ec (patch)
tree76c3bb69125a9752636c9e63cbf04c7579cda5e5 /nginx_unicorn/nginxman.sh
parentf198c41756a408a0b4b4e9769c778fed8abd944f (diff)
downloaddotfiles-267403fe5d1e1142d54c6d699f8deeac2a3334ec.tar.gz
dotfiles-267403fe5d1e1142d54c6d699f8deeac2a3334ec.zip
Removed the NGinx + Unicorn config files.
These files were outdated. Anyways, I think that this kind of files shouldn't be placed in a "dotfiles" repo.
Diffstat (limited to 'nginx_unicorn/nginxman.sh')
-rwxr-xr-xnginx_unicorn/nginxman.sh64
1 files changed, 0 insertions, 64 deletions
diff --git a/nginx_unicorn/nginxman.sh b/nginx_unicorn/nginxman.sh
deleted file mode 100755
index 9df5e69..0000000
--- a/nginx_unicorn/nginxman.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/bash
-
-
-# Change this values to your own needs.
-_cfgdir=/etc/nginx
-_tmpdir=/var/lib/nginx
-_nginx=/tmp/nginx
-_version="default"
-_configure="./configure"
-_pwd=`pwd`
-
-
-# Fetch and extract NGinx
-if [ $_version == "default" ]; then
- echo -e "\033[32mFetching NGinx using hg (default)\033[0m"
- hg clone http://hg.nginx.org/nginx/ $_nginx
- _configure="./auto/configure"
-else
- echo -e "\033[32mFetching NGinx using wget ($_version)\033[0m"
- wget http://nginx.org/download/nginx-$_version.tar.gz
- tar xzvf nginx-$_version.tar.gz
- rm nginx-$_version.tar.gz
- mv nginx-$_version $_nginx
-fi
-cd $_nginx
-
-# Configure
-echo -e "\033[32mConfiguring\033[0m"
-$_configure \
- --prefix=$_cfgdir \
- --conf-path=$_cfgdir/nginx.conf \
- --sbin-path=/usr/sbin/nginx \
- --pid-path=/var/run/nginx.pid \
- --lock-path=/var/lock/nginx.lock \
- --user=http --group=http \
- --http-log-path=/var/log/nginx/access.log \
- --error-log-path=/var/log/nginx/error.log \
- --http-client-body-temp-path=$_tmpdir/client-body \
- --http-proxy-temp-path=$_tmpdir/proxy \
- --http-fastcgi-temp-path=$_tmpdir/fastcgi \
- --http-scgi-temp-path=$_tmpdir/scgi \
- --http-uwsgi-temp-path=$_tmpdir/uwsgi \
- --with-imap --with-imap_ssl_module \
- --with-ipv6 --with-pcre-jit \
- --with-file-aio \
- --with-http_dav_module \
- --with-http_geoip_module \
- --with-http_gzip_static_module \
- --with-http_realip_module \
- --with-http_ssl_module \
- --with-http_spdy_module \
- --with-http_stub_status_module \
- --with-cc-opt="-O3"
-
-# Compile & install
-echo -e "\033[32mCompiling\033[0m"
-make -j 4
-echo -e "\033[32mInstalling\033[0m"
-sudo make install
-sudo mkdir -p /var/lib/nginx
-
-# Cleanup
-echo -e "\033[32mCleaning up\033[0m"
-rm -rf $_nginx