From 584156170e4000d229b1cf2270c7f4694e4ded6b Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Sat, 19 Apr 2025 15:48:38 +0200 Subject: [PATCH] nginx conf --- ssh_lib/assets/nginx/nginx.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ssh_lib/assets/nginx/nginx.conf b/ssh_lib/assets/nginx/nginx.conf index 8b05330..8fc6283 100644 --- a/ssh_lib/assets/nginx/nginx.conf +++ b/ssh_lib/assets/nginx/nginx.conf @@ -1,6 +1,8 @@ +# ubuntu specific user nginx; pid /var/run/nginx.pid; +# universal worker_processes auto; worker_rlimit_nofile 300000; # needs to be < ulimit -n @@ -35,7 +37,6 @@ http { reset_timedout_connection on; send_timeout 20; - max_ranges 0; gzip on; @@ -52,6 +53,7 @@ http { #'"request": "$request", ' #'"request_time": $request_time, ' '"body_bytes_sent": $body_bytes_sent, ' + '"http_referrer": "$http_referer", ' '"http_user_agent": "$http_user_agent", ' #'"scheme": "$scheme", ' @@ -60,17 +62,18 @@ http { # IP address related # IP address logging is disabled - #'"remote_addr": "$remote_addr", ' - #'"http_x_forwarded_for": "$http_x_forwarded_for", ' + # '"remote_addr": "$remote_addr", ' + # '"http_x_forwarded_for": "$http_x_forwarded_for", ' + # '"http_cf_connecting_ip": "$http_cf_connecting_ip", ' # CF related #'"http_cf_ray": "$http_cf_ray", ' #'"http_cf_ipcountry": "$http_cf_ipcountry", ' - #'"http_cf_connecting_ip": "$http_cf_connecting_ip", ' '"_": "_"' # helper for no trailing comma '}'; + access_log off; #access_log /data/nginx/logs/nginx-access.log access_json buffer=128k;