mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
f92db1b78c
- Update config from upstream - Use Jinja for config file - Dynamically generate config file depending of the auto detected system configuration - Remove dependancy of mysql as it's not needed - Automatically monitor mysql, postgresql, memcached, redis, php pool v>=8.0, fail2ban, mail, partition and network - Add some config parameter in config panel to make easy to change values - Configure alert system (can be enabled by config panel) - Fix small issue linked to previous packaging v2
30 lines
1 KiB
Text
30 lines
1 KiB
Text
server {
|
|
listen {{ port_nginx_status }};
|
|
listen [::]:{{ port_nginx_status }};
|
|
|
|
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;
|
|
}
|
|
|
|
{%- 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] %}
|
|
|
|
location {{ path.rstrip('/') }}/php-pool-status/php{{ phpversion }}-fpm-{{ pool_name }} {
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
|
fastcgi_pass unix:/var/run/php/php{{ phpversion }}-fpm-{{ pool_name }}-{{ app }}-status.sock;
|
|
include fastcgi_params;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_param SCRIPT_FILENAME cas_server.php;
|
|
}
|
|
{%- endfor %}
|
|
{%- endif %}
|
|
}
|