From b0a22acf9252cc45e57cd1e0764731116189facf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B0=D0=B8=D0=BB=D1=8F=20=D0=90=D0=BB=D0=B0=D1=88?= =?UTF-8?q?=D0=BA=D0=BE=D0=B2=D0=B0?= Date: Fri, 17 Oct 2025 08:31:26 +0300 Subject: [PATCH] =?UTF-8?q?nginx.conf:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20upstream=20fastcgi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 092571a..24cc616 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -27,7 +27,7 @@ http { default_type application/octet-stream; sendfile on; - + gzip on; # text/html doesn't need to be defined there, it's compressed always @@ -36,13 +36,27 @@ http { # gzip_comp_level 9; include /etc/nginx/sites-enabled.d/*.conf; + upstream fastcgi { + server 127.0.0.1:9009; + server 127.0.0.1:9010; + server 127.0.0.1:9011; + server 127.0.0.1:9012; + server 127.0.0.1:9013; + server 127.0.0.1:9014; + server 127.0.0.1:9015; + server 127.0.0.1:9016; + server 127.0.0.1:9017; + server 127.0.0.1:9018; + } + server { listen 80; server_name localhost; + client_max_body_size 10M; - location / { - fastcgi_pass localhost:9009; - include fastcgi_params; - } - } + location / { + fastcgi_pass fastcgi; + include fastcgi_params; + } + } }