2017-01-05 23:37:07 +01:00
|
|
|
server {
|
2024-04-04 12:12:04 +02:00
|
|
|
listen 127.0.0.1:{{ port_nginx_status }};
|
|
|
|
listen [::1]:{{ port_nginx_status }};
|
2017-01-05 23:37:07 +01:00
|
|
|
|
|
|
|
access_log /var/log/nginx/localhost-nginx_status_monitorix.lan-access.log;
|
|
|
|
error_log /var/log/nginx/localhost-nginx_status_monitorix.lan-error.log;
|
|
|
|
|
|
|
|
location /nginx_status_monitorix {
|
|
|
|
stub_status on;
|
|
|
|
access_log off;
|
|
|
|
allow 127.0.0.1;
|
|
|
|
allow ::1;
|
|
|
|
deny all;
|
|
|
|
}
|
2024-04-04 00:28:32 +02:00
|
|
|
|
|
|
|
{%- if phpfpm_installed == 'true' %}
|
|
|
|
{%- for php_pool_info in php_pools_infos.splitlines() %}
|
|
|
|
{%- set phpversion = php_pool_info.split(',')[0] %}
|
|
|
|
{%- set pool_name = php_pool_info.split(',')[1] %}
|
|
|
|
|
2024-04-04 22:15:58 +02:00
|
|
|
location /php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }} {
|
2024-04-04 00:28:32 +02:00
|
|
|
fastcgi_pass unix:/var/run/php/php{{ phpversion }}-fpm-{{ pool_name }}-{{ app }}-status.sock;
|
|
|
|
include fastcgi_params;
|
2024-04-04 22:15:58 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
2024-04-04 00:28:32 +02:00
|
|
|
}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
2023-12-09 00:35:51 +01:00
|
|
|
}
|