From ff5d1cd81598634291a6bafb302065fa9c3d9f9e Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Tue, 1 Sep 2020 10:07:24 -0400 Subject: [PATCH] Expand nginx body size limit to 2.5GB to handle 2G PCAPs from sensors --- salt/nginx/etc/nginx.conf.so-eval | 2 +- salt/nginx/etc/nginx.conf.so-import | 2 +- salt/nginx/etc/nginx.conf.so-manager | 2 +- salt/nginx/etc/nginx.conf.so-managersearch | 2 +- salt/nginx/etc/nginx.conf.so-standalone | 2 +- salt/pcap/files/sensoroni.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/salt/nginx/etc/nginx.conf.so-eval b/salt/nginx/etc/nginx.conf.so-eval index 8032ed0ce..79db008c1 100644 --- a/salt/nginx/etc/nginx.conf.so-eval +++ b/salt/nginx/etc/nginx.conf.so-eval @@ -29,7 +29,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - client_max_body_size 1024M; + client_max_body_size 2500M; include /etc/nginx/mime.types; default_type application/octet-stream; diff --git a/salt/nginx/etc/nginx.conf.so-import b/salt/nginx/etc/nginx.conf.so-import index 9c919c764..1f180ad09 100644 --- a/salt/nginx/etc/nginx.conf.so-import +++ b/salt/nginx/etc/nginx.conf.so-import @@ -29,7 +29,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - client_max_body_size 1024M; + client_max_body_size 2500M; include /etc/nginx/mime.types; default_type application/octet-stream; diff --git a/salt/nginx/etc/nginx.conf.so-manager b/salt/nginx/etc/nginx.conf.so-manager index 42caa7841..ceae18cb1 100644 --- a/salt/nginx/etc/nginx.conf.so-manager +++ b/salt/nginx/etc/nginx.conf.so-manager @@ -29,7 +29,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - client_max_body_size 1024M; + client_max_body_size 2500M; include /etc/nginx/mime.types; default_type application/octet-stream; diff --git a/salt/nginx/etc/nginx.conf.so-managersearch b/salt/nginx/etc/nginx.conf.so-managersearch index 0f0e052c8..01a3afdaa 100644 --- a/salt/nginx/etc/nginx.conf.so-managersearch +++ b/salt/nginx/etc/nginx.conf.so-managersearch @@ -29,7 +29,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - client_max_body_size 1024M; + client_max_body_size 2500M; include /etc/nginx/mime.types; default_type application/octet-stream; diff --git a/salt/nginx/etc/nginx.conf.so-standalone b/salt/nginx/etc/nginx.conf.so-standalone index 42caa7841..ceae18cb1 100644 --- a/salt/nginx/etc/nginx.conf.so-standalone +++ b/salt/nginx/etc/nginx.conf.so-standalone @@ -29,7 +29,7 @@ http { tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - client_max_body_size 1024M; + client_max_body_size 2500M; include /etc/nginx/mime.types; default_type application/octet-stream; diff --git a/salt/pcap/files/sensoroni.json b/salt/pcap/files/sensoroni.json index 79e97a75b..4fd31b96d 100644 --- a/salt/pcap/files/sensoroni.json +++ b/salt/pcap/files/sensoroni.json @@ -3,7 +3,7 @@ {%- set CHECKININTERVALMS = salt['pillar.get']('pcap:sensor_checkin_interval_ms', 10000) -%} { "logFilename": "/opt/sensoroni/logs/sensoroni.log", - "logLevel":"debug", + "logLevel":"info", "agent": { "pollIntervalMs": {{ CHECKININTERVALMS if CHECKININTERVALMS else 10000 }}, "serverUrl": "https://{{ MANAGER }}/sensoroniagents",