improve example configuration

This commit is contained in:
2026-05-08 01:52:19 +03:30
parent 0bfc94729c
commit 0fb2e2b092
3 changed files with 44 additions and 51 deletions

View File

@@ -0,0 +1,41 @@
##
# Monitoring Configs
##
sendfile on;
keepalive_timeout 65;
monitor_refresh_interval 1s;
monitor_history 5m;
monitor_resolution 1s;
monitor_shm_size 8m;
monitor_collect_system on;
monitor_collect_nginx on;
monitor_collect_network on;
monitor_access_log on;
monitor_max_top_urls 100;
server {
listen 8080;
server_name localhost;
location /monitor {
monitor on;
monitor_dashboard on;
monitor_api on;
monitor_sse on;
monitor_allow 127.0.0.1/32;
monitor_allow ::1/128;
monitor_deny all;
monitor_basic_auth off;
monitor_api_token "";
monitor_cors off;
monitor_rate_limit 120;
}
location / {
return 200 "ngx_http_monitoring_module example\n";
}
}