nginx conf

This commit is contained in:
Zsolt Ero
2025-04-19 15:48:38 +02:00
parent dd97e1fdcb
commit 584156170e

View File

@@ -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", '
@@ -62,15 +64,16 @@ http {
# IP address logging is disabled
# '"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;