From 5d032e76bca78e4eef0da23f05dca8d335837ce8 Mon Sep 17 00:00:00 2001 From: Serban Teodorescu Date: Fri, 12 Jul 2024 17:41:01 +0300 Subject: [PATCH] [OPS-10625] fix the nginx config --- env/etc/nginx/http.d/common.conf | 17 ----------------- env/etc/nginx/http.d/default.conf | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 env/etc/nginx/http.d/common.conf diff --git a/env/etc/nginx/http.d/common.conf b/env/etc/nginx/http.d/common.conf deleted file mode 100644 index ff13f273f..000000000 --- a/env/etc/nginx/http.d/common.conf +++ /dev/null @@ -1,17 +0,0 @@ -set_real_ip_from 127.0.0.1; -set_real_ip_from 10.0.0.0/8; -set_real_ip_from 172.16.0.0/12; -set_real_ip_from 192.168.0.0/16; - -real_ip_header X-Forwarded-For; -real_ip_recursive on; - -gzip on; -gzip_disable "MSIE [1-6]\.(?!.*SV1)"; -gzip_proxied any; -gzip_types text/css text/javascript text/plain text/xml application/javascript application/json application/x-javascript application/xml application/xml+rss image/svg+xml; - -# Define a Logstash log format to output things with time, host, and proto. -log_format logstash '$remote_addr - $remote_user [$time_local] "$request"' - ' $status $body_bytes_sent "$http_referer" "$http_user_agent"' - ' $request_time $http_host $http_x_forwarded_proto'; diff --git a/env/etc/nginx/http.d/default.conf b/env/etc/nginx/http.d/default.conf index c1b2b3554..e1eb71773 100644 --- a/env/etc/nginx/http.d/default.conf +++ b/env/etc/nginx/http.d/default.conf @@ -1,7 +1,7 @@ server { listen 80 default_server; - access_log /var/log/nginx/access.log logstash; + access_log /var/log/nginx/access.log logstash_internal; location / { alias /var/www/;