forked from norman/fusionpbx-install.sh-github-mirror
BugFix core/upgrade/install.php timeout (#98)
update configuration to allow the core/upgrade/install.php to have the same read_timeout in nginx as it has in php execution time. This should prevent the nginx timeout error when a upgrade takes longer than 60 seconds (the deafult in nginx)
This commit is contained in:
@@ -21,6 +21,16 @@ server{
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
@@ -102,6 +112,16 @@ server {
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
@@ -183,6 +203,16 @@ server {
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
|
|||||||
30
debian/resources/nginx/fusionpbx
vendored
30
debian/resources/nginx/fusionpbx
vendored
@@ -21,6 +21,16 @@ server{
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
@@ -102,6 +112,16 @@ server {
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
@@ -188,6 +208,16 @@ server {
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
|
|||||||
@@ -21,6 +21,16 @@ server{
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
@@ -102,6 +112,16 @@ server {
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
@@ -180,6 +200,16 @@ server {
|
|||||||
index index.php;
|
index index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
#fastcgi_pass 127.0.0.1:9000;
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
|||||||
@@ -21,6 +21,16 @@ server{
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
@@ -94,6 +104,16 @@ server {
|
|||||||
index index.php;
|
index index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
#fastcgi_pass 127.0.0.1:9000;
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
@@ -188,6 +208,16 @@ server {
|
|||||||
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Allow the upgrade routines to run longer than normal
|
||||||
|
location = /core/upgrade/index.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
|
||||||
|
#fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME /var/www/fusionpbx$fastcgi_script_name;
|
||||||
|
fastcgi_read_timeout 15m;
|
||||||
|
}
|
||||||
|
|
||||||
# Disable viewing .htaccess & .htpassword & .db
|
# Disable viewing .htaccess & .htpassword & .db
|
||||||
location ~ .htaccess {
|
location ~ .htaccess {
|
||||||
deny all;
|
deny all;
|
||||||
|
|||||||
Reference in New Issue
Block a user