AboveNormal for all services
This commit is contained in:
@@ -35,9 +35,17 @@ http {
|
||||
application/xml
|
||||
image/svg+xml;
|
||||
|
||||
# FastCGI connection pool — reuse TCP connections to php-cgi instead of
|
||||
# opening a new one per request (reduces latency on every PHP request)
|
||||
upstream php_fpm {
|
||||
server 127.0.0.1:9001;
|
||||
keepalive 16;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8000;
|
||||
server_name localhost 127.0.0.1;
|
||||
listen [::]:8000;
|
||||
server_name localhost 127.0.0.1 ::1;
|
||||
root "{{PUBLIC_DIR}}";
|
||||
index index.php;
|
||||
|
||||
@@ -46,16 +54,24 @@ http {
|
||||
open_file_cache_min_uses 2;
|
||||
open_file_cache_errors on;
|
||||
|
||||
# Lightweight health-check endpoint — no PHP, used by warmup script
|
||||
location = /nginx-health {
|
||||
access_log off;
|
||||
return 200 "ok";
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass 127.0.0.1:9001;
|
||||
fastcgi_pass php_fpm;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_read_timeout 120;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_buffering on;
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 32k;
|
||||
|
||||
Reference in New Issue
Block a user