diff --git a/modules/http_host/http_host_lib/nginx_confs/le.conf b/modules/http_host/http_host_lib/nginx_confs/le.conf index 5be3700..32fdb09 100644 --- a/modules/http_host/http_host_lib/nginx_confs/le.conf +++ b/modules/http_host/http_host_lib/nginx_confs/le.conf @@ -23,9 +23,8 @@ server { ssl_prefer_server_ciphers off; # access log doesn't contain IP address - # disabled by default - #access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=32k; - access_log off; + #access_log off; + access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=128k; error_log /data/ofm/http_host/logs_nginx/le-error.log; diff --git a/modules/http_host/http_host_lib/nginx_confs/ledns.conf b/modules/http_host/http_host_lib/nginx_confs/ledns.conf index 40d16e1..8d1597f 100644 --- a/modules/http_host/http_host_lib/nginx_confs/ledns.conf +++ b/modules/http_host/http_host_lib/nginx_confs/ledns.conf @@ -23,9 +23,8 @@ server { ssl_prefer_server_ciphers off; # access log doesn't contain IP address - # disabled by default - #access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=32k; - access_log off; + #access_log off; + access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=128k; error_log /data/ofm/http_host/logs_nginx/ledns-error.log; diff --git a/ssh_lib/assets/nginx/nginx.conf b/ssh_lib/assets/nginx/nginx.conf index 51a3184..8b05330 100644 --- a/ssh_lib/assets/nginx/nginx.conf +++ b/ssh_lib/assets/nginx/nginx.conf @@ -47,16 +47,16 @@ http { # general '"time": "$time_iso8601", ' '"status": $status, ' - '"request_method": "$request_method", ' - '"uri": "$uri", ' - '"request": "$request", ' - '"request_time": $request_time, ' + #'"request_method": "$request_method", ' + #'"uri": "$uri", ' + #'"request": "$request", ' + #'"request_time": $request_time, ' '"body_bytes_sent": $body_bytes_sent, ' '"http_referrer": "$http_referer", ' '"http_user_agent": "$http_user_agent", ' - '"scheme": "$scheme", ' - '"host": "$host", ' - '"http_host": "$http_host", ' + #'"scheme": "$scheme", ' + #'"host": "$host", ' + #'"http_host": "$http_host", ' # IP address related # IP address logging is disabled @@ -71,9 +71,8 @@ http { '"_": "_"' # helper for no trailing comma '}'; - # access log disabled by default - #access_log /data/nginx/logs/nginx-access.log access_json buffer=32k; access_log off; + #access_log /data/nginx/logs/nginx-access.log access_json buffer=128k; include /data/nginx/config/*; include /data/nginx/sites/*;