Fix wo info
This commit is contained in:
2
install
2
install
@@ -739,7 +739,7 @@ else
|
|||||||
# 1 - WO already installed
|
# 1 - WO already installed
|
||||||
if [ -x /usr/local/bin/wo ]; then
|
if [ -x /usr/local/bin/wo ]; then
|
||||||
if ! {
|
if ! {
|
||||||
wo -v 2>&1 | grep $wo_version_new
|
wo -v 2>&1 | grep -q "$wo_version_new"
|
||||||
} || [ "$wo_force_install" = "y" ]; then
|
} || [ "$wo_force_install" = "y" ]; then
|
||||||
if [ -z "$wo_force_install" ]; then
|
if [ -z "$wo_force_install" ]; then
|
||||||
echo -e "Update WordOps to $wo_version_new (y/n): " && read -r WO_ANSWER
|
echo -e "Update WordOps to $wo_version_new (y/n): " && read -r WO_ANSWER
|
||||||
|
|||||||
@@ -15,11 +15,12 @@ events {
|
|||||||
|
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
|
||||||
##
|
##
|
||||||
# WordOps Settings
|
# WordOps Settings
|
||||||
##
|
##
|
||||||
|
|
||||||
|
keepalive_timeout 8;
|
||||||
|
|
||||||
# Nginx AIO : See - https://www.nginx.com/blog/thread-pools-boost-performance-9x/
|
# Nginx AIO : See - https://www.nginx.com/blog/thread-pools-boost-performance-9x/
|
||||||
# http://nginx.org/en/docs/http/ngx_http_core_module.html#aio
|
# http://nginx.org/en/docs/http/ngx_http_core_module.html#aio
|
||||||
aio threads;
|
aio threads;
|
||||||
@@ -28,7 +29,7 @@ http {
|
|||||||
reset_timedout_connection on;
|
reset_timedout_connection on;
|
||||||
more_set_headers "X-Powered-By : WordOps";
|
more_set_headers "X-Powered-By : WordOps";
|
||||||
|
|
||||||
# Limit Request
|
# Limit Request
|
||||||
limit_req_status 403;
|
limit_req_status 403;
|
||||||
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
|
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
|
|
||||||
keepalive_timeout 8;
|
|
||||||
keepalive_requests 500;
|
keepalive_requests 500;
|
||||||
keepalive_disable msie6;
|
keepalive_disable msie6;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user