This commit is contained in:
root
2017-04-19 16:53:50 +02:00
commit ca20cad491
4 changed files with 72 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*~
nginx-*
requirements/

27
conf_nginx Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
./configure \
--prefix=/usr/local/nginx/ \
--sbin-path=/usr/local/sbin \
--pid-path=/run/nginx.pid \
--with-http_ssl_module \
--with-pcre=../requirements/pcre \
--with-zlib=../requirements/zlib \
--with-openssl=../requirements/openssl \
--with-stream \
--with-http_ssl_module \
--with-stream_ssl_module \
--add-module=../requirements/nginx-auth-ldap \
--add-module=../requirements/headers-more-nginx-module \
--with-http_image_filter_module \
--with-http_realip_module \
--with-http_v2_module \
--with-http_sub_module \
--with-mail \
--with-http_gzip_static_module \
#--with-http_auth_request_module \
# --add-module=../ngx_form_auth \
# --conf-path=/etc/nginx/nginx.conf \

41
download_nginx Executable file
View File

@@ -0,0 +1,41 @@
#!/bin/bash
PCRE_VERSION="8.40"
ZLIB_VERSION="1.2.11"
OPENSSL_VERSION="1.0.2f"
NGINX_VERSION="1.10.3"
mkdir requirements
cd requirements
mkdir pcre
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VERSION.tar.gz
tar -zxf pcre-$PCRE_VERSION.tar.gz -C pcre --strip-components=1
rm pcre-$PCRE_VERSION.tar.gz
cd pcre
./configure
make
make install
cd ..
mkdir zlib
wget http://zlib.net/zlib-$ZLIB_VERSION.tar.gz
tar -zxf zlib-$ZLIB_VERSION.tar.gz -C zlib --strip-components=1
rm zlib-$ZLIB_VERSION.tar.gz
cd zlib
./configure
make
make install
cd ..
mkdir openssl
wget http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz
tar -zxf openssl-$OPENSSL_VERSION.tar.gz -C openssl --strip-components=1
rm openssl-$OPENSSL_VERSION.tar.gz
cd openssl
./configure darwin64-x86_64-cc --prefix=/usr
make
make install
cd ..
git clone https://github.com/kvspb/nginx-auth-ldap.git
git clone https://github.com/openresty/headers-more-nginx-module.git
cd ..
wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz
tar -zxf nginx-$NGINX_VERSION.tar.gz
rm nginx-$NGINX_VERSION.tar.gz
ln conf_nginx nginx-$NGINX_VERSION/

1
install_req Normal file
View File

@@ -0,0 +1 @@
apt-get install build-essential gcc libgd-dev libldap2-dev