|
@ -14,7 +14,7 @@ function ee_mod_setup_nginx() |
|
|
sed -i "/worker_processes/a \worker_rlimit_nofile 100000;" /etc/nginx/nginx.conf |
|
|
sed -i "/worker_processes/a \worker_rlimit_nofile 100000;" /etc/nginx/nginx.conf |
|
|
|
|
|
|
|
|
# Adjust nginx worker_connections and multi_accept |
|
|
# Adjust nginx worker_connections and multi_accept |
|
|
sed -i "s/worker_connections.*/worker_connections 1024;/" /etc/nginx/nginx.conf |
|
|
sed -i "s/worker_connections.*/worker_connections 4096;/" /etc/nginx/nginx.conf |
|
|
sed -i "s/# multi_accept/multi_accept/" /etc/nginx/nginx.conf |
|
|
sed -i "s/# multi_accept/multi_accept/" /etc/nginx/nginx.conf |
|
|
|
|
|
|
|
|
# Disable nginx version |
|
|
# Disable nginx version |
|
@ -30,9 +30,13 @@ function ee_mod_setup_nginx() |
|
|
|
|
|
|
|
|
# Enable Gun-zip |
|
|
# Enable Gun-zip |
|
|
sed -i "s/# gzip/gzip/" /etc/nginx/nginx.conf |
|
|
sed -i "s/# gzip/gzip/" /etc/nginx/nginx.conf |
|
|
|
|
|
|
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Update EasyEngine version |
|
|
|
|
|
# Launchpad PPA already have above settings |
|
|
|
|
|
# On Ubuntu above block never executed |
|
|
|
|
|
sed -i "s/X-Powered-By.*/X-Powered-By \"EasyEngine $EE_LATEST_VERSION\";/" /etc/nginx/nginx.conf |
|
|
|
|
|
|
|
|
# Create directory if not exist |
|
|
# Create directory if not exist |
|
|
if [ ! -d /etc/nginx/conf.d ]; then |
|
|
if [ ! -d /etc/nginx/conf.d ]; then |
|
|
mkdir /etc/nginx/conf.d || ee_lib_error "Unable to create /etc/nginx/conf.d, exit status = " $? |
|
|
mkdir /etc/nginx/conf.d || ee_lib_error "Unable to create /etc/nginx/conf.d, exit status = " $? |
|
|