mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-06-26 18:40:45 +00:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
e06b1e4df1 | |||
0d2e4c3ee6 | |||
1f534f7bc6 | |||
149f06c3b3 | |||
99d72cc005 | |||
46d850193d |
@ -53,7 +53,7 @@ if [[ ! -d "${NGINX_TARBALL%.tar.gz}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d "${PCRE_TARBALL%.tar.gz}" ]]; then
|
if [[ ! -d "${PCRE_TARBALL%.tar.gz}" ]]; then
|
||||||
echo "-----> Download and unzip pcre ${PCRE_VERSION} via ftp"
|
echo "-----> Download and unzip pcre ${PCRE_VERSION} via http"
|
||||||
curl -sSL "https://ftp.pcre.org/pub/pcre/${PCRE_TARBALL}" -o "${PCRE_TARBALL}"
|
curl -sSL "https://ftp.pcre.org/pub/pcre/${PCRE_TARBALL}" -o "${PCRE_TARBALL}"
|
||||||
tar xzf "${PCRE_TARBALL}" && rm -f "${PCRE_TARBALL}"
|
tar xzf "${PCRE_TARBALL}" && rm -f "${PCRE_TARBALL}"
|
||||||
fi
|
fi
|
||||||
@ -91,7 +91,6 @@ if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
|
|||||||
--with-zlib=../zlib-${ZLIB_VERSION} \
|
--with-zlib=../zlib-${ZLIB_VERSION} \
|
||||||
--with-pcre \
|
--with-pcre \
|
||||||
--with-cc-opt="-O2 -static -static-libgcc" \
|
--with-cc-opt="-O2 -static -static-libgcc" \
|
||||||
--without-http_charset_module \
|
|
||||||
--without-http_ssi_module \
|
--without-http_ssi_module \
|
||||||
--without-http_userid_module \
|
--without-http_userid_module \
|
||||||
--without-http_access_module \
|
--without-http_access_module \
|
||||||
@ -101,7 +100,6 @@ if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
|
|||||||
--without-http_map_module \
|
--without-http_map_module \
|
||||||
--without-http_split_clients_module \
|
--without-http_split_clients_module \
|
||||||
--without-http_referer_module \
|
--without-http_referer_module \
|
||||||
--without-http_proxy_module \
|
|
||||||
--without-http_fastcgi_module \
|
--without-http_fastcgi_module \
|
||||||
--without-http_uwsgi_module \
|
--without-http_uwsgi_module \
|
||||||
--without-http_scgi_module \
|
--without-http_scgi_module \
|
||||||
@ -113,7 +111,8 @@ if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
|
|||||||
--without-http_upstream_keepalive_module \
|
--without-http_upstream_keepalive_module \
|
||||||
--without-mail_pop3_module \
|
--without-mail_pop3_module \
|
||||||
--without-mail_imap_module \
|
--without-mail_imap_module \
|
||||||
--without-mail_smtp_module
|
--without-mail_smtp_module \
|
||||||
|
--with-http_realip_module
|
||||||
|
|
||||||
sed -i "/CFLAGS/s/ \-O //g" objs/Makefile
|
sed -i "/CFLAGS/s/ \-O //g" objs/Makefile
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ events {
|
|||||||
http {
|
http {
|
||||||
types_hash_max_size 2048;
|
types_hash_max_size 2048;
|
||||||
include mime.types;
|
include mime.types;
|
||||||
|
charset UTF-8;
|
||||||
server {
|
server {
|
||||||
listen {{ $.PORT }};
|
listen {{ $.PORT }};
|
||||||
server_name _;
|
server_name _;
|
||||||
|
Reference in New Issue
Block a user