Files
ngx_http_monitoring_module/dockerized/nginx.conf
2026-05-07 23:24:46 +03:30

65 lines
1.5 KiB
Nginx Configuration File

load_module /usr/local/nginx/modules/ngx_http_monitoring_module.so;
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 65535;
multi_accept on;
}
http {
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
server_tokens off;
access_log /var/log/nginx/access.log;
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 _;
location /monitor {
monitor on;
monitor_dashboard on;
monitor_api on;
monitor_sse on;
monitor_rate_limit 240;
monitor_cors "*";
}
location = /favicon.ico {
root /usr/local/nginx/html;
default_type image/x-icon;
access_log off;
add_header Cache-Control "public, max-age=86400";
}
location = / {
default_type text/plain;
return 200 "ngx_http_monitoring_module docker image\nopen /monitor for the dashboard\n";
}
location = /workload {
default_type application/json;
return 200 "{\"status\":\"ok\",\"source\":\"dockerized-nginx\"}\n";
}
}
}