More work on nginx

This commit is contained in:
Mark J Crane 2017-03-26 14:07:55 -06:00
parent c83134b436
commit 37d0e9ec99
5 changed files with 21 additions and 8 deletions

View File

@ -66,7 +66,7 @@ elif [ .$cpu_architecture = .'x86' ]; then
fi
switch_source=true
switch_package=false
elif [ .$os_mode = .'64' ]; then
q elif [ .$os_mode = .'64' ]; then
verbose "Correct CPU and Operating System detected"
else
error "Unknown Operating System mode $os_mode is unsupported"

View File

@ -28,6 +28,9 @@ if [ ."$php_version" = ."7" ]; then
fi
#enable fusionpbx nginx config
mv /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.conf-orig
cp nginx/nginx.conf /usr/local/etc/nginx
mkdir -p /usr/local/etc/nginx/conf.d
cp nginx/fusionpbx.conf /usr/local/etc/nginx/conf.d/fusionpbx
#self signed certificate

View File

@ -1,3 +1,4 @@
server {
listen 127.0.0.1:80;
server_name 127.0.0.1;

View File

@ -0,0 +1,15 @@
#load modules
load_module /usr/local/libexec/nginx/ngx_mail_module.so;
load_module /usr/local/libexec/nginx/ngx_stream_module.so;
#user nobody;
worker_processes 1;
#includes
include /usr/local/etc/nginx/conf.d/*.conf;
#events section
events {
worker_connections 768;
# multi_accept on;
}

View File

@ -23,10 +23,4 @@ sed -i' ' -e 's#post_max_size = .*#post_max_size = 80M#g' $php_ini_file
sed -i' ' -e 's#upload_max_filesize = .*#upload_max_filesize = 80M#g' $php_ini_file
#restart php-fpm
#systemd
if [ ."$php_version" = ."5" ]; then
service php5-fpm restart
fi
if [ ."$php_version" = ."7" ]; then
service php7.0-fpm restart
fi
service php-fpm restart