diff --git a/.platform/nginx/conf.d/custom_log_format.conf b/.platform/nginx/conf.d/custom_log_format.conf new file mode 100644 index 00000000..303e7d94 --- /dev/null +++ b/.platform/nginx/conf.d/custom_log_format.conf @@ -0,0 +1,3 @@ +log_format healthd '$msec"$uri"' + '$status"$request_time"$upstream_response_time"' + '$http_x_forwarded_for'; diff --git a/.platform/nginx/nginx.conf b/.platform/nginx/nginx.conf index ccda9ccc..6ab81848 100644 --- a/.platform/nginx/nginx.conf +++ b/.platform/nginx/nginx.conf @@ -11,6 +11,12 @@ events { } http { + types_hash_max_size 2048; + types_hash_bucket_size 128; + + # Include the custom log format + include conf.d/custom_log_format.conf; + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';