Привет всем. Юзаю valet на маке
Есть php функция, запускающая node скрипт. Там очень тяжелый процесс, частенько получаю exceeded the timeout of 60 seconds
Я чет совсем уже подустал и не понимать, почему я не могу увеличить timeout
nginx.conf
user "yarovikov" staff;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
types_hash_max_size 2048;
client_max_body_size 512M;
ssi on;
gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
proxy_connect_timeout 1200;
proxy_read_timeout 1200;
proxy_send_timeout 1200;
fastcgi_read_timeout 1200;
fastcgi_send_timeout 1200;
include "/Users/yarovikov/.config/valet/Nginx/*";
include servers/*;
include valet/valet.conf;
}
valet.conf
server {
listen 127.0.0.1:80 default_server;
#listen VALET_LOOPBACK:80; # valet loopback
server_name "!valet!" "";
root /;
charset utf-8;
client_max_body_size 128M;
location /41c270e4-5535-4daa-b23e-c269744c2f45/ {
internal;
alias /;
try_files $uri $uri/;
}
location / {
rewrite ^ "/Users/yarovikov/.composer/vendor/laravel/valet/server.php" last;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log "/Users/yarovikov/.config/valet/Log/nginx-error.log";
error_page 404 "/Users/yarovikov/.composer/vendor/laravel/valet/server.php";
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass "unix:/Users/yarovikov/.config/valet/valet.sock";
fastcgi_index "/Users/yarovikov/.composer/vendor/laravel/valet/server.php";
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME "/Users/yarovikov/.composer/vendor/laravel/valet/server.php";
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.ht {
deny all;
}
}