mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 04:51:57 +00:00
46 lines
879 B
Nginx Configuration File
46 lines
879 B
Nginx Configuration File
user nginx;
|
|
worker_processes 1;
|
|
|
|
error_log /var/log/nginx/error.log warn;
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
server_tokens off;
|
|
gzip on;
|
|
|
|
}
|
|
|
|
|
|
|
|
# load balancer for Wazuh cluster
|
|
stream {
|
|
upstream mycluster {
|
|
hash $remote_addr consistent;
|
|
server wazuh.master:1514;
|
|
server wazuh.worker:1514;
|
|
}
|
|
server {
|
|
listen 1514;
|
|
proxy_pass mycluster;
|
|
}
|
|
} |